如何查找azure AD来宾用户邀请已使用Graph API兑换或未兑换

时间:2017-12-19 04:19:13

标签: azure azure-active-directory microsoft-graph azure-ad-graph-api azure-ad-b2b

我需要查看来宾用户是否已兑换邀请。当我从Graph API获取用户详细信息时,返回的用户没有这种信息。

但是在Azure门户网站中,我可以看到“身份”部分下的源属性正在被更改为“Microsoft帐户”或“来自"邀请用户"当用户兑换邀请时。

1 个答案:

答案 0 :(得分:1)

在azureaduser上查看扩展属性...它具有邀请的用户状态。

示例:

(Get-AzureADUser -SearchString 'insertusername').ExtensionProperty

扩展属性显示:SEE USERSTATE "pendingacceptance"

Key                         Value                           
---                         -----                           
odata.type                  Microsoft.DirectoryServices.User
ageGroup                                                    
consentProvidedForMinor                                     
createdDateTime             7/09/2018 6:49:38 AM            
employeeId                                                  
legalAgeGroupClassification                                 
onPremisesDistinguishedName                                 
userIdentities              []                              
userState                   PendingAcceptance               
userStateChangedOn          7/09/2018 6:49:35 AM