Usage
m365 entra group set [options]
Description
Updates a Microsoft Entra group
Options
| Option |
Description |
-i, --id [id] |
The ID of the Microsoft Entra ID group to update. Specify either id or displayName but not both. |
-n, --displayName [displayName] |
The display name of the Microsoft Entra ID group to update. Specify either id or displayName but not both. |
--newDisplayName [newDisplayName] |
The new display name of the Microsoft Entra ID group. The maximum length is 256 characters. |
--description [description] |
The description for the group. |
--mailNickname [mailNickname] |
The mail alias for the group (part before the @). Use only for mail-enabled groups. Maximum length is 64 characters. |
--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. |
--visibility [visibility] |
Specifies the group join policy and group content visibility for Microsoft 365 groups. Possible values are: Private or Public. Specify only when targeting a Microsoft 365 group. |
Examples
Update the display name of a group specified by the display name
m365 entra group set --displayName Developers --newDisplayName Developers
Set the owners of a group to the specified people
Update the description and mail nickname of a group
m365 entra group set --id 57fd6b33-54eb-42b0-9ea0-8a9ac04eab7d --description "All developers of the company" --mailNickname developers
Default properties
No response
Additional Info
- To validate
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
Usage
m365 entra group set [options]
Description
Updates a Microsoft Entra group
Options
-i, --id [id]idordisplayNamebut not both.-n, --displayName [displayName]idordisplayNamebut not both.--newDisplayName [newDisplayName]--description [description]--mailNickname [mailNickname]--ownerIds [ownerIds]--ownerUserNames [ownerUserNames]--memberIds [memberIds]--memberUserNames [memberUserNames]--visibility [visibility]PrivateorPublic. Specify only when targeting a Microsoft 365 group.Examples
Update the display name of a group specified by the display name
m365 entra group set --displayName Developers --newDisplayName DevelopersSet 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