entra administrativeunit list
Retrieves a list of administrative units
Usage
m365 entra administrativeunit list [options]
Options
-p, --properties [properties]
Comma-separated list of properties to retrieve.
-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 isoptions
.--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]
Output type.
json
,text
,csv
,md
,none
. Defaultjson
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
Remarks
Using the --properties
option, you can specify a comma-separated list of administrative unit properties to retrieve from the Microsoft Graph. If you don't specify any properties, the command will output the default properties returned by Graph.
Examples
Retrieve a list of administrative units.
m365 entra administrativeunit list
Retrieve a list of administrative units with specified properties.
m365 entra administrativeunit list --properties "id,displayName"
Response
- JSON
- Text
- CSV
- Markdown
[
{
"id": "0a22c83d-c4ac-43e2-bb5e-87af3015d49f",
"deletedDateTime": null,
"displayName": "Marketing Department",
"description": "Marketing Department Administration",
"membershipRule": null,
"membershipType": null,
"membershipRuleProcessingState": null,
"visibility": "HiddenMembership"
}
]
displayName: 0a22c83d-c4ac-43e2-bb5e-87af3015d49f
id : Marketing Department
visibility : HiddenMembership
id,displayName,description,visibility
0a22c83d-c4ac-43e2-bb5e-87af3015d49f,Marketing Department,Marketing Department Administration,HiddenMembership
# entra administrativeunit list
Date: 2023-10-16
## Marketing Department (0a22c83d-c4ac-43e2-bb5e-87af3015d49f)
Property | Value
---------|-------
id | 0a22c83d-c4ac-43e2-bb5e-87af3015d49f
displayName | Marketing Department
description | Marketing Department Administration
visibility | HiddenMembership