尝试创建架构扩展时出现 500 错误
500 Error when trying to create schema extensions
我正在尝试创建架构扩展。我有
"scp": "Directory.AccessAsUser.All" 令牌。不知道是什么原因失败了。
POST https://graph.microsoft.com/beta/schemaExtensions
Content-type: application/json
{
"id":"courses",
"description": "Graph Learn training courses extensions",
"targetTypes": [
"Group"
],
"properties": [
{
"name": "courseId",
"type": "Integer"
},
{
"name": "courseName",
"type": "String"
},
{
"name": "courseType",
"type": "String"
}
]
}
错误:
{
"error": {
"code": "Service_InternalServerError",
"message": "Encountered an internal server error.",
"innerError": {
"request-id": "1909aef3-b66d-48de-8204-0a41df0a27a8",
"date": "2017-07-17T13:07:20"
}
}
}
不幸的是,B2C 租户似乎不支持 Microsoft Graph 架构扩展(请确认您是否使用的不是 B2C 租户 - 在这种情况下,这可能是一个不同的问题)。
同时(在我们解决此问题之前),您需要使用 Azure AD Graph 来注册和使用目录扩展。
希望对您有所帮助,
我正在尝试创建架构扩展。我有
"scp": "Directory.AccessAsUser.All" 令牌。不知道是什么原因失败了。
POST https://graph.microsoft.com/beta/schemaExtensions
Content-type: application/json
{
"id":"courses",
"description": "Graph Learn training courses extensions",
"targetTypes": [
"Group"
],
"properties": [
{
"name": "courseId",
"type": "Integer"
},
{
"name": "courseName",
"type": "String"
},
{
"name": "courseType",
"type": "String"
}
]
}
错误:
{
"error": {
"code": "Service_InternalServerError",
"message": "Encountered an internal server error.",
"innerError": {
"request-id": "1909aef3-b66d-48de-8204-0a41df0a27a8",
"date": "2017-07-17T13:07:20"
}
}
}
不幸的是,B2C 租户似乎不支持 Microsoft Graph 架构扩展(请确认您是否使用的不是 B2C 租户 - 在这种情况下,这可能是一个不同的问题)。
同时(在我们解决此问题之前),您需要使用 Azure AD Graph 来注册和使用目录扩展。
希望对您有所帮助,