Azure ad b2c ADB2C Rest API未将自定义属性保存到配置文件

Azure ad b2c ADB2C Rest API未将自定义属性保存到配置文件,azure-ad-b2c,azure-ad-b2c-custom-policy,Azure Ad B2c,Azure Ad B2c Custom Policy,我在ADB2C中启用了自定义策略,为了添加更多声明,我使用RESTAPI返回自定义属性的数据 RESTAPI的响应如下所示: { "version" : "1.0.0", "action" : "Continue", "extension_<client_id>_empid" : 15, "extension_empid" :15, } {

我在ADB2C中启用了自定义策略,为了添加更多声明,我使用RESTAPI返回自定义属性的数据

RESTAPI的响应如下所示:

 {
  "version" : "1.0.0",
    "action" : "Continue",
  "extension_<client_id>_empid" : 15,
   "extension_empid" :15,
}
{
“版本”:“1.0.0”,
“行动”:“继续”,
“扩展插件”:15,
“扩展计划”:15,
}
在声明中,我可以读取这个值,但实际上这个值没有保存到用户配置文件中,所以当我使用graph获取数据时,它不会返回如何将这个值覆盖到用户配置文件中

假设
扩展\u empid
索赔定义如下:

<ClaimType Id="extension_empid">
  <DisplayName>Employee ID</DisplayName>
  <DataType>long</DataType>
</ClaimType>
最后,在
AAD UserWriteUsingLogonEmail
technical profile中,
PersistedClaims
元素应包含将数据持久化到目录的元素:

<TechnicalProfile Id="AAD-UserWriteUsingLogonEmail">
    ...        
    <PersistedClaims>
       ...
       <PersistedClaim ClaimTypeReferenceId="extension_empid" />
    </PersistedClaims>
</TechnicalProfile>

...        
...

您是否使用了
AAD UserWriteUsingLogonEmail
或类似的工具将自定义属性写入AAD?是的,我添加了它检查问题更新我附加了我的个人资料我使用的是与未保存的相同的东西
<TechnicalProfile Id="AAD-UserWriteUsingLogonEmail">
    ...        
    <PersistedClaims>
       ...
       <PersistedClaim ClaimTypeReferenceId="extension_empid" />
    </PersistedClaims>
</TechnicalProfile>