Skip to content

New command: Add administrative unit #5572

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions