|
| 1 | +import Global from '/docs/cmd/_global.mdx'; |
| 2 | +import Tabs from '@theme/Tabs'; |
| 3 | +import TabItem from '@theme/TabItem'; |
| 4 | + |
| 5 | +# graph openextension get |
| 6 | + |
| 7 | +Retrieves a specific open extension for a resource |
| 8 | + |
| 9 | +## Usage |
| 10 | + |
| 11 | +```sh |
| 12 | +m365 graph openextension get [options] |
| 13 | +``` |
| 14 | + |
| 15 | +## Options |
| 16 | + |
| 17 | +```md definition-list |
| 18 | +`-i, --resourceId <resourceId>` |
| 19 | +: The Id of the resource for which to retrieve the open extension. |
| 20 | + |
| 21 | +`-t, --resourceType <resourceType>` |
| 22 | +: The type of resource. Allowed values are `user`, `group`, `device`, `organization`. |
| 23 | + |
| 24 | +`-n, --name <name>` |
| 25 | +: The name of the open extension to retrieve. |
| 26 | +``` |
| 27 | + |
| 28 | +<Global /> |
| 29 | + |
| 30 | +## Examples |
| 31 | + |
| 32 | +Retrieve a specified open extension for a user specified by id. |
| 33 | + |
| 34 | +```sh |
| 35 | +m365 graph openextension get --resourceId eb77fbcf-6fe8-458b-985d-1747284793bc --name 'com.contoso.roamingSettings' --resourceType user |
| 36 | +``` |
| 37 | + |
| 38 | +Retrieve a specified open extension for a user specified by UPN. |
| 39 | + |
| 40 | +```sh |
| 41 | +m365 graph openextension get --resourceId john.doe@contoso.com --name 'com.contoso.roamingSettings' --resourceType user |
| 42 | +``` |
| 43 | + |
| 44 | +## Response |
| 45 | + |
| 46 | +<Tabs> |
| 47 | + <TabItem value="JSON"> |
| 48 | + |
| 49 | + ```json |
| 50 | + { |
| 51 | + "extensionName": "com.contoso.roamingSettings", |
| 52 | + "name": "com.contoso.roamingSettings", |
| 53 | + "resourceId": "john.doe@contoso.com", |
| 54 | + "resourceType": "user", |
| 55 | + "theme": "dark", |
| 56 | + "color": "red", |
| 57 | + "language": "English", |
| 58 | + "id": "com.contoso.roamingSettings" |
| 59 | + } |
| 60 | + ``` |
| 61 | + |
| 62 | + </TabItem> |
| 63 | + <TabItem value="Text"> |
| 64 | + |
| 65 | + ```text |
| 66 | + color : red |
| 67 | + extensionName: com.contoso.roamingSettings |
| 68 | + id : com.contoso.roamingSettings |
| 69 | + language : English |
| 70 | + name : com.contoso.roamingSettings |
| 71 | + resourceId : john.doe@contoso.com |
| 72 | + resourceType : user |
| 73 | + theme : dark |
| 74 | + ``` |
| 75 | + |
| 76 | + </TabItem> |
| 77 | + <TabItem value="CSV"> |
| 78 | + |
| 79 | + ```csv |
| 80 | + extensionName,name,resourceId,resourceType,theme,color,language,id |
| 81 | + com.contoso.roamingSettings,com.contoso.roamingSettings,john.doe@contoso.com,user,dark,red,English,com.contoso.roamingSettings |
| 82 | + ``` |
| 83 | + |
| 84 | + </TabItem> |
| 85 | + <TabItem value="Markdown"> |
| 86 | + |
| 87 | + ```md |
| 88 | + # graph openextension get --debug "false" --verbose "false" --resourceId "john.doe@contoso.com" --resourceType "user" --name "com.contoso.roamingSettings" |
| 89 | + |
| 90 | + Date: 2025-04-07 |
| 91 | + |
| 92 | + ## com.contoso.roamingSettings (com.contoso.roamingSettings) |
| 93 | + |
| 94 | + Property | Value |
| 95 | + ---------|------- |
| 96 | + extensionName | com.contoso.roamingSettings |
| 97 | + name | com.contoso.roamingSettings |
| 98 | + resourceId | john.doe@contoso.com |
| 99 | + resourceType | user |
| 100 | + theme | dark |
| 101 | + color | red |
| 102 | + language | English |
| 103 | + id | com.contoso.roamingSettings |
| 104 | + ``` |
| 105 | + |
| 106 | + </TabItem> |
| 107 | +</Tabs> |
| 108 | + |
| 109 | +## More information |
| 110 | + |
| 111 | +- Open extensions: https://learn.microsoft.com/graph/extensibility-overview?tabs=http#open-extensions |
0 commit comments