Dynamic Groups in Azure AD
Have tried to use the advanced queries and heres an example of an advanced query:
1 2 |
((user.userPrincipalName -startsWith "e") -or (user.userPrincipalName -startsWith "u") -or (user.userPrincipalName -startsWith "b")) -and ((user.userPrincipalName -match "@domain.com") -and (user.accountEnabled -eq true) -and (user.userType -eq "Member")) |
This query will add members:
UserPrincipalName Starts with e, u or b
UserPrincipalName Match @domain.com and Account is Enabled and UserType is Member