Hi @Ian Simpson , we have created bug for this , our engineering team is working on it . We don't have any ETA to share with you on fix.
Random Bad Request and Forbidden responses from certain endpoints
Ian Simpson
21
Reputation points
I've started getting seemingly random Bad Request and Forbidden responses from Graph. The overall execution of the code does the following:
- Create a MS Teams Team be calling POST - https://graph.microsoft.com/v1.0/teams
- Add guests to that Team
- Create folders for all guests under the main channel
- Remove all permissions from folders (aside from "owner" role) and re-add the appropriate guest as the manager of that folder
- Create a meeting related to the created Team.
Everything was working fine until today.
- I started getting Forbidden responses from POST - groups/{team-id}/events. This was fixed by tweaking the date format. But then
- I started getting Bad Request or Forbidden responses from DELETE - groups/{team-id}/drive/items/{item-id}/permissions/{permission-id}
- I also began getting Forbidden responses from POST teams/{team-id}/members
These errors are all random. Sometimes I'll get lucky and the request will go through with identical parameters. Error 3 appears to go away if I manually get a new OAuth token before trying the request.