microsoft graph – Team and Groups members out-of-sync

We also experience inconsistencies: We create Teams, then add Users to the corresponding Group. They appear in the Admin Console as part of the Group. But in Teams they do not appear. Only if removed and added inside the Admin console they are also part of the Team (but of course this is not doable for thousands of users…)

The solution

Our solution was to replace “old” Graph API calls with the new beta API.

So instead of

https://graph.microsoft.com/v1.0/groups/{groupId}/owners/$ref

we use the beta API like so:

https://graph.microsoft.com/beta/groups/{groupId}/owners/$ref

Only the beta version of the API seems to also add the users to the Team while the v1.0 only adds it to the Group but not to the corresponding Team.