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