Skip to main content

entra m365group set

Updates Microsoft 365 Group properties

Usage

m365 entra m365group set [options]

Alias

m365 aad m365group set [options]

Options

-i, --id <id>

The ID of the Microsoft 365 Group to update

-n, --displayName [displayName]

Display name for the Microsoft 365 Group

-d, --description [description]

Description for the Microsoft 365 Group

--owners [owners]

Comma-separated list of Microsoft 365 Group owners to add

--members [members]

Comma-separated list of Microsoft 365 Group members to add

--isPrivate [isPrivate]

Set to true if the Microsoft 365 Group should be private and false if it should be public.

-l, --logoPath [logoPath]

Local path to the image file to use as group logo

--allowExternalSenders [allowExternalSenders]

Indicates if people external to the organization can send messages to the group. Valid values: true, false.

--autoSubscribeNewMembers [autoSubscribeNewMembers]

Indicates if new members added to the group will be auto-subscribed to receive email notifications. Valid values: true, false.

--hideFromAddressLists [hideFromAddressLists]

Indicates if the group is not displayed in certain parts of the Outlook UI: the Address Book, address lists for selecting message recipients, and the Browse Groups dialog for searching groups. Valid values: true, false.

--hideFromOutlookClients [hideFromOutlookClients]

Indicates if the group is not displayed in Outlook clients, such as Outlook for Windows and Outlook on the web. Valid values: true, false.

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Remarks

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.

When specifying the path to the logo image you can use both relative and absolute paths. Note, that ~ in the path, will not be resolved and will most likely result in an error.

note

Options allowExternalSenders and autoSubscribeNewMembers can only be set using delegated permissions.

Examples

Update Microsoft 365 Group display name.

m365 entra m365group set --id 28beab62-7540-4db1-a23f-29a6018a3848 --displayName Finance

Change Microsoft 365 Group visibility to public.

m365 entra m365group set --id 28beab62-7540-4db1-a23f-29a6018a3848 --isPrivate `false`

Add new Microsoft 365 Group owners.

m365 entra m365group set --id 28beab62-7540-4db1-a23f-29a6018a3848 --owners "DebraB@contoso.onmicrosoft.com,DiegoS@contoso.onmicrosoft.com"

Add new Microsoft 365 Group members.

m365 entra m365group set --id 28beab62-7540-4db1-a23f-29a6018a3848 --members "DebraB@contoso.onmicrosoft.com,DiegoS@contoso.onmicrosoft.com"

Update Microsoft 365 Group logo.

m365 entra m365group set --id 28beab62-7540-4db1-a23f-29a6018a3848 --logoPath images/logo.png

Hide the Microsoft 365 group from the address lists and the Outlook clients.

m365 entra m365group set --id 28beab62-7540-4db1-a23f-29a6018a3848 --hideFromOutlookClients true --hideFromAddressLists true

Auto-subscribe new members to receive email notifications and do not allow external senders to send messages to the group.

m365 entra m365group set --id 28beab62-7540-4db1-a23f-29a6018a3848 --autoSubscribeNewMembers true --allowExternalSenders false

Response

The command won't return a response on success.

CTRL + M