Share via


az ad group member

Manage group members.

Commands

Name Description Type Status
az ad group member add

Add a member to a group.

Core GA
az ad group member check

Check if a member is in a group.

Core GA
az ad group member list

Get the members of a group.

Core GA
az ad group member remove

Remove a member from a group.

Core GA

az ad group member add

Add a member to a group.

az ad group member add --group
                       --member-id

Required Parameters

--group -g

Group's object id or display name(prefix also works if there is a unique match).

--member-id

The object ID of the contact, group, user, or service principal.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az ad group member check

Check if a member is in a group.

az ad group member check --group
                         --member-id

Examples

Check if a member is in a group. (autogenerated)

az ad group member check --group MyGroupDisplayName --member-id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Required Parameters

--group -g

Group's object id or display name(prefix also works if there is a unique match).

--member-id

The object ID of the contact, group, user, or service principal.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az ad group member list

Get the members of a group.

az ad group member list --group

Required Parameters

--group -g

Group's object id or display name(prefix also works if there is a unique match).

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az ad group member remove

Remove a member from a group.

az ad group member remove --group
                          --member-id

Required Parameters

--group -g

Group's object id or display name(prefix also works if there is a unique match).

--member-id

The object ID of the contact, group, user, or service principal.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.