Skip to content

New command: m365 graph openextension set #6638

@martinlingstuyl

Description

@martinlingstuyl

Usage

m365 graph openextension set [options]

Description

Updates an open extension for a resource

Options

Option Description
--name <name> The name of the open extension.
-i, --resourceId <resourceId> The Id of the resource for which to update the open extension.
-t, --resourceType <resourceType> The type of resource. Allowed values are user, group, device, organization.

This command allows using unknown options.

Remarks

Open extensions can contain multiple properties for each extension. When updating an open extension, omitting one of this properties will set it to null. You'll have to specify all existing property values, even the ones that you aren't changing.

Examples

Updates an open extension for a user specified by id

m365 graph openextension set --userId eb77fbcf-6fe8-458b-985d-1747284793bc --name 'com.contoso.roamingSettings' --resourceType user --theme dark --color red --language English

Updates an open extension for a user specified by UPN

m365 graph openextension set --userName [email protected] --name 'com.contoso.roamingSettings' --resourceType user --theme dark --color red --language English

Updates an open extension for a group specified by id, one of the property represents a JSON object

m365 graph openextension set --resourceId c956e711-f074-40c3-8431-fbd69bb67d9c --name 'com.contoso.roamingSettings' --resourceType group --settings '{"theme": "dark", "color": "red" }'

Additional Info

The open extensions have one or more custom properties. The command must allow unknown option to be able to define custom properties.

More info:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions