Skip to content

New command: Remove administrative unit #5595

@MartinM85

Description

@MartinM85

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions