Disable external sharing on all O365 Groups, with one single exception?

%3CLINGO-SUB%20id%3D%22lingo-sub-107316%22%20slang%3D%22en-US%22%3EDisable%20external%20sharing%20on%20all%20O365%20Groups%2C%20with%20one%20single%20exception%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-107316%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20customer%20that%20is%20using%20Office365%20groups%20to%20collaborate%2C%20mostly%20for%20file%20sharing.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOverall%20they%20don't%20want%20to%20allow%20any%20external%20sharing%20via%20their%20O365%20groups%2C%20except%20for%20one%20specific%20group%20which%20is%20going%20to%20be%20used%20to%20share%20certain%20files%26nbsp%3Bwith%20external%20partners.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20i%20disable%20external%20users%2Fguests%20on%20all%20existing%20and%20future%20O365%20groups%2C%26nbsp%3Bbut%20leave%20one%20group%20where%20it%20is%20still%20enabled%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-107316%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Eexternal%20sharing%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%20Groups%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-298994%22%20slang%3D%22en-US%22%3ERe%3A%20Disable%20external%20sharing%20on%20all%20O365%20Groups%2C%20with%20one%20single%20exception%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-298994%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Foffice365.uservoice.com%2Fforums%2F286611-office-365-groups%2Fsuggestions%2F33724573-ability-to-disable-external-sharing-by-default-for%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Foffice365.uservoice.com%2Fforums%2F286611-office-365-groups%2Fsuggestions%2F33724573-ability-to-disable-external-sharing-by-default-for%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-298992%22%20slang%3D%22en-US%22%3ERe%3A%20Disable%20external%20sharing%20on%20all%20O365%20Groups%2C%20with%20one%20single%20exception%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-298992%22%20slang%3D%22en-US%22%3Eyep%2C%20likewise...%20keen%20to%20hear%20if%20this%20would%20be%20possible%20-%20seems%20sensible%2C%20deny%20all%20by%20default%20and%20allow%20by%20exception%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-179714%22%20slang%3D%22en-US%22%3ERe%3A%20Disable%20external%20sharing%20on%20all%20O365%20Groups%2C%20with%20one%20single%20exception%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-179714%22%20slang%3D%22en-US%22%3E%3CP%3EAre%20there%20any%20new%20updates%20on%20this%20topic%3F%26nbsp%3B%20We'd%20like%20to%20by%20default%2C%20disable%20external%20access%20for%20Group%20then%20enable%20guest%20access%20for%20just%20a%20couple%20Groups%20(similar%20as%20how%20SharePoint%20Online%20works).%26nbsp%3B%20Is%20this%20possible%20yet%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-129080%22%20slang%3D%22en-US%22%3ERe%3A%20Disable%20external%20sharing%20on%20all%20O365%20Groups%2C%20with%20one%20single%20exception%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-129080%22%20slang%3D%22en-US%22%3EI%20have%20raised%20a%20support%20case%20for%20this%20and%20it%20has%20been%20assigned%5Cescalated%20to%20the%20team%20who%20look%20after%20the%20script.%3CBR%20%2F%3ESo%20the%20script%20works%20if%20you%20follow%20these%20steps%3A%3CBR%20%2F%3E1.%20Enable%20guest%20access%20and%20enable%20adding%20guests%20to%20a%20group.%3CBR%20%2F%3E2.%20Run%20script%20to%20disable%20adding%20guests%20to%201%20group.%3CBR%20%2F%3E%3CBR%20%2F%3EScript%20doesn't%20work%20if%3A%3CBR%20%2F%3E1.%20Disable%20adding%20all%20guests%20to%20groups.%3CBR%20%2F%3E2.%20Run%20script%20to%20allow%20adding%20guests%20to%201%20group.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20only%20way%20I%20see%20that%20we%20can%20reach%20our%20desired%20goal%20is%20to%20enable%20adding%20guests%20to%20all%20groups%20and%20then%20run%20the%20script%20on%20a%20group%20by%20group%20basis%20disabling%20the%20option%20to%20add%20guests%2C%20however%20this%20is%20not%20feasible%20for%20us%20as%20we%20have%201000%20groups%20so%20do%20not%20want%20to%20run%20the%20script%20999%20times%20just%20to%20allow%20guest%20access%20to%20one%20group.%3CBR%20%2F%3E%3CBR%20%2F%3EHope%20this%20makes%20sense.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%2C%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-129076%22%20slang%3D%22en-US%22%3ERe%3A%20Disable%20external%20sharing%20on%20all%20O365%20Groups%2C%20with%20one%20single%20exception%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-129076%22%20slang%3D%22en-US%22%3E%3CP%3ECan%20you%20provide%20more%20details%20on%20why%20the%20scripts%20do%20not%20work%20for%20you%3F%20Or%20can%20you%20reach%20Microsoft%20customer%20support%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPresently%20there%20is%20no%20configuration%20that%20disables%20adding%20guests%20to%20all%20groups%20but%20enable%20only%20a%20few.%20If%20you%20disable%20guests%20at%20organization%20level%2C%20all%20groups%20are%20blocked%20to%20add%20guests.%20The%20only%20supported%20way%20is%20enable%20guests%20at%20organization%20level%20and%20then%20set%20all%20groups%20to%20disable%20guests%2C%20except%20the%202%20you%20want%20to%20enable.%20However%2C%20I%20am%20forwarding%20this%20feedback%20to%20the%20Azure%20AD%20team%20for%20their%20consideration.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-128542%22%20slang%3D%22en-US%22%3ERe%3A%20Disable%20external%20sharing%20on%20all%20O365%20Groups%2C%20with%20one%20single%20exception%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-128542%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EWe%20are%20trying%20to%20enable%20only%202%20groups%20out%20of%201000%20to%20have%20guest%20access%20so%20we%20can%20trial%20before%20enabling%20for%20ALL.%20The%20scripts%20which%20can%20be%20found%20here%20%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-gb%2Farticle%2FGuest-access-in-Office-365-Groups-bfc7a840-868f-4fd6-a390-f347bf51aff6%23PickTab%3DManage%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.office.com%2Fen-gb%2Farticle%2FGuest-access-in-Office-365-Groups-bfc7a840-868f-4fd6-a390-f347bf51aff6%23PickTab%3DManage%3C%2FA%3E%3C%2FP%3E%3CP%3Edo%20not%20seem%20to%20work%20for%20us.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20have%20guest%20access%20to%20groups%20disabled%20for%20all%20except%202%20groups%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EShaun%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-107662%22%20slang%3D%22en-US%22%3ERe%3A%20Disable%20external%20sharing%20on%20all%20O365%20Groups%2C%20with%20one%20single%20exception%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-107662%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20block%20adding%20guests%20to%20all%20existing%20groups%20by%20assigning%20AllowToAddGuests%3Dfalse%20(%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2FManage-guest-access-to-Office-365-Groups-7c713d74-a144-4eab-92e7-d50df526ff96%3Fui%3Den-US%26amp%3Brs%3Den-US%26amp%3Bad%3DUS%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Esee%26nbsp%3Bhere%3C%2FA%3E)%20to%20all%20groups%20but%20the%20one%20you%20want%20to%20keep%20enabled.%20However%20this%20will%20not%20affect%20newly%20created%20groups.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-107388%22%20slang%3D%22en-US%22%3ERe%3A%20Disable%20external%20sharing%20on%20all%20O365%20Groups%2C%20with%20one%20single%20exception%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-107388%22%20slang%3D%22en-US%22%3EShort%20answer%3A%20No.%20Microsoft%20does%20not%20provided%20a%20granular%20setting%20for%20guest%20access%20to%20Groups....you%20can%20enable%20%2F%20disable%20it%20globally%2C%20but%20no%20per%20group%20basics...what%20you%20can%20do%20is%20just%20take%20advantage%20to%20the%20external%20access%20to%20the%20SPO%20Groups%20sites%3C%2FLINGO-BODY%3E
New Contributor

I have a customer that is using Office365 groups to collaborate, mostly for file sharing. 

 

Overall they don't want to allow any external sharing via their O365 groups, except for one specific group which is going to be used to share certain files with external partners.

 

Can i disable external users/guests on all existing and future O365 groups, but leave one group where it is still enabled?

8 Replies
Short answer: No. Microsoft does not provided a granular setting for guest access to Groups....you can enable / disable it globally, but no per group basics...what you can do is just take advantage to the external access to the SPO Groups sites

You can block adding guests to all existing groups by assigning AllowToAddGuests=false (see here) to all groups but the one you want to keep enabled. However this will not affect newly created groups.

 

 

Hi,

We are trying to enable only 2 groups out of 1000 to have guest access so we can trial before enabling for ALL. The scripts which can be found here https://support.office.com/en-gb/article/Guest-access-in-Office-365-Groups-bfc7a840-868f-4fd6-a390-f...

do not seem to work for us.

 

Is it possible to have guest access to groups disabled for all except 2 groups?

 

Thanks,

Shaun

Can you provide more details on why the scripts do not work for you? Or can you reach Microsoft customer support?

 

Presently there is no configuration that disables adding guests to all groups but enable only a few. If you disable guests at organization level, all groups are blocked to add guests. The only supported way is enable guests at organization level and then set all groups to disable guests, except the 2 you want to enable. However, I am forwarding this feedback to the Azure AD team for their consideration.

I have raised a support case for this and it has been assigned\escalated to the team who look after the script.
So the script works if you follow these steps:
1. Enable guest access and enable adding guests to a group.
2. Run script to disable adding guests to 1 group.

Script doesn't work if:
1. Disable adding all guests to groups.
2. Run script to allow adding guests to 1 group.

The only way I see that we can reach our desired goal is to enable adding guests to all groups and then run the script on a group by group basis disabling the option to add guests, however this is not feasible for us as we have 1000 groups so do not want to run the script 999 times just to allow guest access to one group.

Hope this makes sense.

Thanks,

Are there any new updates on this topic?  We'd like to by default, disable external access for Group then enable guest access for just a couple Groups (similar as how SharePoint Online works).  Is this possible yet?

yep, likewise... keen to hear if this would be possible - seems sensible, deny all by default and allow by exception?