SOLVED
Home

Group together Guest Accounts based on Dynamic Groups

%3CLINGO-SUB%20id%3D%22lingo-sub-201413%22%20slang%3D%22en-US%22%3EGroup%20together%20Guest%20Accounts%20based%20on%20Dynamic%20Groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-201413%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20create%20a%20dynamic%20Security%20Group%20within%20azure%20to%20automatically%20add%20every%20new%20Guest%20Account%20to%20this%20group%20for%20example%20to%20use%20to%26nbsp%3Bassign%20access%20to%26nbsp%3Ba%20Customized%20SharePoint%20Collab%20Landing%20Page%20for%20External%20Users%20or%20other%20such%20Tasks%20%3F%20unfortunately%20i%20could%20not%20find%20such%20a%20Group%20or%20Option%20only%20for%20full%20Internal%20User%20Accounts.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%3C%2FP%3E%3CP%3EUeli%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-201413%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAccess%20Management%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIdentity%20Management%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-359663%22%20slang%3D%22en-US%22%3ERe%3A%20Group%20together%20Guest%20Accounts%20based%20on%20Dynamic%20Groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-359663%22%20slang%3D%22en-US%22%3EHi%20Brian%2C%3CBR%20%2F%3Estrange%2C%20the%20welcome%20email%20thing%20has%20never%20happened%20with%20Dynamic%20Groups%20within%20our%20tenant.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EI've%20assigned%20dynamic%20groups%20with%20normal%20member%20accounts%20(not%20guest)%20and%20the%20permissions%20work%2C%20still%20haven't%20got%20this%20to%20work%20with%20Guest%20users%20though%2C%20I%20suspect%20it%20may%20be%20to%20do%20with%20the%20licence%20ration%20for%20AAD%20P1%20member%20to%20Guest%20accounts%2C%20perhaps.%3CBR%20%2F%3E%3CBR%20%2F%3Ethanks%3CBR%20%2F%3ETerry%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-359632%22%20slang%3D%22en-US%22%3ERe%3A%20Group%20together%20Guest%20Accounts%20based%20on%20Dynamic%20Groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-359632%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Terry%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBy%20default%2C%20as%20each%20new%20member%20is%20dynamically%20added%20to%20the%20group%2C%20they%20all%20receive%20a%20welcome%20email%20-%20in%20this%20case%20a%20bunch%20of%20them%20at%20once%20because%20they%20were%20existing%20tenant%20members.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20for%20us%2C%20assigning%20permissions%20for%20the%20dynamic%20group%20to%20something%20in%20SharePoint%20worked.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBrian%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-358844%22%20slang%3D%22en-US%22%3ERe%3A%20Group%20together%20Guest%20Accounts%20based%20on%20Dynamic%20Groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-358844%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Brian%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ehow%20would%20it%20be%20the%20case%20that%20guest%20users%20in%20the%20Dynamic%20group%20would%20get%20a%20welcome%20email%3F%20In%20order%20to%20be%20dynamically%20added%20to%20the%20group%20the%20guest%20user%20would%20already%20have%20been%20invited%20into%20the%20tenant%20in%20order%20for%20them%20to%20have%20been%20created%20in%20Azure%20AD%2C%20only%20after%20being%20created%20could%20they%20be%20added%20to%20the%20dynamic%20group.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20created%20a%20number%20of%20dynamic%20security%20groups%20for%20external%20users%20based%20on%20their%20UPN%20domain%2C%20however%2C%20adding%20them%20to%20SharePoint%20site%20security%20groups%20does%20not%20appear%20to%20work%2C%20the%20external%20users%20don't%20get%20access%20to%20the%20site.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETerry%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-357512%22%20slang%3D%22en-US%22%3ERe%3A%20Group%20together%20Guest%20Accounts%20based%20on%20Dynamic%20Groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-357512%22%20slang%3D%22en-US%22%3EHi%20Vasil%2C%3CBR%20%2F%3EThanks%20for%20the%20tip.%20We%20tried%20it%20out%20and%20it%20worked.%20However%2C%20anyone%20who%20might%20try%20this%20should%20be%20aware%20that%20each%20of%20the%20guest%20users%20dynamically%20added%20to%20the%20group%20will%20get%20a%20welcome%20email%20that%20includes%20the%20name%20of%20each%20group%20member.%3CBR%20%2F%3EBrian%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-202553%22%20slang%3D%22en-US%22%3ERe%3A%20Group%20together%20Guest%20Accounts%20based%20on%20Dynamic%20Groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-202553%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Dean%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIts%20actually%20always%20the%20Tenant%20which%20invites%20the%20Guests%20requiring%20the%20correct%20count%20of%20Licenses%20regarding%20Azure%20MFA.%20Its%20a%201%3A5%20Ratio.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20need%201%20User%20which%20has%20a%20AD%20Premium%20or%20Azure%20MFA%20License%20and%20with%20that%20you%20can%20have%205%20Guest%20Users%20which%20are%20required%20to%20use%20MFA%20while%20accessing%20one%20of%20your%20Resources%20%2FSaaS%20Apps.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThey%20do%20not%20have%20to%20be%20related%20to%20that%20specific%20User.%3C%2FP%3E%3CP%3EI%20hope%20this%20helps%20to%20clarify%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%3C%2FP%3E%3CP%3EUeli%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-201896%22%20slang%3D%22en-US%22%3ERe%3A%20Group%20together%20Guest%20Accounts%20based%20on%20Dynamic%20Groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-201896%22%20slang%3D%22en-US%22%3E%3CP%3EShhhhh%2C%20let%20it%20slide%20%3A)%3C%2Fimg%3E%20I'm%20not%20sure%20to%20be%20honest%2C%20I%20know%20that%20they%20are%20not%20enforcing%20the%20licensing%20requirement%20in%20code%2C%20but%20whether%20Guest%20users%20need%20to%20be%20licensed...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-201735%22%20slang%3D%22en-US%22%3ERe%3A%20Group%20together%20Guest%20Accounts%20based%20on%20Dynamic%20Groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-201735%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3Ehow%20does%20the%20licensing%20for%20this%20scenario%20work%3F%20I%20thought%20that%20dynamic%20group%20members%20needed%20to%20have%20AAD%20P1%2C%20is%20there%20an%20exemption%20for%20guests%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-201715%22%20slang%3D%22en-US%22%3ERe%3A%20Group%20together%20Guest%20Accounts%20based%20on%20Dynamic%20Groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-201715%22%20slang%3D%22en-US%22%3E%3CP%3EGreat%20Vasil%20that%20is%20exactly%20what%20i%20need.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%3C%2FP%3E%3CP%3EUeli%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-201425%22%20slang%3D%22en-US%22%3ERe%3A%20Group%20together%20Guest%20Accounts%20based%20on%20Dynamic%20Groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-201425%22%20slang%3D%22en-US%22%3E%3CP%3EYes%2C%20it's%20possible%20via%20the%20Dynamic%20Azure%20AD%20Groups%20functionality%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Factive-directory-groups-dynamic-membership-azure-portal%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Factive-directory-groups-dynamic-membership-azure-portal%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20membership%20rule%20you%20need%20is%3A%20(user.userType%20-eq%20%22Guest%22)%3C%2FP%3E%3C%2FLINGO-BODY%3E
Ueli Zimmermann
Contributor

Hi All,

 

Is it possible to create a dynamic Security Group within azure to automatically add every new Guest Account to this group for example to use to assign access to a Customized SharePoint Collab Landing Page for External Users or other such Tasks ? unfortunately i could not find such a Group or Option only for full Internal User Accounts.

 

Cheers

Ueli

9 Replies
Solution

Yes, it's possible via the Dynamic Azure AD Groups functionality: https://docs.microsoft.com/en-us/azure/active-directory/active-directory-groups-dynamic-membership-a...

 

The membership rule you need is: (user.userType -eq "Guest")

Great Vasil that is exactly what i need. 

 

Cheers

Ueli

@Vasil Michevhow does the licensing for this scenario work? I thought that dynamic group members needed to have AAD P1, is there an exemption for guests?

Shhhhh, let it slide :) I'm not sure to be honest, I know that they are not enforcing the licensing requirement in code, but whether Guest users need to be licensed...

Hi Dean,

 

Its actually always the Tenant which invites the Guests requiring the correct count of Licenses regarding Azure MFA. Its a 1:5 Ratio. 

 

You need 1 User which has a AD Premium or Azure MFA License and with that you can have 5 Guest Users which are required to use MFA while accessing one of your Resources /SaaS Apps.

 

They do not have to be related to that specific User.

I hope this helps to clarify

 

Cheers

Ueli

Hi Vasil,
Thanks for the tip. We tried it out and it worked. However, anyone who might try this should be aware that each of the guest users dynamically added to the group will get a welcome email that includes the name of each group member.
Brian

Hi Brian,

 

how would it be the case that guest users in the Dynamic group would get a welcome email? In order to be dynamically added to the group the guest user would already have been invited into the tenant in order for them to have been created in Azure AD, only after being created could they be added to the dynamic group.

 

I've created a number of dynamic security groups for external users based on their UPN domain, however, adding them to SharePoint site security groups does not appear to work, the external users don't get access to the site.

 

Terry

Hi Terry,

 

By default, as each new member is dynamically added to the group, they all receive a welcome email - in this case a bunch of them at once because they were existing tenant members.

 

And for us, assigning permissions for the dynamic group to something in SharePoint worked.

 

Brian

Hi Brian,
strange, the welcome email thing has never happened with Dynamic Groups within our tenant. 

I've assigned dynamic groups with normal member accounts (not guest) and the permissions work, still haven't got this to work with Guest users though, I suspect it may be to do with the licence ration for AAD P1 member to Guest accounts, perhaps.

thanks
Terry
Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies