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 |
Gets 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 |
Gets 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 |
Gets 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
Object's display name or its prefix.
Mail nickname.
Optional Parameters
Group description.
Always create a new group instead of updating the one with same display and mail nickname.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
az ad group delete
Delete a group from the directory.
az ad group delete --group
Required Parameters
Group's object id or display name(prefix also works if there is a unique match).
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
az ad group get-member-groups
Gets a collection of object IDs of groups of which the specified group is a member.
az ad group get-member-groups --group
[--additional-properties]
[--security-enabled-only {false, true}]
Required Parameters
Group's object id or display name(prefix also works if there is a unique match).
Optional Parameters
Unmatched properties from the message are deserialized this collection.
If true, only membership in security-enabled groups should be checked. Otherwise, membership in all groups should be checked.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
az ad group list
List groups in the directory.
az ad group list [--display-name]
[--filter]
[--query-examples]
Optional Parameters
Object's display name or its prefix.
OData filter, e.g. --filter "displayname eq 'test' and servicePrincipalType eq 'Application'".
Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
az ad group show
Gets group information from the directory.
az ad group show --group
[--query-examples]
Required Parameters
Group's object id or display name(prefix also works if there is a unique match).
Optional Parameters
Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.