Manage guest access in Teams API

Occasional Contributor

What is the Microsoft Graph API endpoint to restrict guest user access to Microsoft Teams? I want to prevent guests from being added to teams when the team is being created via call. 

3 Replies

You control this on the underlying Group object, not the team itself. Here's the Graph call to use:

According to this this have "allowExternalSenders" - is this what you are saying?

No, I'm talking about the actual directory settings which control group behavior. If you are not familiar with them, read here: