az ad group

Manage Azure Active Directory groups.

Commands

az ad group create

Create a group in the directory.

az ad group delete

Delete a group from the directory.

az ad group get-member-groups

Get a collection of object IDs of groups of which the specified group is a member.

az ad group list

List groups in the directory.

az ad group member

Manage Azure Active Directory group members.

az ad group member add

Add a member to a group.

az ad group member check

Check if a member is in a group.

az ad group member list

Get the members of a group.

az ad group member remove

Remove a member from a group.

az ad group owner

Manage Azure Active Directory group owners.

az ad group owner add

Add a group owner.

az ad group owner list

List group owners.

az ad group owner remove

Remove a group owner.

az ad group show

Get group information from the directory.

az ad group create

Create a group in the directory.

az ad group create --display-name
                   --mail-nickname
                   [--description]
                   [--force {false, true}]

Examples

Create a group in the directory. (autogenerated)

az ad group create --display-name MyDisplay --mail-nickname MyDisplay

Required Parameters

--display-name

Object's display name or its prefix.

--mail-nickname

Mail nickname.

Optional Parameters

--description

Group description.

--force

Always create a new group instead of updating the one with same display and mail nickname.

accepted values: false, true

az ad group delete

Delete a group from the directory.

az ad group delete --group

Required Parameters

--group -g

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

az ad group get-member-groups

Get a collection of object IDs of groups of which the specified group is a member.

az ad group get-member-groups --group
                              [--security-enabled-only {false, true}]

Required Parameters

--group -g

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

Optional Parameters

--security-enabled-only

True to specify that only security groups that the entity is a member of should be returned; false to specify that all groups and directory roles that the entity is a member of should be returned.

accepted values: false, true
default value: False

az ad group list

List groups in the directory.

az ad group list [--display-name]
                 [--filter]

Optional Parameters

--display-name

Object's display name or its prefix.

--filter

OData filter, e.g. --filter "displayname eq 'test' and servicePrincipalType eq 'Application'".

az ad group show

Get group information from the directory.

az ad group show --group

Required Parameters

--group -g

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