Skip to content

New command: Add administrative unit #5572

@MartinM85

Description

@MartinM85

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions