Skip to main content

outlook calendargroup set

Updates a calendar group for a user.

Usage

m365 outlook calendargroup set [options]

Options

--id [id]

ID of the calendar group. Specify either id or name, but not both.

--name [name]

Name of the calendar group. Specify either id or name, but not both.

--userId [userId]

ID of the user. Specify either userId or userName, but not both.

--userName [userName]

UPN of the user. Specify either userId or userName, but not both.

--newName <newName>

New name of the calendar group.

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, permissions, 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.

Permissions

ResourcePermissions
Microsoft GraphCalendars.ReadWrite, Calendars.ReadWrite.Shared
note

When using delegated permissions, specifying userId or userName for a different user requires the Calendars.ReadWrite.Shared scope. When the specified user matches the signed-in user, no shared scope is needed.

Examples

Update the calendar group specified by name for the current user.

m365 outlook calendargroup set --name "Personal Evts" --newName "Personal Events"

Update the calendar group specified by id for a user.

m365 outlook calendargroup set --id "AAMkADIxYjJiYm" --newName "Personal Events" --userId "44288f7d-7710-4293-8c8e-36f310ed2e6a"

Update the calendar group specified by name for a user specified by email.

m365 outlook calendargroup set --name "Personal Evts" --newName "Personal Events" --userName "john.doe@contoso.com"

Response

The command won't return a response on success.