Change functionality of `entra m365group set` when specifying users
Opened this issue · 0 comments
Looking at the current implementation of entra m365group set we have 2 options called owners
and members
. In the docs, we state that these options only add users as owner/member.
When updating group's owners and members, the command will add newly specified users to the previously set owners and members. The previously set users will not be replaced.
For this functionality, we have the command entra m365group user add
. I suggest that we modify the functionality so that all existing owners/members are removed from the group, and the specified users are added.
Currently, it's only possible to specify users by UPN. Let's extend it so you can specify users by ID as well.
Options to add
Option | Description |
---|---|
--ownerIds [ownerIds] |
Comma-separated list of IDs of Microsoft Entra ID users that will be group owners. |
--ownerUserNames [ownerUserNames] |
Comma-separated list of UPNs of Microsoft Entra ID users that will be group owners. |
--memberIds [memberIds] |
Comma-separated list of IDs of Microsoft Entra ID users that will be group members. |
--memberUserNames [memberUserNames] |
Comma-separated list of UPNs of Microsoft Entra ID users that will be group members. |
Removing existing options
This also means that we have to remove options that currently exist:
--owners [owners]
--members [members]