SOLVED

List of Groups wit Guest Users?

%3CLINGO-SUB%20id%3D%22lingo-sub-276246%22%20slang%3D%22en-US%22%3EList%20of%20Groups%20wit%20Guest%20Users%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-276246%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20it%20possible%20somehow%20to%20list%20all%20Office%20365%20Groups%20that%20have%20Guest%20Users%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-276246%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EGroups%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGuest%20Users%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-276425%22%20slang%3D%22en-US%22%3ERe%3A%20List%20of%20Groups%20wit%20Guest%20Users%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-276425%22%20slang%3D%22en-US%22%3EAwesome%20%3A)%3C%2Fimg%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-276424%22%20slang%3D%22en-US%22%3ERe%3A%20List%20of%20Groups%20wit%20Guest%20Users%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-276424%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20the%20shout%20out%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F72542%22%20target%3D%22_blank%22%3E%40adam%20deltinger%3C%2FA%3E%26nbsp%3B%3A)%3C%2Fimg%3E%3C%2FP%3E%0A%3CP%3EThe%20script%20can%20certainly%20be%20used%20for%20that%20scenario%2C%20although%20it%20will%20require%20some%20filtering%2C%20as%20this%20is%20not%20its%20primary%20use.%20Perhaps%20an%20easier%20method%20is%20to%20just%20check%20the%20value%20of%20the%20GroupExternalMemberCount%20parameter%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3EGet-UnifiedGroup%20-ResultSize%20Unlimited%20-Filter%20%7BGroupExternalMemberCount%20-gt%200%7D%20%7C%20select%20DisplayName%2CGroupExternalMemberCount%3C%2FPRE%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-276252%22%20slang%3D%22en-US%22%3ERe%3A%20List%20of%20Groups%20wit%20Guest%20Users%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-276252%22%20slang%3D%22en-US%22%3E%3CP%3EI%20do%20believe%20that%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F88894%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E's%20powershell%20script%20can%20output%20guest%20users%20in%20groups%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgallery.technet.microsoft.com%2FOffice-365-Group-links-2957554a%2Fview%2FDiscussions%23content%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgallery.technet.microsoft.com%2FOffice-365-Group-links-2957554a%2Fview%2FDiscussions%23content%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20also%20%22access%20Review%22%20coming%20to%20govern%20guests%20in%20office%20365%20in%20a%20better%20way!%26nbsp%3B%3C%2FP%3E%3CP%3EIt's%20a%26nbsp%3B%3CSPAN%3EPremium%20P2%20edition%20of%20Azure%20AD%3C%2FSPAN%3Erequired%20though%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fgovernance%2Fmanage-guest-access-with-access-reviews%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fgovernance%2Fmanage-guest-access-with-access-reviews%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eadam%3C%2FP%3E%3C%2FLINGO-BODY%3E
Frequent Contributor

Is it possible somehow to list all Office 365 Groups that have Guest Users?

3 Replies

I do believe that @Vasil Michev 's powershell script can output guest users in groups:

 

https://gallery.technet.microsoft.com/Office-365-Group-links-2957554a/view/Discussions#content

 

There is also "access Review" coming to govern guests in office 365 in a better way! 

It's a Premium P2 edition of Azure AD required though

https://docs.microsoft.com/en-us/azure/active-directory/governance/manage-guest-access-with-access-r...

 

adam

best response confirmed by Jakob Rohde (Frequent Contributor)
Solution

Thanks for the shout out @adam deltinger :)

The script can certainly be used for that scenario, although it will require some filtering, as this is not its primary use. Perhaps an easier method is to just check the value of the GroupExternalMemberCount parameter:

 

Get-UnifiedGroup -ResultSize Unlimited -Filter {GroupExternalMemberCount -gt 0} | select DisplayName,GroupExternalMemberCount

 

 

Awesome :)