@ -65,7 +65,7 @@ Users that are a member of the 'Heroes' group, either directly or via nesting
@@ -65,7 +65,7 @@ Users that are a member of the 'Heroes' group, either directly or via nesting
## Azure Active Directory
The Microsoft Graph API does not provide a way to filter groups and users directly, however, you can use our custom filtering syntax that allows you to exclude or include a comma separated list of group names and user emails.
The Microsoft Graph API does not provide a way to filter groups and users directly, however, you can use our custom filtering syntax that allows you to exclude or include a comma separated list of group names, user emails, or users based on their group membership.
### Examples
@ -85,6 +85,8 @@ exclude:Group C,Developers,Some Other Group
@@ -85,6 +85,8 @@ exclude:Group C,Developers,Some Other Group
#### Users
You can include/exclude users directly by using `include` or `exclude` keywords like below:
Alternatively, you can filter users based on their Azure AD group membership by using `includeGroup` or `excludeGroup` keywords. You must obtain the Azure AD group ID and include it with the keyword. You can get the group's ID in the [Azure Portal](https://portal.azure.com) or through [Azure AD PowerShell](https://docs.microsoft.com/en-us/powershell/module/azuread/get-azureadgroup?view=azureadps-2.0).
@ -189,4 +201,4 @@ Only the Okta `filter` search (notice the `|` prefix that is required):
@@ -189,4 +201,4 @@ Only the Okta `filter` search (notice the `|` prefix that is required):