You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, @MartinM85. Here are a few remarks from my side:
Reading the description from the visibility property.
Controls whether the administrative unit and its members are hidden or public. Can be set to HiddenMembership. If not set (value is null), the default behavior is public. When set to HiddenMembership, only members of the administrative unit can list other members of the administrative unit.
Reading this description, it makes more sense to me to make a flag for it (--hiddenMembership) instead of the visibility option.
One other thing we don't like (anymore) is the descriptions for the examples where we repeat the sample data in the description.
So instead of Create an administrative unit with display name Marketing Division we should write it as Create an administrative unit with a specific display name.
Usage
m365 aad administrativeunit add
Description
Creates a new administrative unit
Options
-n, --displayName <displayName>
-d, --description [description]
--hiddenMembership [hiddenMembership]
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
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.
The text was updated successfully, but these errors were encountered: