Skip to content

New command: m365 graph openextension get #6636

@martinlingstuyl

Description

@martinlingstuyl

Usage

m365 graph openextension get [options]

Description

Retrieves a specific open extensions for a resource

Options

Option Description
-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.
-n, --name <name> The name of the open extension to retrieve.

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 [email protected] --name 'com.contoso.roamingSettings' --resourceType user

Request & Response

GET https://graph.microsoft.com/v1.0/users/48d31887-5fad-4d73-a9f5-3c356e68a038/extensions/com.contoso.roamingSettings
{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('48d31887-5fad-4d73-a9f5-3c356e68a038')/extensions/$entity",
    "@odata.type": "#microsoft.graph.openTypeExtension",
    "theme": "dark",
    "color": "purple",
    "lang": "Japanese",
    "extensionName": "com.contoso.roamingSettings",
    "id": "com.contoso.roamingSettings"
}

Additional Info

The open extensions can have one or more 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