Skip to content

New command: entra group set #5479

@milanholemans

Description

@milanholemans

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

m365 entra group set --id 57fd6b33-54eb-42b0-9ea0-8a9ac04eab7d --ownerUserNames "[email protected],[email protected]"

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions