Skip to content

New command: Get member of administrative unit #5653

@MartinM85

Description

@MartinM85

Usage

m365 aad administrativeunit member get

Description

Retrieve a specific member (user, group, or device) of an administrative unit

Options

Option Description
-i, --id <id> The id of a member to be retrieved.
-u, --administrativeUnitId [administrativeUnitId] The id of the administrative unit. Specify either administrativeUnitId or administrativeUnitName.
-n, --administrativeUnitName [administrativeUnitName] The name of the administrative unit. Specify either administrativeUnitId or administrativeUnitName.
-p, --properties [properties] Comma-separated list of properties to retrieve.

Examples

Get information about a member specified by id from an administrative unit specified by id

m365 aad administrativeunit member get --id 64131a70-beb9-4ccb-b590-4401e58446ec --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7

Get information about a member specified by id from an administrative unit specified by name

m365 aad administrativeunit member get --id 64131a70-beb9-4ccb-b590-4401e58446ec --administrativeUnitName 'Marketing Division' 

Default properties

Additional Info

https://learn.microsoft.com/en-us/graph/api/administrativeunit-get-members?view=graph-rest-1.0&tabs=http

Similar to the command (#5640) that retrieves all members of an administrative unit, this command will transform the @odata.type property to the type property with the type of a member.

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