Forum Discussion
bbdev
Oct 20, 2020Copper Contributor
team activation via graph beta API
I will try to activate my created team via graph beta api:
PATCH https://graph.microsoft.com/beta/teams/{id}
application/json
{
"isMembershipLimitedToOwners": false
}
and I get error:
{
"error": {
"code": "Unauthorized",
"message": "Failed to execute Aad backend request GetUserFromIdRequest. Workload Unknown. Request Url: https://graph.windows.net/myorganization/users/88da0665-cb4b-4589-9908-69ad7b2610cd?api-version=1.61-internal, Request Method: GET, Response Status Code: Unauthorized, Response Headers: ocp-aad-diagnostics-server-name: +qxKcF8fdS5fQt1pjEtVUjr3KUrze5SW8P13F0fLcLg=\r\nrequest-id: f9ec4b7e-29b0-4069-a29b-feb70d64d6c8\r\nclient-request-id: 9318033c-5d41-487b-94af-473eb5ba44a3\r\nStrict-Transport-Security: max-age=31536000; includeSubDomains\r\nDate: Tue, 20 Oct 2020 11:01:29 GMT\r\n, Reason Phrase: Unauthorized",
"innerError": {
"date": "2020-10-20T11:01:30",
"request-id": "bd7cfd16-803d-426b-ba23-c5a3205172ff",
"client-request-id": "bd7cfd16-803d-426b-ba23-c5a3205172ff"
}
}
}
Please tell me how to solve the problem.
I am calling the graph api using my registered application (https://docs.microsoft.com/en-us/graph/auth-v2-service) with the permissions listed below (from JWT token):
{
...,
"roles": [
"TeamSettings.ReadWrite.All",
"EduRoster.Read.All",
"User.ReadWrite.All",
"Domain.ReadWrite.All",
"Application.ReadWrite.All",
"Directory.ReadWrite.All",
"Sites.Read.All",
"Group.ReadWrite.All",
"EduRoster.ReadWrite.All",
"Files.ReadWrite.All",
"Organization.ReadWrite.All",
"Calendars.ReadWrite",
"GroupMember.ReadWrite.All",
"AuditLog.Read.All",
"Member.Read.Hidden",
"Reports.Read.All",
"Notes.ReadWrite.All"
],
...
}
No RepliesBe the first to reply