Skip to content

Enhancement: aad m365group add visibilty option #5477

@milanholemans

Description

@milanholemans

Currently, we can create private and public Microsoft 365 groups by specifying or omitting the --isPrivate flag.
However, in fact, you can create 3 types of Microsoft 365 groups, reading the docs:

Property Type Description
visibility String Specifies the group join policy and group content visibility for groups. Possible values are: Private, Public, or HiddenMembership. HiddenMembership can be set only for Microsoft 365 groups, when the groups are created. It can't be updated later. Other values of visibility can be updated after group creation. If visibility value is not specified during group creation on Microsoft Graph, a security group is created as Private by default and Microsoft 365 group is Public. Groups assignable to roles are always Private. To learn more, see group visibility options.

Therefore I suggest that we remove --isPrivate and replace it with:

Option Description
--visibility [visibility] Specifies the group join policy and group content visibility for groups. Possible values are: Private, Public, or HiddenMembership. Defaults to Public.
  • Let's also add a remark that warns the user that you cannot change the group type when you choose HiddenMembership.
  • Let's add a remark that explains all group visibilities
  • Let's recheck all sample scripts for breaking changes.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions