az msgraph group member
Manage members of a Microsoft Entra group.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az msgraph group member check |
Check whether a directory object is a member of a Microsoft Entra group. |
Core | Preview |
| az msgraph group member list |
List the members of a Microsoft Entra group. |
Core | Preview |
az msgraph group member check
Check whether a directory object is a member of a Microsoft Entra group.
Report whether the specified member (user, group, service principal, or device) is a transitive member of the given group. The group can be identified by object ID or display name prefix (single match required). Returns true if the member is in the group, false otherwise.
az msgraph group member check --group
--member-id
Examples
Check whether a user is a member of a group
az msgraph group member check --group 11111111-2222-3333-4444-555555555555 --member-id aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
Check by group display name
az msgraph group member check --group Sales --member-id aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
Required Parameters
The group's object ID or display name (prefix works if there is a unique match).
The object ID of the member to test.
Global Parameters
Increase logging verbosity to show all debug logs.
Show help for the command or group and exit.
Bypass the extension discovery cache and reload extensions from disk.
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, table, tsv, yaml, yamlc |
JMESPath query string to filter/project the command result before rendering.
az msgraph group member list
List the members of a Microsoft Entra group.
List every user, group, service principal, or device that is a direct member of the specified group. The group can be identified by object ID, display name prefix (single match required), or exact display name.
az msgraph group member list [--consistency-level]
[--display-name]
[--expand]
[--filter]
[--group]
[--orderby]
[--search]
[--select]
Examples
List members of a group by object ID
az msgraph group member list --group 11111111-2222-3333-4444-555555555555
List members of a group by display name
az msgraph group member list --group Sales
List members of a group by exact display name
az msgraph group member list --display-name "Sales Team"
List members with a custom filter and projection
az msgraph group member list --group Sales --filter "startswith(displayName,'A')" --select id displayName
Search members in a group
az msgraph group member list --group Sales --search "\"displayName:ada\"" --consistency-level eventual
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Set to 'eventual' to enable advanced query features such as $search, $count, or $orderby on non-indexed properties.
The exact display name of the target group.
Related properties to include in the response.
OData $filter expression.
The group's object ID or display name (prefix works if there is a unique match).
OData $orderby values.
OData $search expression. Requires ConsistencyLevel eventual.
Properties to return.
Global Parameters
Increase logging verbosity to show all debug logs.
Show help for the command or group and exit.
Bypass the extension discovery cache and reload extensions from disk.
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, table, tsv, yaml, yamlc |
JMESPath query string to filter/project the command result before rendering.