Skip to main content

graph openextension get

Retrieves a specific open extension for a resource

Usage

m365 graph openextension get [options]

Options

-n, --name <name>

The name of the open extension to retrieve.

-i, --resourceId <resourceId>

The Id of the resource for which to retrieve the open extension.

-t, --resourceType <resourceType>

The type of resource. Allowed values are user, group, device, organization.

-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.

Examples

Retrieve a specified open extension for a user specified by id.

m365 graph openextension get --resourceId eb77fbcf-6fe8-458b-985d-1747284793bc --name 'com.contoso.roamingSettings' --resourceType user

Retrieve a specified open extension for a user specified by UPN.

m365 graph openextension get --resourceId john.doe@contoso.com --name 'com.contoso.roamingSettings' --resourceType user

Response

{
"extensionName": "com.contoso.roamingSettings",
"name": "com.contoso.roamingSettings",
"resourceId": "john.doe@contoso.com",
"resourceType": "user",
"theme": "dark",
"color": "red",
"language": "English",
"id": "com.contoso.roamingSettings"
}

More information

CTRL + M