Closed milanholemans closed 1 week ago
Can I take it?
Could you please explain a little bit more what do you mean by allow unknown options?
Sure @MartinM85!
What we mean by allowing unknown options is the following: usually we specify a list of options a user can use and throw an error if people specify an option that is not in the list. By allowing unknown options, users can specify other options that we didn't provide. This way they can specify any graph group option that we didn't specify. Important here is that we show the graph docs link in our docs so people know what properties they can specify.
You can have a look at entra user add
, entra user set
commands for inspiration.
@milanholemans maybe wrong descriptions for id
and displayName
options.
The ID of the Azure AD group to update. Specify either id or mailNickname but not both
Do newDisplayName
, mailNickname
and description
represent the properties to be updated?
Similar to entra group add
command, I would suggest to split owners
, members
->ownerIds
, ownerUserNames
, membersIds
, membersUserNames
Great remarks and suggestions @MartinM85, much appreciated!
Do
newDisplayName
,mailNickname
anddescription
represent the properties to be updated?
From what I can remember, yes.
Usage
m365 entra group set [options]
Description
Updates a Microsoft Entra group
Options
-i, --id [id]
id
ordisplayName
but not both.-n, --displayName [displayName]
id
ordisplayName
but not both.--newDisplayName [newDisplayName]
--description [description]
--mailNickname [mailNickname]
--ownerIds [ownerIds]
--ownerUserNames [ownerUserNames]
--memberIds [memberIds]
--memberUserNames [memberUserNames]
--visibility [visibility]
Private
orPublic
. Specify only when targeting a Microsoft 365 group.Examples
Update the display name of a group specified by the display name
Set the owners of a group to the specified people
Update the description and mail nickname of a group
Default properties
No response
Additional Info
mailNickname
, consider: This property can contain only characters in the ASCII character set 0 - 127 except the following: @ () \ [] " ; : <> , SPACE.API: https://learn.microsoft.com/en-us/graph/api/group-update?view=graph-rest-1.0&tabs=http