Skip to main content

entra administrativeunit list

Retrieves a list of administrative units

Usage

m365 entra administrativeunit list [options]

Options

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is options.

--query [query]

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

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Examples

Retrieve a list of administrative units

m365 entra administrativeunit list

Response

[
{
"id": "0a22c83d-c4ac-43e2-bb5e-87af3015d49f",
"deletedDateTime": null,
"displayName": "Marketing Department",
"description": "Marketing Department Administration",
"membershipRule": null,
"membershipType": null,
"membershipRuleProcessingState": null,
"visibility": "HiddenMembership"
}
]

More information

CTRL + M