Share via


az ad group owner

Manage group owners.

Commands

Name Description Type Status
az ad group owner add

Add a group owner.

Core GA
az ad group owner list

List group owners.

Core GA
az ad group owner remove

Remove a group owner.

Core GA

az ad group owner add

Add a group owner.

az ad group owner add --group
                      --owner-object-id

Examples

add a group owner. (autogenerated)

az ad group owner add --group MyGroupDisplayName --owner-object-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).

--owner-object-id

Owner's object id.

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 owner list

List group owners.

az ad group owner list --group

Examples

List group owners. (autogenerated)

az ad group owner list --group MyGroupDisplayName

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 owner remove

Remove a group owner.

az ad group owner remove --group
                         --owner-object-id

Examples

remove a group owner. (autogenerated)

az ad group owner remove --group MyGroupDisplayName --owner-object-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).

--owner-object-id

Owner's object id.

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.