【发布时间】:2020-07-17 00:19:29
【问题描述】:
在 Teams 上创建团队时,我遇到了 Microsoft Graph API 问题。我得到的唯一回应是: Forbidden 。没有其他错误信息/描述。
请求如下:
PUT : https://graph.microsoft.com/v1.0/groups/<groupId>/team
header : {
'Accept-Encoding' => 'gzip, deflate, br',
'Authorization' => 'Bearer <tokeSTRING>
}
request parameter : {
"memberSettings": {
"allowCreateUpdateChannels": true
},
"messagingSettings": {
"allowUserEditMessages": true,
"allowUserDeleteMessages": true
},
"funSettings": {
"allowGiphy": true,
"giphyContentRating": "strict"
}
}
回应:
{
"error": {
"code": "Forbidden",
"message": "Forbidden",
"innerError": {
"date": "2020-07-15T09:42:47",
"request-id": "<requestId>"
}
}
}
在 Azure 上,我已经授予应用程序创建组/团队的权限,如路由页面所述:https://docs.microsoft.com/en-us/graph/api/team-put-teams?view=graph-rest-1.0&tabs=http
有人遇到同样的问题吗?
【问题讨论】:
标签: microsoft-graph-api microsoft-teams microsoft-graph-teams