Usage
m365 aad administrativeunit remove
Description
Removes an administrative unit
Options
| Option |
Description |
-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. |
-f, --force |
Don't prompt for confirmation. |
Examples
Remove an administrative unit by its id
m365 aad administrativeunit remove --id 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
Remove an administrative unit by it displayName
m365 aad administrativeunit remove --displayName 'Marketing Division'
Default properties
No response
Additional Info
https://learn.microsoft.com/en-us/graph/api/administrativeunit-delete?view=graph-rest-1.0&tabs=http
It requires new scope AdministrativeUnit.ReadWrite.All.
I will work on this.
Usage
m365 aad administrativeunit remove
Description
Removes an administrative unit
Options
-i, --id [id]idordisplayNamebut not both.-n, --displayName [displayName]idordisplayNamebut not both.-f, --forceExamples
Remove an administrative unit by its id
Remove an administrative unit by it displayName
m365 aad administrativeunit remove --displayName 'Marketing Division'Default properties
No response
Additional Info
https://learn.microsoft.com/en-us/graph/api/administrativeunit-delete?view=graph-rest-1.0&tabs=http
It requires new scope
AdministrativeUnit.ReadWrite.All.I will work on this.