@pnp/cli-microsoft365 7.3.0-beta.73848f3 → 7.3.0-beta.ca3f7f5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/allCommands.json +1 -1
  2. package/allCommandsFull.json +1 -1
  3. package/dist/Auth.js +1 -1
  4. package/dist/appInsights.js +2 -1
  5. package/dist/cli/Cli.js +14 -13
  6. package/dist/index.js +1 -9
  7. package/dist/m365/aad/commands/group/group-list.js +69 -1
  8. package/dist/m365/external/commands/connection/connection-doctor.js +424 -0
  9. package/dist/m365/external/commands/item/item-add.js +144 -0
  10. package/dist/m365/external/commands.js +3 -1
  11. package/dist/m365/spo/commands/customaction/customaction-add.js +1 -1
  12. package/dist/m365/spo/commands/file/file-add.js +1 -1
  13. package/dist/m365/teams/commands/meeting/meeting-add.js +151 -0
  14. package/dist/m365/teams/commands/user/user-app-remove.js +33 -2
  15. package/dist/m365/teams/commands.js +2 -1
  16. package/dist/telemetry.js +0 -8
  17. package/dist/utils/validation.js +5 -2
  18. package/docs/docs/cmd/aad/group/group-list.mdx +11 -0
  19. package/docs/docs/cmd/aad/user/user-password-validate.mdx +2 -2
  20. package/docs/docs/cmd/adaptivecard/adaptivecard-send.mdx +1 -1
  21. package/docs/docs/cmd/external/connection/connection-doctor.mdx +182 -0
  22. package/docs/docs/cmd/external/item/item-add.mdx +145 -0
  23. package/docs/docs/cmd/flow/environment/environment-get.mdx +1 -1
  24. package/docs/docs/cmd/flow/environment/environment-list.mdx +1 -1
  25. package/docs/docs/cmd/flow/flow-disable.mdx +1 -1
  26. package/docs/docs/cmd/flow/flow-enable.mdx +1 -1
  27. package/docs/docs/cmd/flow/flow-export.mdx +1 -1
  28. package/docs/docs/cmd/flow/flow-get.mdx +1 -1
  29. package/docs/docs/cmd/flow/flow-list.mdx +1 -1
  30. package/docs/docs/cmd/flow/run/run-cancel.mdx +1 -1
  31. package/docs/docs/cmd/flow/run/run-get.mdx +1 -1
  32. package/docs/docs/cmd/flow/run/run-list.mdx +1 -1
  33. package/docs/docs/cmd/flow/run/run-resubmit.mdx +1 -1
  34. package/docs/docs/cmd/graph/changelog/changelog-list.mdx +1 -1
  35. package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +1 -1
  36. package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +1 -1
  37. package/docs/docs/cmd/onedrive/report/report-activityfilecounts.mdx +0 -3
  38. package/docs/docs/cmd/onedrive/report/report-activityusercounts.mdx +0 -3
  39. package/docs/docs/cmd/onedrive/report/report-activityuserdetail.mdx +0 -3
  40. package/docs/docs/cmd/onedrive/report/report-usageaccountcounts.mdx +0 -3
  41. package/docs/docs/cmd/onedrive/report/report-usageaccountdetail.mdx +0 -3
  42. package/docs/docs/cmd/onedrive/report/report-usagefilecounts.mdx +0 -3
  43. package/docs/docs/cmd/onedrive/report/report-usagestorage.mdx +0 -3
  44. package/docs/docs/cmd/outlook/report/report-mailactivitycounts.mdx +0 -3
  45. package/docs/docs/cmd/outlook/report/report-mailactivityusercounts.mdx +0 -3
  46. package/docs/docs/cmd/outlook/report/report-mailactivityuserdetail.mdx +0 -3
  47. package/docs/docs/cmd/outlook/report/report-mailappusageappsusercounts.mdx +0 -3
  48. package/docs/docs/cmd/outlook/report/report-mailappusageusercounts.mdx +0 -3
  49. package/docs/docs/cmd/outlook/report/report-mailappusageuserdetail.mdx +0 -3
  50. package/docs/docs/cmd/outlook/report/report-mailappusageversionsusercounts.mdx +0 -3
  51. package/docs/docs/cmd/outlook/report/report-mailboxusagedetail.mdx +0 -3
  52. package/docs/docs/cmd/outlook/report/report-mailboxusagemailboxcount.mdx +0 -3
  53. package/docs/docs/cmd/outlook/report/report-mailboxusagequotastatusmailboxcounts.mdx +0 -3
  54. package/docs/docs/cmd/outlook/report/report-mailboxusagestorage.mdx +0 -3
  55. package/docs/docs/cmd/pa/app/app-get.mdx +1 -1
  56. package/docs/docs/cmd/pa/app/app-list.mdx +1 -1
  57. package/docs/docs/cmd/pa/connector/connector-export.mdx +1 -1
  58. package/docs/docs/cmd/pa/connector/connector-list.mdx +1 -1
  59. package/docs/docs/cmd/pa/environment/environment-get.mdx +1 -1
  60. package/docs/docs/cmd/pa/environment/environment-list.mdx +1 -1
  61. package/docs/docs/cmd/planner/bucket/bucket-add.mdx +1 -1
  62. package/docs/docs/cmd/planner/bucket/bucket-get.mdx +1 -1
  63. package/docs/docs/cmd/planner/bucket/bucket-list.mdx +1 -1
  64. package/docs/docs/cmd/planner/bucket/bucket-remove.mdx +1 -1
  65. package/docs/docs/cmd/planner/bucket/bucket-set.mdx +1 -1
  66. package/docs/docs/cmd/planner/plan/plan-get.mdx +1 -1
  67. package/docs/docs/cmd/planner/plan/plan-list.mdx +1 -1
  68. package/docs/docs/cmd/planner/plan/plan-set.mdx +1 -1
  69. package/docs/docs/cmd/planner/roster/roster-add.mdx +2 -2
  70. package/docs/docs/cmd/planner/roster/roster-get.mdx +1 -1
  71. package/docs/docs/cmd/planner/roster/roster-member-add.mdx +1 -1
  72. package/docs/docs/cmd/planner/roster/roster-member-get.mdx +1 -1
  73. package/docs/docs/cmd/planner/roster/roster-member-list.mdx +1 -1
  74. package/docs/docs/cmd/planner/roster/roster-member-remove.mdx +2 -2
  75. package/docs/docs/cmd/planner/roster/roster-plan-list.mdx +1 -1
  76. package/docs/docs/cmd/planner/roster/roster-remove.mdx +2 -2
  77. package/docs/docs/cmd/planner/task/task-add.mdx +1 -1
  78. package/docs/docs/cmd/planner/task/task-list.mdx +2 -2
  79. package/docs/docs/cmd/planner/task/task-remove.mdx +1 -1
  80. package/docs/docs/cmd/planner/task/task-set.mdx +1 -1
  81. package/docs/docs/cmd/pp/environment/environment-get.mdx +1 -1
  82. package/docs/docs/cmd/pp/environment/environment-list.mdx +1 -1
  83. package/docs/docs/cmd/pp/tenant/tenant-settings-list.mdx +1 -1
  84. package/docs/docs/cmd/pp/tenant/tenant-settings-set.mdx +1 -1
  85. package/docs/docs/cmd/purview/retentionevent/retentionevent-add.mdx +1 -1
  86. package/docs/docs/cmd/purview/retentionevent/retentionevent-get.mdx +1 -1
  87. package/docs/docs/cmd/purview/retentionevent/retentionevent-list.mdx +1 -1
  88. package/docs/docs/cmd/purview/retentionevent/retentionevent-remove.mdx +1 -1
  89. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.mdx +1 -1
  90. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-get.mdx +1 -1
  91. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-list.mdx +1 -1
  92. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-remove.mdx +1 -1
  93. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-set.mdx +1 -1
  94. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-add.mdx +1 -1
  95. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-get.mdx +1 -1
  96. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-list.mdx +1 -1
  97. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-remove.mdx +1 -1
  98. package/docs/docs/cmd/purview/retentionlabel/retentionlabel-set.mdx +1 -1
  99. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.mdx +2 -2
  100. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.mdx +2 -2
  101. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-policysettings-list.mdx +2 -2
  102. package/docs/docs/cmd/skype/report/report-activitycounts.mdx +0 -2
  103. package/docs/docs/cmd/skype/report/report-activityusercounts.mdx +0 -3
  104. package/docs/docs/cmd/skype/report/report-activityuserdetail.mdx +0 -3
  105. package/docs/docs/cmd/spfx/project/project-externalize.mdx +1 -1
  106. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +1 -1
  107. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +1 -1
  108. package/docs/docs/cmd/spo/commandset/commandset-add.mdx +1 -1
  109. package/docs/docs/cmd/spo/commandset/commandset-set.mdx +1 -1
  110. package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +1 -1
  111. package/docs/docs/cmd/spo/customaction/customaction-add.mdx +1 -1
  112. package/docs/docs/cmd/spo/customaction/customaction-set.mdx +1 -1
  113. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.mdx +1 -1
  114. package/docs/docs/cmd/spo/field/field-set.mdx +1 -1
  115. package/docs/docs/cmd/spo/list/list-sensitivitylabel-ensure.mdx +1 -1
  116. package/docs/docs/cmd/spo/list/list-view-set.mdx +1 -1
  117. package/docs/docs/cmd/spo/listitem/listitem-add.mdx +1 -1
  118. package/docs/docs/cmd/spo/listitem/listitem-batch-add.mdx +1 -1
  119. package/docs/docs/cmd/spo/listitem/listitem-set.mdx +1 -1
  120. package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.mdx +1 -1
  121. package/docs/docs/cmd/spo/page/page-control-set.mdx +1 -1
  122. package/docs/docs/cmd/spo/page/page-set.mdx +1 -1
  123. package/docs/docs/cmd/spo/report/report-activityfilecounts.mdx +0 -3
  124. package/docs/docs/cmd/spo/report/report-activitypages.mdx +0 -3
  125. package/docs/docs/cmd/spo/report/report-activityusercounts.mdx +0 -3
  126. package/docs/docs/cmd/spo/report/report-activityuserdetail.mdx +0 -3
  127. package/docs/docs/cmd/spo/report/report-siteusagedetail.mdx +0 -3
  128. package/docs/docs/cmd/spo/report/report-siteusagefilecounts.mdx +0 -3
  129. package/docs/docs/cmd/spo/report/report-siteusagepages.mdx +0 -3
  130. package/docs/docs/cmd/spo/report/report-siteusagesitecounts.mdx +0 -3
  131. package/docs/docs/cmd/spo/report/report-siteusagestorage.mdx +0 -3
  132. package/docs/docs/cmd/spo/site/site-groupify.mdx +1 -1
  133. package/docs/docs/cmd/spo/site/site-recyclebinitem-clear.mdx +1 -1
  134. package/docs/docs/cmd/spo/site/site-recyclebinitem-remove.mdx +1 -1
  135. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
  136. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +1 -1
  137. package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
  138. package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
  139. package/docs/docs/cmd/spo/term/term-add.mdx +1 -1
  140. package/docs/docs/cmd/spo/term/term-group-add.mdx +1 -1
  141. package/docs/docs/cmd/spo/term/term-set-add.mdx +1 -1
  142. package/docs/docs/cmd/teams/meeting/meeting-add.mdx +283 -0
  143. package/docs/docs/cmd/teams/meeting/meeting-transcript-list.mdx +2 -2
  144. package/docs/docs/cmd/teams/report/report-deviceusagedistributionusercounts.mdx +0 -3
  145. package/docs/docs/cmd/teams/report/report-deviceusageusercounts.mdx +0 -3
  146. package/docs/docs/cmd/teams/report/report-deviceusageuserdetail.mdx +0 -3
  147. package/docs/docs/cmd/teams/report/report-useractivitycounts.mdx +0 -3
  148. package/docs/docs/cmd/teams/report/report-useractivityusercounts.mdx +0 -3
  149. package/docs/docs/cmd/teams/report/report-useractivityuserdetail.mdx +0 -3
  150. package/docs/docs/cmd/teams/user/user-app-remove.mdx +13 -4
  151. package/docs/docs/cmd/tenant/people/people-profilecardproperty-add.mdx +1 -1
  152. package/docs/docs/cmd/tenant/people/people-profilecardproperty-remove.mdx +1 -1
  153. package/docs/docs/cmd/tenant/people/people-profilecardproperty-set.mdx +1 -1
  154. package/docs/docs/cmd/tenant/report/report-activeusercounts.mdx +0 -3
  155. package/docs/docs/cmd/tenant/report/report-activeuserdetail.mdx +0 -3
  156. package/docs/docs/cmd/tenant/report/report-servicesusercounts.mdx +0 -3
  157. package/docs/docs/cmd/yammer/group/group-list.mdx +1 -1
  158. package/docs/docs/cmd/yammer/group/group-user-add.mdx +1 -1
  159. package/docs/docs/cmd/yammer/group/group-user-remove.mdx +1 -1
  160. package/docs/docs/cmd/yammer/message/message-add.mdx +1 -1
  161. package/docs/docs/cmd/yammer/message/message-get.mdx +1 -1
  162. package/docs/docs/cmd/yammer/message/message-like-set.mdx +1 -1
  163. package/docs/docs/cmd/yammer/message/message-list.mdx +1 -1
  164. package/docs/docs/cmd/yammer/message/message-remove.mdx +1 -1
  165. package/docs/docs/cmd/yammer/network/network-list.mdx +1 -1
  166. package/docs/docs/cmd/yammer/report/report-activitycounts.mdx +0 -3
  167. package/docs/docs/cmd/yammer/report/report-activityusercounts.mdx +0 -3
  168. package/docs/docs/cmd/yammer/report/report-activityuserdetail.mdx +0 -3
  169. package/docs/docs/cmd/yammer/report/report-deviceusagedistributionusercounts.mdx +0 -3
  170. package/docs/docs/cmd/yammer/report/report-deviceusageusercounts.mdx +0 -3
  171. package/docs/docs/cmd/yammer/report/report-deviceusageuserdetail.mdx +0 -3
  172. package/docs/docs/cmd/yammer/report/report-groupsactivitycounts.mdx +0 -3
  173. package/docs/docs/cmd/yammer/report/report-groupsactivitydetail.mdx +0 -3
  174. package/docs/docs/cmd/yammer/report/report-groupsactivitygroupcounts.mdx +0 -3
  175. package/docs/docs/cmd/yammer/user/user-get.mdx +1 -1
  176. package/docs/docs/cmd/yammer/user/user-list.mdx +1 -1
  177. package/docs/docs/cmd/yammer/yammer-search.mdx +1 -1
  178. package/npm-shrinkwrap.json +1012 -410
  179. package/package.json +26 -25
@@ -0,0 +1,182 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # external connection doctor
6
+
7
+ Checks if the external connection is correctly configured for use with a specified user experience in Microsoft 365
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 external connection doctor [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-i, --id <id>`
19
+ : The ID of the external connection to check.
20
+
21
+ `--ux [ux]`
22
+ : Microsoft 365 experience for which to check compatibility. Allowed values `copilot`, `search`, `all` (default)
23
+ ```
24
+
25
+ <Global />
26
+
27
+ ## Remarks
28
+
29
+ The `external connection doctor` command runs several automated checks to verify if an external connection is correctly configured for use with a user experience in Microsoft 365.
30
+
31
+ Check|ID|UX|Type|Description
32
+ -----|--|:--:|--|------------
33
+ Required semantic labels|`copilotRequiredSemanticLabels`|Copilot|Required|Checks if the external connection schema has the required semantic labels configured: `title`, `url` and `iconUrl`
34
+ Searchable properties|Copilot|`searchableProperties`|Required|Checks if the external connection schema has at least one searchable property
35
+ Items have content ingested|`contentIngested`|Copilot|Required|Checks if external items have content ingested
36
+ Connection configured for inline results|`enabledForInlineResults`|Copilot|Required (manual)|Check if the external connection is configured for inline results
37
+ Items have activities recorded|`itemsHaveActivities`|Copilot|Recommended (manual)|Check if external items have activities recorded
38
+ Meaningful connection name and description|`meaningfulNameAndDescription`|Copilot|Required (manual)|Check if the external connection has a meaningful name and description
39
+ Semantic labels|`semanticLabels`|Search|Recommended|Checks if the external connection schema uses semantic labels
40
+ Searchable properties|`searchableProperties`|Search|Recommended|Checks if the external connection schema has at least one searchable property
41
+ Result types|`resultType`|Search|Recommended|Checks if the external connection has a result type configured
42
+ Items have content ingested|`contentIngested`|Search|Recommended|Checks if external items have content ingested
43
+ Items have activities recorded|`itemsHaveActivities`|Search|Recommended|Check if external items have activities recorded
44
+ urlToItemResolver configured|`urlToItemResolver`|All|Recommended|Checks if the external connection has at least one urlToItemResolver configured
45
+
46
+ Required checks must pass for the external connection to be compatible with the specified user experience. Recommended checks are optional, but recommended for optimal user experience.
47
+
48
+ Some checks must be done manually, because there are no APIs available to verify the configuration automatically.
49
+
50
+ When you check the compatibility with all UXs, and there are multiple checks with the same ID, the command will use the first matching check, following the order listed above.
51
+
52
+ ## Examples
53
+
54
+ Checks if the external connection with the specified ID is correctly configured for use with Copilot for Microsoft 365.
55
+
56
+ ```sh
57
+ m365 external connection doctor --id contosoproducts --ux copilot
58
+ ```
59
+
60
+ ## Response
61
+
62
+ <Tabs>
63
+ <TabItem value="JSON">
64
+
65
+ ```json
66
+ [
67
+ {
68
+ "id": "loadExternalConnection",
69
+ "text": "Load connection",
70
+ "type": "required",
71
+ "status": "passed"
72
+ },
73
+ {
74
+ "id": "loadSchema",
75
+ "text": "Load schema",
76
+ "type": "required",
77
+ "status": "passed"
78
+ },
79
+ {
80
+ "id": "copilotRequiredSemanticLabels",
81
+ "text": "Required semantic labels",
82
+ "type": "required",
83
+ "errorMessage": "Missing label iconUrl",
84
+ "status": "failed"
85
+ },
86
+ {
87
+ "id": "searchableProperties",
88
+ "text": "Searchable properties",
89
+ "type": "required",
90
+ "status": "passed"
91
+ },
92
+ {
93
+ "id": "contentIngested",
94
+ "text": "Items have content ingested",
95
+ "type": "required",
96
+ "status": "passed"
97
+ },
98
+ {
99
+ "id": "enabledForInlineResults",
100
+ "text": "Connection configured for inline results",
101
+ "type": "required",
102
+ "status": "manual"
103
+ },
104
+ {
105
+ "id": "itemsHaveActivities",
106
+ "text": "Items have activities recorded",
107
+ "type": "recommended",
108
+ "status": "manual"
109
+ },
110
+ {
111
+ "id": "meaningfulNameAndDescription",
112
+ "text": "Meaningful connection name and description",
113
+ "type": "required",
114
+ "status": "manual"
115
+ },
116
+ {
117
+ "id": "urlToItemResolver",
118
+ "text": "urlToItemResolver configured",
119
+ "type": "recommended",
120
+ "status": "passed"
121
+ }
122
+ ]
123
+ ```
124
+
125
+ </TabItem>
126
+ <TabItem value="Text">
127
+
128
+ ```text
129
+ ✔ Load connection
130
+ ✔ Load schema
131
+ ✖ Required semantic labels: Missing label iconUrl
132
+ ✔ Searchable properties
133
+ ✔ Items have content ingested
134
+ ℹ Connection configured for inline results (manual)
135
+ ℹ Items have activities recorded (manual)
136
+ ℹ Meaningful connection name and description (manual)
137
+ ✔ urlToItemResolver configured
138
+ ```
139
+
140
+ </TabItem>
141
+ <TabItem value="CSV">
142
+
143
+ ```csv
144
+ id,text,type,status,errorMessage
145
+ loadExternalConnection,Load connection,required,passed,
146
+ loadSchema,Load schema,required,passed,
147
+ copilotRequiredSemanticLabels,Required semantic labels,required,failed,Missing label iconUrl
148
+ searchableProperties,Searchable properties,required,passed,
149
+ contentIngested,Items have content ingested,required,passed,
150
+ enabledForInlineResults,Connection configured for inline results,required,manual,
151
+ itemsHaveActivities,Items have activities recorded,recommended,manual,
152
+ meaningfulNameAndDescription,Meaningful connection name and description,required,manual,
153
+ urlToItemResolver,urlToItemResolver configured,recommended,passed,
154
+ ```
155
+
156
+ </TabItem>
157
+ <TabItem value="Markdown">
158
+
159
+ ```md
160
+ # external connection doctor --id "msgraphdocs" --ux "copilot"
161
+
162
+ Date: 11/23/2023
163
+
164
+ Check|Type|Status|Error message
165
+ :----|:--:|:----:|:------------
166
+ Load connection|required|passed|
167
+ Load schema|required|passed|
168
+ Required semantic labels|required|failed|Missing label iconUrl
169
+ Searchable properties|required|passed|
170
+ Items have content ingested|required|passed|
171
+ Connection configured for inline results|required|manual|
172
+ Items have activities recorded|recommended|manual|
173
+ Meaningful connection name and description|required|manual|
174
+ urlToItemResolver configured|recommended|passed|
175
+ ```
176
+
177
+ </TabItem>
178
+ </Tabs>
179
+
180
+ ## More information
181
+
182
+ - Microsoft Graph connector experiences: [https://learn.microsoft.com/graph/connecting-external-content-experiences](https://learn.microsoft.com/graph/connecting-external-content-experiences)
@@ -0,0 +1,145 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # external item add
6
+
7
+ Creates external item
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 external item add [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-i, --id <id>`
19
+ : The ID of the item to create
20
+
21
+ `--externalConnectionId <name>`
22
+ : The ID of the external connection on which to create the item
23
+
24
+ `--content <content>`
25
+ : External item content
26
+
27
+ `--contentType [contentType]`
28
+ : Type of content to load. Allowed values: `text` (default), `html`
29
+
30
+ `--acls <acls>`
31
+ : List of permissions to set on the item, in the format `accessType1,type1,value1;accessType2,type2,value2`, eg. `grant,everyone,everyone`
32
+ ```
33
+ <Global />
34
+
35
+ ## Remarks
36
+
37
+ When creating an external item, the options you specify will map to the external item properties, eg. `--author "Steve"` will set the `author` property of the external item to `Steve`.
38
+
39
+ If in your schema you have a multi-value property, to specify its value you need two things:
40
+
41
+ - you need to separate multiple values using `;#`, eg. `--author "Steve;#Bill"`
42
+ - you need to specify the type of the property as defined in the schema, eg. `--author@odata.type "Collection(String)"`
43
+
44
+ When creating items you can specify one or more permissions that define who can access the external item. The format of the permissions is `accessType1,type1,value1;accessType2,type2,value2`, eg. `grant,everyone,everyone`.
45
+
46
+ You can use the following access types:
47
+
48
+ - `grant` - grants access to the specified users or groups
49
+ - `deny` - denies access to the specified users or groups
50
+
51
+ You can use the following types:
52
+
53
+ - `everyone` - everyone
54
+ - `group` - an Entra group
55
+ - `user` - an Entra user
56
+ - `everyoneExceptGuests` - everyone except external users
57
+ - `externalGroup` - a group defined in the external system from which you're importing the content
58
+
59
+ For more information about using these options, see the Microsoft Graph API documentation and documentation about Microsoft Graph connectors.
60
+
61
+ ## Examples
62
+
63
+ Creates an external item with simple properties that everyone is allowed to access
64
+
65
+ ```sh
66
+ m365 external item add --id "pnp-ensure-siteassets-library" --connectionId "samplesolutiongallery" --content "Ensure that the Site Assets library is created." --title "Ensure the Site Assets Library is created" --description "Ensure that the Site Assets library is created." --authors "Phil Harding" --acls "grant,everyone,everyone"
67
+ ```
68
+
69
+ Creates an external item with multi-value properties accessible only to users from the specified Entra group
70
+
71
+ ```sh
72
+ m365 external item add --id "pnp-ensure-siteassets-library" --connectionId "samplesolutiongallery" --content "Ensure that the Site Assets library is created." --title "Ensure the Site Assets Library is created" --description "Ensure that the Site Assets library is created." --authors@odata.type "Collection(String)" --authors "Phil Harding;#Steve Smith" --acls "grant,group,Super users"
73
+ ```
74
+
75
+ ## Response
76
+
77
+ <Tabs>
78
+ <TabItem value="JSON">
79
+
80
+ ```json
81
+ {
82
+ "id": "pnp-ensure-siteassets-library",
83
+ "acl": [
84
+ {
85
+ "type": "everyone",
86
+ "value": "everyone",
87
+ "accessType": "grant"
88
+ }
89
+ ],
90
+ "properties": {
91
+ "title": "Ensure the Site Assets Library is created",
92
+ "description": "Ensure that the Site Assets library is created.",
93
+ "authors": "Phil Harding"
94
+ },
95
+ "content": {
96
+ "value": "Ensure that the Site Assets library is created.",
97
+ "type": "text"
98
+ },
99
+ "activities": []
100
+ }
101
+ ```
102
+
103
+ </TabItem>
104
+ <TabItem value="Text">
105
+
106
+ ```text
107
+ acl : [{"type":"everyone","value":"everyone","accessType":"grant"}]
108
+ activities: []
109
+ content : {"value":"Ensure that the Site Assets library is created.","type":"text"}
110
+ id : pnp-ensure-siteassets-library
111
+ properties: {"title":"Ensure the Site Assets Library is created","description":"Ensure that the Site Assets library is created.","authors":"Phil Harding"}
112
+ ```
113
+
114
+ </TabItem>
115
+ <TabItem value="CSV">
116
+
117
+ ```csv
118
+ id
119
+ pnp-ensure-siteassets-library
120
+ ```
121
+
122
+ </TabItem>
123
+ <TabItem value="Markdown">
124
+
125
+ ```md
126
+ # m365 external item add --id "pnp-ensure-siteassets-library" --connectionId "samplesolutiongallery" --content "Ensure that the Site Assets library is created." --title "Ensure the Site Assets Library is created" --description "Ensure that the Site Assets library is created." --authors "Phil Harding" --acls "grant,everyone,everyone"
127
+
128
+ Date: 2023-10-28
129
+
130
+ ## pnp-ensure-siteassets-library
131
+
132
+ Property | Value
133
+ ---------|-------
134
+ id | pnp-ensure-siteassets-library
135
+ ```
136
+
137
+ </TabItem>
138
+ </Tabs>
139
+
140
+ ## More information
141
+
142
+ - Microsoft Graph connectors access control list [https://learn.microsoft.com/graph/connecting-external-content-manage-items#access-control-list](https://learn.microsoft.com/graph/connecting-external-content-manage-items#access-control-list)
143
+ - Create, update, and delete items added by your application via Microsoft Graph connectors [https://learn.microsoft.com/graph/connecting-external-content-manage-items](https://learn.microsoft.com/graph/connecting-external-content-manage-items)
144
+ - Use external groups to manage permissions to Microsoft Graph connectors data sources [https://learn.microsoft.com/graph/connecting-external-content-external-groups](https://learn.microsoft.com/graph/connecting-external-content-external-groups)
145
+ - Create externalItem [https://learn.microsoft.com/graph/api/externalconnectors-externalconnection-put-items?view=graph-rest-1.0&tabs=http](https://learn.microsoft.com/graph/api/externalconnectors-externalconnection-put-items?view=graph-rest-1.0&tabs=http)
@@ -23,7 +23,7 @@ m365 flow environment get [options]
23
23
 
24
24
  ## Remarks
25
25
 
26
- :::caution
26
+ :::warning
27
27
 
28
28
  This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
29
29
 
@@ -18,7 +18,7 @@ m365 flow environment list [options]
18
18
 
19
19
  ## Remarks
20
20
 
21
- :::caution
21
+ :::warning
22
22
 
23
23
  This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
24
24
 
@@ -27,7 +27,7 @@ m365 flow disable [options]
27
27
 
28
28
  ## Remarks
29
29
 
30
- :::caution
30
+ :::warning
31
31
 
32
32
  This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
33
33
 
@@ -27,7 +27,7 @@ m365 flow enable [options]
27
27
 
28
28
  ## Remarks
29
29
 
30
- :::caution
30
+ :::warning
31
31
 
32
32
  This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
33
33
 
@@ -42,7 +42,7 @@ m365 flow export [options]
42
42
 
43
43
  ## Remarks
44
44
 
45
- :::caution
45
+ :::warning
46
46
 
47
47
  This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
48
48
 
@@ -29,7 +29,7 @@ m365 flow get [options]
29
29
 
30
30
  ## Remarks
31
31
 
32
- :::caution
32
+ :::warning
33
33
 
34
34
  This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
35
35
 
@@ -32,7 +32,7 @@ m365 flow list [options]
32
32
 
33
33
  ## Remarks
34
34
 
35
- :::caution
35
+ :::warning
36
36
 
37
37
  This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
38
38
 
@@ -30,7 +30,7 @@ m365 flow run cancel [options]
30
30
 
31
31
  ## Remarks
32
32
 
33
- :::caution
33
+ :::warning
34
34
 
35
35
  This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
36
36
 
@@ -32,7 +32,7 @@ m365 flow run get [options]
32
32
 
33
33
  ## Remarks
34
34
 
35
- :::caution
35
+ :::warning
36
36
 
37
37
  This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
38
38
 
@@ -38,7 +38,7 @@ m365 flow run list [options]
38
38
 
39
39
  ## Remarks
40
40
 
41
- :::caution
41
+ :::warning
42
42
 
43
43
  This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
44
44
 
@@ -30,7 +30,7 @@ m365 flow run resubmit [options]
30
30
 
31
31
  ## Remarks
32
32
 
33
- :::caution
33
+ :::warning
34
34
 
35
35
  This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
36
36
 
@@ -35,7 +35,7 @@ m365 graph changelog list [options]
35
35
 
36
36
  ## Remarks
37
37
 
38
- :::caution
38
+ :::warning
39
39
 
40
40
  This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
41
41
 
@@ -49,7 +49,7 @@ The schema extension owner is the ID of the Azure AD application that is the own
49
49
 
50
50
  The target types are the set of Microsoft Graph resource types (that support schema extensions) that this schema extension definition can be applied to. This option is specified as a comma-separated list
51
51
 
52
- :::caution Escaping JSON in PowerShell
52
+ :::warning Escaping JSON in PowerShell
53
53
 
54
54
  When using the `--properties` option it's possible to enter a JSON string. In PowerShell 5 to 7.2 [specific escaping rules](./../../../user-guide/using-cli.mdx#escaping-double-quotes-in-powershell) apply due to an issue. Remember that you can also use [file tokens](./../../../user-guide/using-cli.mdx#passing-complex-content-into-cli-options) instead.
55
55
 
@@ -40,7 +40,7 @@ The lifecycle state of the schema extension. The initial state upon creation is
40
40
  Possible states transitions are from `InDevelopment` to `Available` and `Available` to `Deprecated`.
41
41
  The target types are the set of Microsoft Graph resource types (that support schema extensions) that this schema extension definition can be applied to. This option is specified as a comma-separated list.
42
42
 
43
- :::caution Escaping JSON in PowerShell
43
+ :::warning Escaping JSON in PowerShell
44
44
 
45
45
  When using the `--properties` option it's possible to enter a JSON string. In PowerShell 5 to 7.2 [specific escaping rules](./../../../user-guide/using-cli.mdx#escaping-double-quotes-in-powershell) apply due to an issue. Remember that you can also use [file tokens](./../../../user-guide/using-cli.mdx#passing-complex-content-into-cli-options) instead.
46
46
 
@@ -17,9 +17,6 @@ m365 onedrive report activityfilecounts [options]
17
17
  ```md definition-list
18
18
  `-p, --period <period>`
19
19
  : The length of time over which the report is aggregated. Supported values `D7`, `D30`, `D90`, `D180`.
20
-
21
- `--outputFile [outputFile]`
22
- : Path to the file where the report should be stored in
23
20
  ```
24
21
 
25
22
  <Global />
@@ -17,9 +17,6 @@ m365 onedrive report activityusercounts [options]
17
17
  ```md definition-list
18
18
  `-p, --period <period>`
19
19
  : The length of time over which the report is aggregated. Supported values `D7`, `D30`, `D90`, `D180`.
20
-
21
- `--outputFile [outputFile]`
22
- : Path to the file where the report should be stored in
23
20
  ```
24
21
 
25
22
  <Global />
@@ -20,9 +20,6 @@ m365 onedrive report activityuserdetail [options]
20
20
 
21
21
  `-d, --date [date]`
22
22
  : The date for which you would like to view the users who performed any activity. Supported date format is YYYY-MM-DD. Specify the date or period, but not both`
23
-
24
- `--outputFile [outputFile]`
25
- : Path to the file where the report should be stored in
26
23
  ```
27
24
 
28
25
  <Global />
@@ -17,9 +17,6 @@ m365 onedrive report usageaccountcounts [options]
17
17
  ```md definition-list
18
18
  `-p, --period <period>`
19
19
  : The length of time over which the report is aggregated. Supported values `D7`, `D30`, `D90`, `D180`.
20
-
21
- `--outputFile [outputFile]`
22
- : Path to the file where the report should be stored in
23
20
  ```
24
21
 
25
22
  <Global />
@@ -20,9 +20,6 @@ m365 onedrive report usageaccountdetail [options]
20
20
 
21
21
  `-d, --date [date]`
22
22
  : The date for which you would like to view the users who performed any activity. Supported date format is YYYY-MM-DD. Specify the date or period, but not both`
23
-
24
- `--outputFile [outputFile]`
25
- : Path to the file where the report should be stored in
26
23
  ```
27
24
 
28
25
  <Global />
@@ -17,9 +17,6 @@ m365 onedrive report usagefilecounts [options]
17
17
  ```md definition-list
18
18
  `-p, --period <period>`
19
19
  : The length of time over which the report is aggregated. Supported values `D7`, `D30`, `D90`, `D180`.
20
-
21
- `--outputFile [outputFile]`
22
- : Path to the file where the report should be stored in
23
20
  ```
24
21
 
25
22
  <Global />
@@ -17,9 +17,6 @@ m365 onedrive report usagestorage [options]
17
17
  ```md definition-list
18
18
  `-p, --period <period>`
19
19
  : The length of time over which the report is aggregated. Supported values `D7`, `D30`, `D90`, `D180`.
20
-
21
- `--outputFile [outputFile]`
22
- : Path to the file where the report should be stored in
23
20
  ```
24
21
 
25
22
  <Global />
@@ -17,9 +17,6 @@ m365 outlook report mailactivitycounts [options]
17
17
  ```md definition-list
18
18
  `-p, --period <period>`
19
19
  : The length of time over which the report is aggregated. Supported values `D7`, `D30`, `D90`, `D180`.
20
-
21
- `--outputFile [outputFile]`
22
- : Path to the file where the report should be stored in
23
20
  ```
24
21
 
25
22
  <Global />
@@ -17,9 +17,6 @@ m365 outlook report mailactivityusercounts [options]
17
17
  ```md definition-list
18
18
  `-p, --period <period>`
19
19
  : The length of time over which the report is aggregated. Supported values `D7`, `D30`, `D90`, `D180`.
20
-
21
- `--outputFile [outputFile]`
22
- : Path to the file where the report should be stored in
23
20
  ```
24
21
 
25
22
  <Global />
@@ -20,9 +20,6 @@ m365 outlook report mailactivityuserdetail [options]
20
20
 
21
21
  `-d, --date [date]`
22
22
  : The date for which you would like to view the users who performed any activity. Supported date format is YYYY-MM-DD. Specify the date or period, but not both
23
-
24
- `--outputFile [outputFile]`
25
- : Path to the file where the report should be stored in
26
23
  ```
27
24
 
28
25
  <Global />
@@ -17,9 +17,6 @@ m365 outlook report mailappusageappsusercounts [options]
17
17
  ```md definition-list
18
18
  `-p, --period <period>`
19
19
  : The length of time over which the report is aggregated. Supported values `D7`, `D30`, `D90`, `D180`.
20
-
21
- `--outputFile [outputFile]`
22
- : Path to the file where the report should be stored in
23
20
  ```
24
21
 
25
22
  <Global />
@@ -17,9 +17,6 @@ m365 outlook report mailappusageusercounts [options]
17
17
  ```md definition-list
18
18
  `-p, --period <period>`
19
19
  : The length of time over which the report is aggregated. Supported values `D7`, `D30`, `D90`, `D180`.
20
-
21
- `--outputFile [outputFile]`
22
- : Path to the file where the report should be stored in
23
20
  ```
24
21
 
25
22
  <Global />
@@ -20,9 +20,6 @@ m365 outlook report mailappusageuserdetail [options]
20
20
 
21
21
  `-d, --date [date]`
22
22
  : The date for which you would like to view the users who performed any activity. Supported date format is YYYY-MM-DD. Specify the date or period, but not both
23
-
24
- `--outputFile [outputFile]`
25
- : Path to the file where the report should be stored in
26
23
  ```
27
24
 
28
25
  <Global />
@@ -17,9 +17,6 @@ m365 outlook report mailappusageversionsusercounts [options]
17
17
  ```md definition-list
18
18
  `-p, --period <period>`
19
19
  : The length of time over which the report is aggregated. Supported values `D7`, `D30`, `D90`, `D180`.
20
-
21
- `--outputFile [outputFile]`
22
- : Path to the file where the report should be stored in
23
20
  ```
24
21
 
25
22
  <Global />
@@ -17,9 +17,6 @@ m365 outlook report mailboxusagedetail [options]
17
17
  ```md definition-list
18
18
  `-p, --period <period>`
19
19
  : The length of time over which the report is aggregated. Supported values `D7`, `D30`, `D90`, `D180`.
20
-
21
- `--outputFile [outputFile]`
22
- : Path to the file where the report should be stored in
23
20
  ```
24
21
 
25
22
  <Global />
@@ -17,9 +17,6 @@ m365 outlook report mailboxusagemailboxcount [options]
17
17
  ```md definition-list
18
18
  `-p, --period <period>`
19
19
  : The length of time over which the report is aggregated. Supported values `D7`, `D30`, `D90`, `D180`.
20
-
21
- `--outputFile [outputFile]`
22
- : Path to the file where the report should be stored in
23
20
  ```
24
21
 
25
22
  <Global />
@@ -17,9 +17,6 @@ m365 outlook report mailboxusagequotastatusmailboxcounts [options]
17
17
  ```md definition-list
18
18
  `-p, --period <period>`
19
19
  : The length of time over which the report is aggregated. Supported values `D7`, `D30`, `D90`, `D180`.
20
-
21
- `--outputFile [outputFile]`
22
- : Path to the file where the report should be stored in
23
20
  ```
24
21
 
25
22
  <Global />