Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

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
 [--acquire-policy-token]
 [--change-reference]

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.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments

az ad group member check

Check if a member is in a group.

az ad group member check --group
 --member-id
 [--acquire-policy-token]
 [--change-reference]

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.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments

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).

az ad group member remove

Remove a member from a group.

az ad group member remove --group
 --member-id
 [--acquire-policy-token]
 [--change-reference]

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.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments

Feedback

Was this page helpful?