Home

Manage guest access in Teams API

%3CLINGO-SUB%20id%3D%22lingo-sub-758335%22%20slang%3D%22en-US%22%3EManage%20guest%20access%20in%20Teams%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-758335%22%20slang%3D%22en-US%22%3E%3CP%3EWhat%20is%20the%20Microsoft%20Graph%20API%20endpoint%20to%20restrict%20guest%20user%20access%20to%20Microsoft%20Teams%3F%20I%20want%20to%26nbsp%3B%3CSPAN%3Eprevent%20guests%20from%20being%20added%20to%20teams%20when%20the%20team%20is%20being%20created%20via%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fteam-put-teams%3Fview%3Dgraph-rest-1.0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fteam-put-teams%3Fview%3Dgraph-rest-1.0%3C%2FA%3E%26nbsp%3Bcall.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-758335%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EGraph%20API%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-758408%22%20slang%3D%22en-US%22%3ERe%3A%20Manage%20guest%20access%20in%20Teams%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-758408%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20control%20this%20on%20the%20underlying%20Group%20object%2C%20not%20the%20team%20itself.%20Here's%20the%20Graph%20call%20to%20use%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fdirectorysetting-update%3Fview%3Dgraph-rest-beta%26amp%3Btabs%3Dhttp%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fdirectorysetting-update%3Fview%3Dgraph-rest-beta%26amp%3Btabs%3Dhttp%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-758616%22%20slang%3D%22en-US%22%3ERe%3A%20Manage%20guest%20access%20in%20Teams%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-758616%22%20slang%3D%22en-US%22%3E%3CP%3EAccording%20to%20this%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fresources%2Fgroup%3Fview%3Dgraph-rest-beta%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fresources%2Fgroup%3Fview%3Dgraph-rest-beta%3C%2FA%3E%26nbsp%3Bthis%20have%20%22allowExternalSenders%22%20-%20is%20this%20what%20you%20are%20saying%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
ishammohamed
New 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 https://docs.microsoft.com/en-us/graph/api/team-put-teams?view=graph-rest-1.0 call. 

3 Replies

You control this on the underlying Group object, not the team itself. Here's the Graph call to use: https://docs.microsoft.com/en-us/graph/api/directorysetting-update?view=graph-rest-beta&tabs=http

According to this https://docs.microsoft.com/en-us/graph/api/resources/group?view=graph-rest-beta 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: https://docs.microsoft.com/en-us/azure/active-directory/users-groups-roles/groups-settings-cmdlets

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies