我需要查看来宾用户是否已兑换邀请。当我从Graph API获取用户详细信息时,返回的用户没有这种信息。
但是在Azure门户中,我可以看到,当用户兑换邀请时,“身份”部分下的源属性将更改为“Microsoft帐户”或“邀请用户”中的类似内容。
查看azureaduser上的extensionproperty ...它具有邀请的用户名。
例:
(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