如何使用Azure AD Graph API中的``备用电子邮件''属性获取用户详细信息

时间:2018-11-15 16:16:47

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

我的B2C租户中有一个用户,该用户存在备用电子邮件。我想使用B2C租户的“备用电子邮件”属性来检索此用户的详细信息(特别是“ signInNames”数组)。我相信当Graph API使用它时,也称为“ otherMails”。

我还将API的graph.windows.net URL使用。如果可能的话,我想继续使用此URL。如果graph.microsoft.com对此有解决方案,我想知道。

1 个答案:

答案 0 :(得分:1)

尝试在AAD Graph Explorer中进行以下查询,这对我来说很好。

GET https://graph.windows.net/myorganization/users?$filter=otherMails/any(c:c eq 'xxxxxx@xxx.com')

enter image description here