There may be some cases where you would like to filter the Azure AD records for Users and Groups. Some example cases can be listed as follows:
...
Description | Filter Name | Filter |
---|---|---|
To list only Microsoft 365 groups (aka unified groups), apply a filter on groupTypes: | Group | groupTypes/any(c:c+eq+'Unified') |
Only import Groups starting with “corp”“corp”. | Group | startswith(displayName, 'corp') |
Only the active users. | Users | accountEnabled eq true |
Only the users having the organizations organization's email address. | Users | endswithendsWith(mail,'a@organization.com@organization.com') |
Import only if the users have a company name that is not Microsoft. | Users | companyName ne null and NOT(companyName eq 'Microsoft') |
Do not import the users starting with Conf. | Users | NOT startsWith(displayName, 'Conf') |