Forum Discussion
Group together Guest Accounts based on Dynamic Groups
- Jun 06, 2018
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-azure-portal
The membership rule you need is: (user.userType -eq "Guest")
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
- Brian MairMar 04, 2019Brass Contributor
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
- ITMatters4UNov 17, 2021Copper ContributorHi Brian, there is indeed a welcome email. However, this can be disabled. Please see https://spodev.com/disable-welcome-email-for-microsoft-365-groups/amp/ on how to do this.
- Terry HaganMar 04, 2019Iron ContributorHi 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