Yes, you can create dynamic group memberships in Azure Active Directory (Azure AD). Here's a step-by-step guide on how to do this:
Start by signing into the Azure portal.
In the left-hand navigation pane, select the Azure Active Directory service, and then select Groups.
Select New Group, choose the Group Type as Security
.
Provide a name and description for the new group — say, "SharePoint Users".
For Membership type, choose Dynamic User.
In the Dynamic membership rules section, you need to write a query that represents your SharePoint list members. Unfortunately, Azure AD doesn't support natively fetching users from a SharePoint list. You must have some common attribute among all users who are part of your SharePoint list. This could be job title
, department
, user location
, or any other attribute.
Once you have identified such an attribute, you can use it in forming your rule. For example, if you want to include all users from the "Sales" department, your rule might look like this: (user.department -eq "Sales")
Click on Add Query, then Create.
Please note that these steps only work if the specific user properties used in the dynamic group rules are available and synchronized into Azure AD. If your scenario involves a SharePoint list which is not directly related to any user property or attribute in Azure AD, you may need to explore custom synchronization solutions or use PowerShell scripting to update group members based on changes in the SharePoint list.