User keeps getting removed from Team - need advice on how to track down cause

Posted by ZippyDan@reddit | sysadmin | View on Reddit | 14 comments

I have a user that keeps getting removed from a specific Team.

I've checked the Audit logs and I found an initial removal of several Team Members by a Team Owner - most of them were deactivated accounts so this was a legitimate removal, but I think one current Team member was accidentally selected for removal.

I can see the specific Owner's username doing the original removal in the logs, followed by several removals of other Members done by a "ServicePrincipal" account associated with "Microsoft Teams Services" Enterprise App.

Since then, I add the user back to the Team every time, but the user is getting removed from the Team again and again. I don't see any specific username (of a real user, anyway) associated with these subsequent removals - only a "ServicePrincipal" again, but this time it's always by a different Enterprise App: "Microsoft Teams Templates Service".

It's almost like the Owner set a list of what Members should be on the Team, and Teams is automatically "purging" any Members that don't appear on their master list? But I don't know how this would be occurring. Is there such a function on Teams? I tried digging through the Microsoft Teams Admin Center for an "Allowed List" - and of course I checked the "Teams Templates" section - but I don't see any such relevant feature.

I know I can restrict access to a Team, but I'm able to add the user to the Team with no problem. The user is not blocked from accessing the Team - they are being removed from the Team at seemingly random intervals by a Teams process: sometimes it happens days later, sometimes a month later.