Usage
m365 aad administrativeunit add
Description
Creates a new administrative unit
Options
| Option |
Description |
-n, --displayName <displayName> |
Display name for the administrative unit. |
-d, --description [description] |
Description for the administrative unit. |
--hiddenMembership [hiddenMembership] |
Indicates whether only members of the administrative unit can list other members of the administrative unit. |
Examples
Create an administrative unit with a specific display name
m365 aad administrativeunit add --displayName "Marketing Division"
Create an administrative unit with a specific display name and description
m365 aad administrativeunit add --displayName "Marketing Division" --description "Marketing department"
Create a hidden administrative unit with a specific display name
m365 aad administrativeunit add --displayName "Marketing Division" --hiddenMembership
Default properties
No response
Additional Info
https://learn.microsoft.com/en-us/graph/api/directory-post-administrativeunits?view=graph-rest-1.0&tabs=http
It requires new scope AdministrativeUnit.ReadWrite.All.
I will work on this issue once #5569 is closed.
Usage
m365 aad administrativeunit add
Description
Creates a new administrative unit
Options
-n, --displayName <displayName>-d, --description [description]--hiddenMembership [hiddenMembership]Examples
Create an administrative unit with a specific display name
m365 aad administrativeunit add --displayName "Marketing Division"Create an administrative unit with a specific display name and description
Create a hidden administrative unit with a specific display name
m365 aad administrativeunit add --displayName "Marketing Division" --hiddenMembershipDefault properties
No response
Additional Info
https://learn.microsoft.com/en-us/graph/api/directory-post-administrativeunits?view=graph-rest-1.0&tabs=http
It requires new scope
AdministrativeUnit.ReadWrite.All.I will work on this issue once #5569 is closed.