【发布时间】:2019-12-13 19:18:04
【问题描述】:
Azure 的 Graph API 支持使用 this API 获取用户的详细信息。它支持 id 或 userPrincipalName(UPN)。对于 B2B 用户,要求是使用 UPN 获取详细信息。 Azure 为 B2B 用户创建的 UPN 格式如下 “B2BUserEmail#EXT#directoryid/租户”
使用上述UPN格式查询时
https://graph.microsoft.com/v1.0/users/b2buseremail.com#EXT#@<directory/tenant>
REST API 失败并给出以下错误
{
"error": {
"code": "Request_ResourceNotFound",
"message": "Resource 'b2buseremail.com' does not exist or one of its queried reference-property objects are not present.",
"innerError": {
"request-id": "d167220f-e0ef-4528-b7a5-de71fd524f07",
"date": "2019-12-09T23:52:18"
}
}
}
【问题讨论】:
标签: azure azure-active-directory azure-ad-graph-api azure-ad-b2b