Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New command: Get administrative unit #5582

Closed
MartinM85 opened this issue Oct 20, 2023 · 2 comments
Closed

New command: Get administrative unit #5582

MartinM85 opened this issue Oct 20, 2023 · 2 comments
Assignees
Labels
feature request hacktoberfest Issue perfect for hacktoberfest
Milestone

Comments

@MartinM85
Copy link
Contributor

MartinM85 commented Oct 20, 2023

Usage

m365 aad administrativeunit get

Description

Gets information about a specific 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.

Examples

Get information about the administrative unit by its id

m365 aad administrativeunit get --id 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7

Get information about the administrative unit by its display name

m365 aad administrativeunit get --displayName "Marketing Division"

Default properties

  • Id
  • DisplayName
  • Visibility

Additional Info

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

It requires (new) scope AdministrativeUnit.Read.All.

I will work on this issue once #5569 is closed.

@Adam-it Adam-it added feature request hacktoberfest Issue perfect for hacktoberfest labels Oct 20, 2023
@Adam-it
Copy link
Contributor

Adam-it commented Oct 20, 2023

LGTM 👏
@pnp/cli-for-microsoft-365-maintainers any other check/feedback? before we open it up

@Adam-it Adam-it added the needs peer review Needs second pair of eyes to review the spec or PR label Oct 20, 2023
@milanholemans
Copy link
Contributor

My only remark is the description. Instead of

the specific administrative unit
Let's use:
a specific administrative unit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request hacktoberfest Issue perfect for hacktoberfest
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants