entra administrativeunit add
Creates a new administrative unit
Usage
m365 entra administrativeunit add [options]
Options
-n, --displayname <displayName>
Display name for the administrative unit.
-d, --description [description]
Description for the administrative unit.
--hiddenMembership
Indicates whether the administrative unit and its members are hidden.
-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
To use this command you must be either Global Administrator or Privileged Role Administrator.
Examples
Create an administrative unit with a specific display name
m365 entra administrativeunit add --displayName 'Marketing Division'
Create an administrative unit with a specific display name and description
m365 entra administrativeunit add --displayName 'Marketing Division' --description 'Marketing department administration'
Create a hidden administrative unit with a specific display name
m365 entra administrativeunit add --displayName 'Marketing Division' --hiddenMembership
Response
- JSON
- Text
- CSV
- Markdown
{
"id": "00b45a1b-7632-4e94-a3bd-f06aec976d31",
"deletedDateTime": null,
"displayName": "Marketing Division",
"description": "Marketing department administration",
"membershipRule": null,
"membershipType": null,
"membershipRuleProcessingState": null,
"visibility": null
}
deletedDateTime : null
description : Marketing department administration
displayName : Marketing Division
id : 00b45a1b-7632-4e94-a3bd-f06aec976d31
membershipRule : null
membershipRuleProcessingState: null
membershipType : null
visibility : null
id,displayName,description,visibility
00b45a1b-7632-4e94-a3bd-f06aec976d31,Marketing Division,Marketing department administration,HiddenMembership
Date: 10/23/2023
## Marketing Division (00b45a1b-7632-4e94-a3bd-f06aec976d31)
Property | Value
---------|-------
id | 00b45a1b-7632-4e94-a3bd-f06aec976d31
displayName | Marketing Division
description | Marketing department administration
visibility | HiddenMembership