如何查看由自定义策略创建的用户的数据? [英] How can I see data for users created by a custom policy?
问题描述
我有注册和Sinin"自定义策略,允许用户注册或登录.效果很好.
I have Signup and Sinin custom policy that allow users to signup or signin. It works well.
该政策使用以下声明:
<OutputClaim ClaimTypeReferenceId="extension_firstName" />
<OutputClaim ClaimTypeReferenceId="extension_lastName" />
<OutputClaim ClaimTypeReferenceId="extension_organizationName" />
<OutputClaim ClaimTypeReferenceId="extension_contactPhoneNumber" />
<OutputClaim ClaimTypeReferenceId="extension_selectRole" />
<OutputClaim ClaimTypeReferenceId="extension_terms" />
当我转到B2C门户网站时,找到用户并查看用户详细信息,那里没有extension_ *声明(属性或属性).
When I goto B2C portal, find the user and look the user details, none of the extension_* claims (attributes or properties) appear there.
然后我使用Microsoft Graph,发出以下查询:
Then I use Microsoft Graph, issue this query:
https://graph.microsoft.com/v1.0/users/[用户对象ID]
我为用户获得的数据最少.其中没有extension_ *校正数据.
I get minimal data for the user. None of the extension_* calim data appears there.
如何通过自定义策略创建的给定"用户查看所有extension_ *索赔数据?
How can I see all the extension_* claim data with a give user created by custom policy?
推荐答案
Azure门户不会为用户显示扩展属性.
The Azure portal doesn't display the extension properties for users.
For the Microsoft Graph query, you must add the $select
parameter in order to include the extension properties, such as:
GET https://graph.microsoft.com/v1.0/users/{id}?$select=extension_{b2cExtensionsAppClientId}_firstName,extension_{b2cExtensionsAppClientId}_lastName,...
其中 {b2cExtensionsAppClientId}
是[ b2c-extensions-app 应用程序}(https://docs.microsoft在您的Azure AD B2C租户中注册的.com/en-us/azure/active-directory-b2c/extensions-app),例如:
where {b2cExtensionsAppClientId}
is the application (client) identifier (without hyphens) for [the b2c-extensions-app application}(https://docs.microsoft.com/en-us/azure/active-directory-b2c/extensions-app) that is registered in your Azure AD B2C tenant such as:
extension_b2ba52d57b074a5e8fa2d8b35f5a1347_firstName
这篇关于如何查看由自定义策略创建的用户的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!