【发布时间】:2017-11-21 16:35:40
【问题描述】:
我可以定义一个数据类型为stringCollection 的custom attribute 并通过Azure AD Graph API 更新它吗?我的实验失败了:
请求正文包含指定内容类型和编码的意外字符/内容
自定义属性定义
<ClaimType Id="extension_array_test">
<DisplayName>Array Test</DisplayName>
<DataType>stringCollection</DataType>
<UserHelpText>Array Test in Token</UserHelpText>
</ClaimType>
{
"extension_[my-guid]_array_test": ["value 1", "value 2"]
}
Error Calling the Graph API:
{
"odata.error": {
"code": "Request_BadRequest",
"message": {
"lang": "en",
"value": "The request body contains unexpected characters/content for the specified content type and encoding."
}
}
}
【问题讨论】:
标签: azure-ad-b2c azure-ad-graph-api