I am working on some code that started having issues in the last couple weeks. I am able with application permissions to create an Office 365 Group. When I try to run the Graph call to add a Microsoft Team to the group I am getting the following error.
I have found, through testing, that if I create a team using the Graph Explorer on the created group or if I create a team through the Teams UI that my code will start working for 24 hours and then I start getting the same error again. It seems to me like there is something wrong with the setup of application permissions in the Teams Graph API. Any help would be appreciated. Having to have a user manually create a team once every 24 hours to make my code work is not an ideal scenario.