Friday, January 17, 2020

Problems with Teams creation via beta teams Graph endpoint with owner without O365 license

When you create Team by sending HTTP POST request to beta Graph endpoint /beta/teams (see Create team) you need to specify exactly 1 user as an owner of the new team:

POST https://graph.microsoft.com/beta/teams
Content-Type: application/json
{
  "displayName": "Test",
  "owners@odata.bind": [
    "https://graph.microsoft.com/beta/users('userId')"
  ]
}

where userId is login name of the user which will be owner of the group. However this request may fail with the following error:

Invoking endpoint 'https://graph.microsoft.com/beta/teams/' didn't succeed
Response status code 'Forbidden', reason phrase 'Forbidden'
Response content '
"code": "AccessDenied",
”message": "Failed to execute Templates backend request CreateTeamFromTemplateRequest

It may happen if user which is specified as owner of the team doesn’t have O365 license. In order to avoid this error use users with O365 license as team owners.

1 comment:

  1. If you're attempting to lose pounds then you absolutely need to get on this totally brand new custom keto meal plan diet.

    To create this keto diet service, certified nutritionists, personal trainers, and top chefs joined together to provide keto meal plans that are effective, decent, price-efficient, and satisfying.

    From their first launch in early 2019, 100's of individuals have already completely transformed their figure and health with the benefits a good keto meal plan diet can provide.

    Speaking of benefits; clicking this link, you'll discover eight scientifically-proven ones offered by the keto meal plan diet.

    ReplyDelete