Usage
m365 graph openextension add [options]
Description
Creates a new open extension for a specific resource
Options
| Option |
Description |
-n, --name <name> |
The name of the open extension. |
-i, --resourceId <resourceId> |
The Id of the resource for which the extension is created. |
-t, --resourceType <resourceType> |
The resource type for which the extension is created. Allowed values are user, group, device, organization. |
--property1 [property1] |
Custom property 1. |
--property2 [property2] |
Custom property 2. |
Examples
Create a new open extension for a user specified by id
m365 graph openextension add --resourceId eb77fbcf-6fe8-458b-985d-1747284793bc --resourceType user --name 'com.contoso.roamingSettings' --theme dark --color red --language English
Create a new open extension for a group event, one of the property represents a JSON object
m365 graph openextension add --resourceId eb77fbcf-6fe8-458b-985d-1747284793bc --resourceType group --name 'com.contoso.roamingSettings' --settings '{"theme": "dark", "color": "red", "language": "English"}' --supportedSystem 'Linux'
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:
I will work on it
Usage
m365 graph openextension add [options]
Description
Creates a new open extension for a specific resource
Options
-n, --name <name>-i, --resourceId <resourceId>-t, --resourceType <resourceType>user,group,device,organization.--property1 [property1]--property2 [property2]Examples
Create a new open extension for a user specified by id
m365 graph openextension add --resourceId eb77fbcf-6fe8-458b-985d-1747284793bc --resourceType user --name 'com.contoso.roamingSettings' --theme dark --color red --language EnglishCreate a new open extension for a group event, one of the property represents a JSON object
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:
I will work on it