Skip to main content

entra administrativeunit get

Gets information about a specific administrative unit

Usage

m365 entra administrativeunit get [options]

Alias

m365 aad administrativeunit get [options]

Options

-i, --id [id]

The id of the administrative unit. Specify either id or displayName but not both.

-n, --displayName [displayName]

The display name of the administrative unit. Specify either id or displayName but not both.

-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

Get information about the administrative unit by its id

m365 entra administrativeunit get --id 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7

Get information about the administrative unit by its display name

m365 entra administrativeunit get --displayName 'Marketing Division'

Response

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

More information

CTRL + M