【问题标题】:Cannot create team无法创建团队
【发布时间】: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


    【解决方案1】:

    我猜,您的请求应该只有以下代码

    {  
        "memberSettings": {  
            "allowCreateUpdateChannels": true  
        },  
        "messagingSettings": {  
            "allowUserEditMessages": true,  
            "allowUserDeleteMessages": true  
        },  
        "funSettings": {  
            "allowGiphy": true,  
            "giphyContentRating": "strict"  
        }  
    }  
    

    像往常一样输入 PUT 命令

    https://graph.microsoft.com/v1.0/groups/<groupId>/team
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-12
      • 2012-12-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-12
      相关资源
      最近更新 更多