@pnp/cli-microsoft365 7.3.0-beta.e0b37b9 → 7.4.0-beta.2324d53

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 (241) hide show
  1. package/.eslintrc.cjs +1 -0
  2. package/README.md +1 -1
  3. package/allCommands.json +1 -1
  4. package/allCommandsFull.json +1 -1
  5. package/dist/Auth.js +3 -0
  6. package/dist/m365/app/commands/app-get.js +1 -1
  7. package/dist/m365/app/commands/permission/permission-list.js +1 -1
  8. package/dist/m365/base/PowerAutomateCommand.js +18 -0
  9. package/dist/m365/{aad/commands.js → entra/aadCommands.js} +2 -1
  10. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-add.js +12 -8
  11. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-get.js +18 -14
  12. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-list.js +6 -2
  13. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-add.js +16 -12
  14. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-get.js +116 -0
  15. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-list.js +16 -12
  16. package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-remove.js +18 -14
  17. package/dist/m365/{aad → entra}/commands/app/app-add.js +25 -21
  18. package/dist/m365/{aad → entra}/commands/app/app-get.js +17 -13
  19. package/dist/m365/{aad → entra}/commands/app/app-list.js +7 -3
  20. package/dist/m365/{aad → entra}/commands/app/app-permission-add.js +16 -12
  21. package/dist/m365/{aad → entra}/commands/app/app-remove.js +17 -13
  22. package/dist/m365/{aad → entra}/commands/app/app-role-add.js +18 -14
  23. package/dist/m365/{aad → entra}/commands/app/app-role-list.js +15 -11
  24. package/dist/m365/{aad → entra}/commands/app/app-role-remove.js +17 -13
  25. package/dist/m365/{aad → entra}/commands/app/app-set.js +18 -14
  26. package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-add.js +17 -13
  27. package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-list.js +16 -12
  28. package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-remove.js +17 -13
  29. package/dist/m365/{aad → entra}/commands/group/group-get.js +17 -13
  30. package/dist/m365/{aad → entra}/commands/group/group-list.js +16 -12
  31. package/dist/m365/{aad → entra}/commands/group/group-remove.js +19 -15
  32. package/dist/m365/{aad → entra}/commands/group/group-user-list.js +17 -13
  33. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-add.js +12 -8
  34. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-get.js +12 -8
  35. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-list.js +7 -3
  36. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-remove.js +14 -10
  37. package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-set.js +12 -8
  38. package/dist/m365/{aad → entra}/commands/groupsettingtemplate/groupsettingtemplate-get.js +17 -13
  39. package/dist/m365/{aad → entra}/commands/groupsettingtemplate/groupsettingtemplate-list.js +7 -3
  40. package/dist/m365/{aad → entra}/commands/license/license-list.js +6 -2
  41. package/dist/m365/{aad → entra}/commands/m365group/m365group-add.js +19 -15
  42. package/dist/m365/{aad → entra}/commands/m365group/m365group-conversation-list.js +12 -8
  43. package/dist/m365/{aad → entra}/commands/m365group/m365group-conversation-post-list.js +16 -12
  44. package/dist/m365/{aad → entra}/commands/m365group/m365group-get.js +12 -8
  45. package/dist/m365/{aad → entra}/commands/m365group/m365group-list.js +12 -8
  46. package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-clear.js +12 -8
  47. package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-list.js +12 -8
  48. package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-remove.js +16 -12
  49. package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-restore.js +16 -12
  50. package/dist/m365/{aad → entra}/commands/m365group/m365group-remove.js +17 -13
  51. package/dist/m365/{aad → entra}/commands/m365group/m365group-renew.js +12 -8
  52. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitycounts.js +4 -0
  53. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitydetail.js +4 -0
  54. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activityfilecounts.js +4 -0
  55. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitygroupcounts.js +4 -0
  56. package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitystorage.js +4 -0
  57. package/dist/m365/{aad → entra}/commands/m365group/m365group-set.js +19 -15
  58. package/dist/m365/{aad → entra}/commands/m365group/m365group-teamify.js +16 -12
  59. package/dist/m365/{aad → entra}/commands/m365group/m365group-user-add.js +14 -13
  60. package/dist/m365/entra/commands/m365group/m365group-user-list.js +154 -0
  61. package/dist/m365/{aad → entra}/commands/m365group/m365group-user-remove.js +14 -13
  62. package/dist/m365/{aad → entra}/commands/m365group/m365group-user-set.js +14 -13
  63. package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-add.js +12 -8
  64. package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-list.js +12 -8
  65. package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-remove.js +10 -6
  66. package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-set.js +10 -6
  67. package/dist/m365/{aad → entra}/commands/policy/policy-list.js +16 -12
  68. package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-disable.js +12 -8
  69. package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-enable.js +12 -8
  70. package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-get.js +6 -2
  71. package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-set.js +14 -10
  72. package/dist/m365/{aad → entra}/commands/sp/sp-add.js +17 -13
  73. package/dist/m365/{aad → entra}/commands/sp/sp-get.js +16 -12
  74. package/dist/m365/{aad → entra}/commands/sp/sp-list.js +12 -8
  75. package/dist/m365/{aad → entra}/commands/user/user-add.js +18 -14
  76. package/dist/m365/{aad → entra}/commands/user/user-get.js +16 -12
  77. package/dist/m365/{aad → entra}/commands/user/user-guest-add.js +12 -8
  78. package/dist/m365/{aad → entra}/commands/user/user-hibp.js +14 -10
  79. package/dist/m365/{aad → entra}/commands/user/user-license-add.js +16 -12
  80. package/dist/m365/{aad → entra}/commands/user/user-license-list.js +16 -12
  81. package/dist/m365/{aad → entra}/commands/user/user-license-remove.js +16 -12
  82. package/dist/m365/{aad → entra}/commands/user/user-list.js +12 -8
  83. package/dist/m365/{aad → entra}/commands/user/user-password-validate.js +10 -6
  84. package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-clear.js +12 -8
  85. package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-list.js +6 -2
  86. package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-remove.js +14 -10
  87. package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-restore.js +12 -8
  88. package/dist/m365/{aad → entra}/commands/user/user-remove.js +16 -12
  89. package/dist/m365/{aad → entra}/commands/user/user-set.js +18 -14
  90. package/dist/m365/{aad → entra}/commands/user/user-signin-list.js +15 -11
  91. package/dist/m365/entra/commands.js +85 -0
  92. package/dist/m365/external/commands/connection/connection-schema-add.js +36 -3
  93. package/dist/m365/flow/commands/environment/environment-get.js +3 -3
  94. package/dist/m365/flow/commands/environment/environment-list.js +3 -3
  95. package/dist/m365/flow/commands/flow-disable.js +3 -3
  96. package/dist/m365/flow/commands/flow-enable.js +3 -3
  97. package/dist/m365/flow/commands/flow-get.js +3 -3
  98. package/dist/m365/flow/commands/flow-list.js +14 -12
  99. package/dist/m365/flow/commands/flow-remove.js +3 -3
  100. package/dist/m365/flow/commands/owner/owner-ensure.js +3 -3
  101. package/dist/m365/flow/commands/owner/owner-list.js +3 -3
  102. package/dist/m365/flow/commands/owner/owner-remove.js +3 -3
  103. package/dist/m365/flow/commands/run/run-cancel.js +3 -3
  104. package/dist/m365/flow/commands/run/run-get.js +3 -3
  105. package/dist/m365/flow/commands/run/run-list.js +8 -7
  106. package/dist/m365/flow/commands/run/run-resubmit.js +4 -4
  107. package/dist/m365/pa/commands/app/app-get.js +26 -11
  108. package/dist/m365/pa/commands/app/app-remove.js +19 -2
  109. package/dist/m365/spo/commands/group/group-member-remove.js +1 -1
  110. package/dist/m365/spo/commands/group/group-set.js +1 -1
  111. package/dist/m365/spo/commands/listitem/listitem-batch-add.js +18 -7
  112. package/dist/m365/spo/commands/page/page-add.js +7 -28
  113. package/dist/m365/spo/commands/site/site-set.js +1 -1
  114. package/dist/m365/teams/commands/app/app-install.js +1 -1
  115. package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +1 -1
  116. package/dist/utils/aadAdministrativeUnit.js +4 -4
  117. package/docs/docs/cmd/adaptivecard/adaptivecard-send.mdx +1 -1
  118. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-add.mdx +10 -4
  119. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-get.mdx +9 -3
  120. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-list.mdx +9 -3
  121. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-add.mdx +13 -7
  122. package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-get.mdx +136 -0
  123. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-list.mdx +16 -10
  124. package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-remove.mdx +9 -3
  125. package/docs/docs/cmd/{aad → entra}/app/app-add.mdx +44 -38
  126. package/docs/docs/cmd/{aad → entra}/app/app-get.mdx +23 -17
  127. package/docs/docs/cmd/{aad → entra}/app/app-list.mdx +11 -5
  128. package/docs/docs/cmd/entra/app/app-permission-add.mdx +68 -0
  129. package/docs/docs/cmd/entra/app/app-remove.mdx +65 -0
  130. package/docs/docs/cmd/entra/app/app-role-add.mdx +74 -0
  131. package/docs/docs/cmd/{aad → entra}/app/app-role-list.mdx +20 -14
  132. package/docs/docs/cmd/entra/app/app-role-remove.mdx +84 -0
  133. package/docs/docs/cmd/entra/app/app-set.mdx +103 -0
  134. package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-add.mdx +14 -8
  135. package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-list.mdx +12 -6
  136. package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-remove.mdx +13 -7
  137. package/docs/docs/cmd/{aad → entra}/group/group-get.mdx +15 -9
  138. package/docs/docs/cmd/{aad → entra}/group/group-list.mdx +13 -7
  139. package/docs/docs/cmd/entra/group/group-remove.mdx +50 -0
  140. package/docs/docs/cmd/{aad → entra}/group/group-user-list.mdx +17 -11
  141. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-add.mdx +11 -5
  142. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-get.mdx +9 -3
  143. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-list.mdx +10 -4
  144. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-remove.mdx +9 -3
  145. package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-set.mdx +10 -4
  146. package/docs/docs/cmd/{aad → entra}/groupsettingtemplate/groupsettingtemplate-get.mdx +11 -5
  147. package/docs/docs/cmd/{aad → entra}/groupsettingtemplate/groupsettingtemplate-list.mdx +10 -4
  148. package/docs/docs/cmd/{aad → entra}/license/license-list.mdx +9 -3
  149. package/docs/docs/cmd/{aad → entra}/m365group/m365group-add.mdx +17 -11
  150. package/docs/docs/cmd/{aad → entra}/m365group/m365group-conversation-list.mdx +9 -3
  151. package/docs/docs/cmd/{aad → entra}/m365group/m365group-conversation-post-list.mdx +10 -4
  152. package/docs/docs/cmd/{aad → entra}/m365group/m365group-get.mdx +10 -4
  153. package/docs/docs/cmd/{aad → entra}/m365group/m365group-list.mdx +13 -7
  154. package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-clear.mdx +9 -3
  155. package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-list.mdx +12 -6
  156. package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-remove.mdx +10 -4
  157. package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-restore.mdx +10 -4
  158. package/docs/docs/cmd/{aad → entra}/m365group/m365group-remove.mdx +10 -4
  159. package/docs/docs/cmd/{aad → entra}/m365group/m365group-renew.mdx +8 -2
  160. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitycounts.mdx +10 -4
  161. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitydetail.mdx +11 -5
  162. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activityfilecounts.mdx +10 -4
  163. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitygroupcounts.mdx +10 -4
  164. package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitystorage.mdx +10 -4
  165. package/docs/docs/cmd/{aad → entra}/m365group/m365group-set.mdx +12 -6
  166. package/docs/docs/cmd/{aad → entra}/m365group/m365group-teamify.mdx +9 -3
  167. package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-add.mdx +9 -3
  168. package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +131 -0
  169. package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-remove.mdx +9 -5
  170. package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-set.mdx +10 -6
  171. package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-add.mdx +15 -9
  172. package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-list.mdx +11 -5
  173. package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-remove.mdx +13 -7
  174. package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-set.mdx +12 -6
  175. package/docs/docs/cmd/{aad → entra}/policy/policy-list.mdx +14 -8
  176. package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-disable.mdx +9 -3
  177. package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-enable.mdx +10 -4
  178. package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-get.mdx +9 -3
  179. package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-set.mdx +11 -5
  180. package/docs/docs/cmd/{aad → entra}/sp/sp-add.mdx +25 -19
  181. package/docs/docs/cmd/{aad → entra}/sp/sp-get.mdx +12 -6
  182. package/docs/docs/cmd/{aad → entra}/sp/sp-list.mdx +10 -4
  183. package/docs/docs/cmd/{aad → entra}/user/user-add.mdx +12 -6
  184. package/docs/docs/cmd/{aad → entra}/user/user-get.mdx +16 -10
  185. package/docs/docs/cmd/{aad → entra}/user/user-guest-add.mdx +11 -5
  186. package/docs/docs/cmd/{aad → entra}/user/user-hibp.mdx +10 -4
  187. package/docs/docs/cmd/{aad → entra}/user/user-license-add.mdx +10 -4
  188. package/docs/docs/cmd/{aad → entra}/user/user-license-list.mdx +11 -5
  189. package/docs/docs/cmd/{aad → entra}/user/user-license-remove.mdx +9 -3
  190. package/docs/docs/cmd/{aad → entra}/user/user-list.mdx +12 -6
  191. package/docs/docs/cmd/{aad → entra}/user/user-password-validate.mdx +9 -3
  192. package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-clear.mdx +9 -3
  193. package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-list.mdx +9 -3
  194. package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-remove.mdx +9 -3
  195. package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-restore.mdx +8 -2
  196. package/docs/docs/cmd/{aad → entra}/user/user-remove.mdx +9 -3
  197. package/docs/docs/cmd/{aad → entra}/user/user-set.mdx +15 -9
  198. package/docs/docs/cmd/{aad → entra}/user/user-signin-list.mdx +19 -13
  199. package/docs/docs/cmd/external/connection/connection-schema-add.mdx +14 -1
  200. package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +1 -1
  201. package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +1 -1
  202. package/docs/docs/cmd/pa/app/app-get.mdx +15 -0
  203. package/docs/docs/cmd/pa/app/app-remove.mdx +14 -0
  204. package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
  205. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +1 -1
  206. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +1 -1
  207. package/docs/docs/cmd/spo/commandset/commandset-add.mdx +1 -1
  208. package/docs/docs/cmd/spo/commandset/commandset-set.mdx +1 -1
  209. package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +1 -1
  210. package/docs/docs/cmd/spo/customaction/customaction-add.mdx +1 -1
  211. package/docs/docs/cmd/spo/customaction/customaction-set.mdx +1 -1
  212. package/docs/docs/cmd/spo/field/field-set.mdx +1 -1
  213. package/docs/docs/cmd/spo/list/list-view-set.mdx +1 -1
  214. package/docs/docs/cmd/spo/listitem/listitem-add.mdx +1 -1
  215. package/docs/docs/cmd/spo/listitem/listitem-batch-add.mdx +26 -4
  216. package/docs/docs/cmd/spo/listitem/listitem-set.mdx +1 -1
  217. package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.mdx +1 -1
  218. package/docs/docs/cmd/spo/page/page-control-set.mdx +1 -1
  219. package/docs/docs/cmd/spo/page/page-set.mdx +2 -2
  220. package/docs/docs/cmd/spo/site/site-add.mdx +1 -1
  221. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
  222. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +1 -1
  223. package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
  224. package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
  225. package/docs/docs/cmd/spo/term/term-add.mdx +1 -1
  226. package/docs/docs/cmd/spo/term/term-group-add.mdx +1 -1
  227. package/docs/docs/cmd/spo/term/term-set-add.mdx +1 -1
  228. package/docs/docs/cmd/teams/team/team-add.mdx +1 -1
  229. package/npm-shrinkwrap.json +186 -432
  230. package/package.json +9 -9
  231. package/dist/m365/aad/commands/m365group/m365group-user-list.js +0 -94
  232. package/docs/docs/cmd/aad/app/app-permission-add.mdx +0 -62
  233. package/docs/docs/cmd/aad/app/app-remove.mdx +0 -59
  234. package/docs/docs/cmd/aad/app/app-role-add.mdx +0 -68
  235. package/docs/docs/cmd/aad/app/app-role-remove.mdx +0 -78
  236. package/docs/docs/cmd/aad/app/app-set.mdx +0 -97
  237. package/docs/docs/cmd/aad/group/group-remove.mdx +0 -44
  238. package/docs/docs/cmd/aad/m365group/m365group-user-list.mdx +0 -99
  239. /package/dist/m365/{aad → entra}/commands/approleassignment/ServicePrincipal.js +0 -0
  240. /package/dist/m365/{aad → entra}/commands/m365group/GroupExtended.js +0 -0
  241. /package/dist/m365/{aad → entra}/commands/siteclassification/SiteClassificationSettings.js +0 -0
@@ -2,12 +2,18 @@ import Global from '/docs/cmd/_global.mdx';
2
2
  import Tabs from '@theme/Tabs';
3
3
  import TabItem from '@theme/TabItem';
4
4
 
5
- # aad user recyclebinitem restore
5
+ # entra user recyclebinitem restore
6
6
 
7
7
  Restores a user from the recycle bin in the current tenant
8
8
 
9
9
  ## Usage
10
10
 
11
+ ```sh
12
+ m365 entra user recyclebinitem restore [options]
13
+ ```
14
+
15
+ ## Alias
16
+
11
17
  ```sh
12
18
  m365 aad user recyclebinitem restore [options]
13
19
  ```
@@ -40,7 +46,7 @@ After running this command, it may take a minute before the user will reappear i
40
46
  Restore user from the recycle bin.
41
47
 
42
48
  ```sh
43
- m365 aad user recyclebinitem restore --id 990e2425-f595-43bc-85ed-b89a44093793
49
+ m365 entra user recyclebinitem restore --id 990e2425-f595-43bc-85ed-b89a44093793
44
50
  ```
45
51
 
46
52
  ## Response
@@ -1,11 +1,17 @@
1
1
  import Global from '/docs/cmd/_global.mdx';
2
2
 
3
- # aad user remove
3
+ # entra user remove
4
4
 
5
5
  Removes a specific user
6
6
 
7
7
  ## Usage
8
8
 
9
+ ```sh
10
+ m365 entra user remove [options]
11
+ ```
12
+
13
+ ## Alias
14
+
9
15
  ```sh
10
16
  m365 aad user remove [options]
11
17
  ```
@@ -50,13 +56,13 @@ After running this command, it may take a minute before the user is effectively
50
56
  Removes a specific user by id
51
57
 
52
58
  ```sh
53
- m365 aad user remove --id a33bd401-9117-4e0e-bb7b-3f61c1539e10
59
+ m365 entra user remove --id a33bd401-9117-4e0e-bb7b-3f61c1539e10
54
60
  ```
55
61
 
56
62
  Removes a specific user by its UPN
57
63
 
58
64
  ```sh
59
- m365 aad user remove --userName john.doe@contoso.com
65
+ m365 entra user remove --userName john.doe@contoso.com
60
66
  ```
61
67
 
62
68
  ## Response
@@ -1,11 +1,17 @@
1
1
  import Global from '/docs/cmd/_global.mdx';
2
2
 
3
- # aad user set
3
+ # entra user set
4
4
 
5
5
  Updates information of the specified user
6
6
 
7
7
  ## Usage
8
8
 
9
+ ```sh
10
+ m365 entra user set [options]
11
+ ```
12
+
13
+ ## Alias
14
+
9
15
  ```sh
10
16
  m365 aad user set [options]
11
17
  ```
@@ -87,48 +93,48 @@ If the user with the specified ID or username doesn't exist, or if the specified
87
93
  Update specific property _department_ of user with id _1caf7dcd-7e83-4c3a-94f7-932a1299c844_
88
94
 
89
95
  ```sh
90
- m365 aad user set --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --department IT
96
+ m365 entra user set --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --department IT
91
97
  ```
92
98
 
93
99
  Update multiple properties of user by name
94
100
  ```sh
95
- m365 aad user set --userName steve@contoso.onmicrosoft.com --firstName John --lastName Doe --jobTitle "Sales Manager" --companyName Contoso --department Sales --officeLocation "New York"
101
+ m365 entra user set --userName steve@contoso.onmicrosoft.com --firstName John --lastName Doe --jobTitle "Sales Manager" --companyName Contoso --department Sales --officeLocation "New York"
96
102
  ```
97
103
 
98
104
  Enable user with id _1caf7dcd-7e83-4c3a-94f7-932a1299c844_
99
105
 
100
106
  ```sh
101
- m365 aad user set --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --accountEnabled true
107
+ m365 entra user set --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --accountEnabled true
102
108
  ```
103
109
 
104
110
  Disable user with id _1caf7dcd-7e83-4c3a-94f7-932a1299c844_
105
111
 
106
112
  ```sh
107
- m365 aad user set --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --accountEnabled false
113
+ m365 entra user set --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --accountEnabled false
108
114
  ```
109
115
 
110
116
  Reset password of a given user by userName and require the user to change the password on the next sign in
111
117
 
112
118
  ```sh
113
- m365 aad user set --userName steve@contoso.onmicrosoft.com --resetPassword --newPassword 6NLUId79Lc24 --forceChangePasswordNextSignIn
119
+ m365 entra user set --userName steve@contoso.onmicrosoft.com --resetPassword --newPassword 6NLUId79Lc24 --forceChangePasswordNextSignIn
114
120
  ```
115
121
 
116
122
  Change password of the currently logged in user
117
123
 
118
124
  ```sh
119
- m365 aad user set --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --currentPassword SLBF5gnRtyYc --newPassword 6NLUId79Lc24
125
+ m365 entra user set --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --currentPassword SLBF5gnRtyYc --newPassword 6NLUId79Lc24
120
126
  ```
121
127
 
122
128
  Updates a user with a manager
123
129
 
124
130
  ```sh
125
- m365 aad user set --displayName "John Doe" --userName "john.doe@contoso.com" --managerUserName "adele@contoso.com"
131
+ m365 entra user set --displayName "John Doe" --userName "john.doe@contoso.com" --managerUserName "adele@contoso.com"
126
132
  ```
127
133
 
128
134
  Updates a user by removing its manager
129
135
 
130
136
  ```sh
131
- m365 aad user set --userName "john.doe@contoso.com" --removeManager
137
+ m365 entra user set --userName "john.doe@contoso.com" --removeManager
132
138
  ```
133
139
 
134
140
  ## Response
@@ -2,12 +2,18 @@ import Global from '/docs/cmd/_global.mdx';
2
2
  import Tabs from '@theme/Tabs';
3
3
  import TabItem from '@theme/TabItem';
4
4
 
5
- # aad user signin list
5
+ # entra user signin list
6
6
 
7
- Retrieves the Azure AD user sign-ins for the tenant
7
+ Retrieves the Entra ID user sign-ins for the tenant
8
8
 
9
9
  ## Usage
10
10
 
11
+ ```sh
12
+ m365 entra user signin list [options]
13
+ ```
14
+
15
+ ## Alias
16
+
11
17
  ```sh
12
18
  m365 aad user signin list [options]
13
19
  ```
@@ -35,55 +41,55 @@ m365 aad user signin list [options]
35
41
  Get all user's sign-ins in your tenant
36
42
 
37
43
  ```sh
38
- m365 aad user signin list
44
+ m365 entra user signin list
39
45
  ```
40
46
 
41
47
  Get all user's sign-ins filter by given user's UPN in the tenant
42
48
 
43
49
  ```sh
44
- m365 aad user signin list --userName 'johndoe@example.com'
50
+ m365 entra user signin list --userName 'johndoe@example.com'
45
51
  ```
46
52
 
47
53
  Get all user's sign-ins filter by given user's Id in the tenant
48
54
 
49
55
  ```sh
50
- m365 aad user signin list --userId '11111111-1111-1111-1111-111111111111'
56
+ m365 entra user signin list --userId '11111111-1111-1111-1111-111111111111'
51
57
  ```
52
58
 
53
59
  Get all user's sign-ins filter by given application display name in the tenant
54
60
 
55
61
  ```sh
56
- m365 aad user signin list --appDisplayName 'Graph explorer'
62
+ m365 entra user signin list --appDisplayName 'Graph explorer'
57
63
  ```
58
64
 
59
65
  Get all user's sign-ins filter by given application identifier in the tenant
60
66
 
61
67
  ```sh
62
- m365 aad user signin list --appId '00000000-0000-0000-0000-000000000000'
68
+ m365 entra user signin list --appId '00000000-0000-0000-0000-000000000000'
63
69
  ```
64
70
 
65
71
  Get all user's sign-ins filter by given user's UPN and application display name in the tenant
66
72
 
67
73
  ```sh
68
- m365 aad user signin list --userName 'johndoe@example.com' --appDisplayName 'Graph explorer'
74
+ m365 entra user signin list --userName 'johndoe@example.com' --appDisplayName 'Graph explorer'
69
75
  ```
70
76
 
71
77
  Get all user's sign-ins filter by given user's Id and application display name in the tenant
72
78
 
73
79
  ```sh
74
- m365 aad user signin list --userId '11111111-1111-1111-1111-111111111111' --appDisplayName 'Graph explorer'
80
+ m365 entra user signin list --userId '11111111-1111-1111-1111-111111111111' --appDisplayName 'Graph explorer'
75
81
  ```
76
82
 
77
83
  Get all user's sign-ins filter by given user's UPN and application identifier in the tenant
78
84
 
79
85
  ```sh
80
- m365 aad user signin list --userName 'johndoe@example.com' --appId '00000000-0000-0000-0000-000000000000'
86
+ m365 entra user signin list --userName 'johndoe@example.com' --appId '00000000-0000-0000-0000-000000000000'
81
87
  ```
82
88
 
83
89
  Get all user's sign-ins filter by given user's Id and application identifier in the tenant
84
90
 
85
91
  ```sh
86
- m365 aad user signin list --userId '11111111-1111-1111-1111-111111111111' --appId '00000000-0000-0000-0000-000000000000'
92
+ m365 entra user signin list --userId '11111111-1111-1111-1111-111111111111' --appId '00000000-0000-0000-0000-000000000000'
87
93
  ```
88
94
 
89
95
  ## Response
@@ -178,13 +184,13 @@ m365 aad user signin list --userId '11111111-1111-1111-1111-111111111111' --appI
178
184
  <TabItem value="Markdown">
179
185
 
180
186
  ```md
181
- # aad user signin list
187
+ # entra user signin list
182
188
 
183
189
  Date: 2023-06-02
184
190
 
185
191
  Property | Value
186
192
  ---------|-------
187
- # aad user signin list
193
+ # entra user signin list
188
194
 
189
195
  Date: 2023-06-02
190
196
 
@@ -24,6 +24,9 @@ m365 search externalconnection schema add
24
24
 
25
25
  `-s, --schema [schema]`
26
26
  : The schema object to be added.
27
+
28
+ `--wait`
29
+ : Wait for the schema to be added before completing the command.
27
30
  ```
28
31
 
29
32
  <Global />
@@ -36,6 +39,16 @@ Adds a new schema to a specific external connection.
36
39
  m365 external connection schema add --externalConnectionId 'CliConnectionId' --schema '{"baseType":"microsoft.graph.externalItem","properties":[{"name":"ticketTitle","type":"String","isSearchable":"true","isRetrievable":"true","labels":["title"]},{"name":"priority","type":"String","isQueryable":"true","isRetrievable":"true","isSearchable":"false"},{"name":"assignee","type":"String","isRetrievable":"true"}]}'
37
40
  ```
38
41
 
42
+ Adds a new schema to a specific external connection and wait for its provisioning to complete.
43
+
44
+ ```sh
45
+ m365 external connection schema add --externalConnectionId 'CliConnectionId' --schema '{"baseType":"microsoft.graph.externalItem","properties":[{"name":"ticketTitle","type":"String","isSearchable":"true","isRetrievable":"true","labels":["title"]},{"name":"priority","type":"String","isQueryable":"true","isRetrievable":"true","isSearchable":"false"},{"name":"assignee","type":"String","isRetrievable":"true"}]}' --wait
46
+ ```
47
+
39
48
  ## Response
40
49
 
41
- The command won't return a response on success.
50
+ Upon executing the command, you'll receive the job status URL. This URL enables manual checking of the job's progress if automated polling fails or for interactive monitoring purposes.
51
+
52
+ ```text
53
+ "https://graph.microsoft.com/v1.0/external/connections/MyApp/operations/795b6888-4093-0fe7-6270-ddbcac9ebd3a"
54
+ ```
@@ -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
- :::warning 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
- :::warning 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
 
@@ -20,6 +20,12 @@ m365 pa app get [options]
20
20
 
21
21
  `-d, --displayName [displayName]`
22
22
  : The display name of the Microsoft Power App to get information about.
23
+
24
+ `--asAdmin`
25
+ : Run the command as admin for apps you don't have permission to.
26
+
27
+ `-e, --environmentName [environmentName]`
28
+ : The name of the environment. Required when using `asAdmin`.
23
29
  ```
24
30
 
25
31
  <Global />
@@ -32,6 +38,9 @@ This command is based on an API that is currently in preview and is subject to c
32
38
 
33
39
  :::
34
40
 
41
+ As a maker, you are able to retrieve the Power Apps you have permission to. As an administrator, you are also able to retrieve Power Apps from other users you don't have permission to. To get the app from another user, use the `asAdmin` option and make sure to specify the `environment` option as well.
42
+
43
+
35
44
  If you try to retrieve a non-existing Microsoft Power App, you will get the `Request failed with status code 404` error.
36
45
 
37
46
  ## Examples
@@ -48,6 +57,12 @@ Get information about the specified Microsoft Power App by the app's display nam
48
57
  m365 pa app get --displayName App
49
58
  ```
50
59
 
60
+ Get information about the specific app you do not have access to.
61
+
62
+ ```sh
63
+ m365 pa app get --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --asAdmin
64
+ ```
65
+
51
66
  ## Response
52
67
 
53
68
  <Tabs>
@@ -18,6 +18,12 @@ m365 pa app remove [options]
18
18
 
19
19
  `-f, --force`
20
20
  : Don't prompt for confirmation
21
+
22
+ `--asAdmin`
23
+ : Run the command as admin for apps you don't own.
24
+
25
+ `-e, --environmentName [environmentName]`
26
+ : The name of the environment. Required when using `asAdmin`.
21
27
  ```
22
28
 
23
29
  <Global />
@@ -26,6 +32,8 @@ m365 pa app remove [options]
26
32
 
27
33
  By default, the command will try to remove a Power App. As maker, you are able to delete the Power Apps you own. As administrator, you are also able to delete Power Apps from other users.
28
34
 
35
+ To remove an app you do not own, use the `asAdmin` option and make sure to specify the `environmentName` option as well.
36
+
29
37
  To remove a model-driven Power App you need administrator permissions.
30
38
 
31
39
  If the Power App with the name you specified doesn't exist, you will get the `Error: App 'abc' does not exist` error.
@@ -44,6 +52,12 @@ Removes the specified Power App without confirmation
44
52
  m365 pa app remove --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d --force
45
53
  ```
46
54
 
55
+ Removes the specified Power App you don't own
56
+
57
+ ```sh
58
+ m365 pa app remove --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --asAdmin
59
+ ```
60
+
47
61
  ## Response
48
62
 
49
63
  The command won't return a response on success.
@@ -38,7 +38,7 @@ m365 planner plan add [options]
38
38
 
39
39
  ## Remarks
40
40
 
41
- - Related to the options `--shareWithUserIds` and `--shareWithUserNames`. If you are leveraging Microsoft 365 groups, use the `aad m365group user` commands to manage group membership to share the [group's](https://pnp.github.io/cli-microsoft365/cmd/aad/m365group/m365group-user-add/) plan. You can also add existing members of the group to this collection though it is not required for them to access the plan owned by the group.
41
+ - Related to the options `--shareWithUserIds` and `--shareWithUserNames`. If you are leveraging Microsoft 365 groups, use the `entra m365group user` commands to manage group membership to share the [group's](https://pnp.github.io/cli-microsoft365/cmd/entra/m365group/m365group-user-add/) plan. You can also add existing members of the group to this collection though it is not required for them to access the plan owned by the group.
42
42
 
43
43
  - Hint: Unlike for groups, a Planner Roster can contain only 1 plan.
44
44
 
@@ -41,7 +41,7 @@ m365 spo applicationcustomizer add --webUrl https://contoso.sharepoint.com/sites
41
41
 
42
42
  Note, how the clientSideComponentProperties option has escaped double quotes `'{\"testMessage\":\"Test message\"}'` compared to execution from bash `'{"testMessage":"Test message"}'`.
43
43
 
44
- :::warning Escaping JSON in PowerShell
44
+ :::warning[Escaping JSON in PowerShell]
45
45
 
46
46
  When using the `--clientSideComponentProperties` 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.
47
47
 
@@ -47,7 +47,7 @@ m365 spo applicationcustomizer set --webUrl https://contoso.sharepoint.com/sites
47
47
 
48
48
  Note, how the clientSideComponentProperties option (--clientSideComponentProperties) has escaped double quotes `'{\"testMessage\":\"Test message\"}'` compared to execution from bash `'{"testMessage":"Test message"}'`.
49
49
 
50
- :::warning Escaping JSON in PowerShell
50
+ :::warning[Escaping JSON in PowerShell]
51
51
 
52
52
  When using the `--clientSideComponentProperties` 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.
53
53
 
@@ -49,7 +49,7 @@ m365 spo commandset add --webUrl https://contoso.sharepoint.com/sites/test --tit
49
49
 
50
50
  Note, how the clientSideComponentProperties option (-p) has escaped double quotes `'{\"testMessage\":\"Test message\"}'` compared to execution from bash `'{"testMessage":"Test message"}'`.
51
51
 
52
- :::warning Escaping JSON in PowerShell
52
+ :::warning[Escaping JSON in PowerShell]
53
53
 
54
54
  When using the `--clientSideComponentProperties` 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
 
@@ -56,7 +56,7 @@ m365 spo commandset set --webUrl https://contoso.sharepoint.com/sites/test --tit
56
56
 
57
57
  Note, how the clientSideComponentProperties option has escaped double quotes `'{\"testMessage\":\"Test message\"}'` compared to execution from bash `'{"testMessage":"Test message"}'`.
58
58
 
59
- :::warning Escaping JSON in PowerShell
59
+ :::warning[Escaping JSON in PowerShell]
60
60
 
61
61
  When using the `--clientSideComponentProperties` 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.
62
62
 
@@ -39,7 +39,7 @@ m365 spo contenttype set [options]
39
39
 
40
40
  ## Remarks
41
41
 
42
- :::warning Updating child content types
42
+ :::warning[Updating child content types]
43
43
 
44
44
  When specifying the `--updateChildren` flag, SharePoint will only propagate the changes that are made in the current request. If you want to know more about updating a content type and propagating changes to child content types, be sure to [read more here](https://learn.microsoft.com/previous-versions/office/developer/sharepoint-2010/ms442695(v=office.14)#considerations-when-updating-child-content-types).
45
45
 
@@ -82,7 +82,7 @@ Note, how the clientSideComponentProperties option (-p) has escaped double quote
82
82
 
83
83
  The `--rights` option accepts **case sensitive** values.
84
84
 
85
- :::warning Escaping JSON in PowerShell
85
+ :::warning[Escaping JSON in PowerShell]
86
86
 
87
87
  When using the `--clientSideComponentProperties` 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.
88
88
 
@@ -85,7 +85,7 @@ The `--rights` option accepts **case-sensitive** values.
85
85
 
86
86
  Note, specifying the scope option might speed up the execution of the command, but would not update the scope. If the scope has to be changed, then the existing custom action should be removed and new should be added with different scope.
87
87
 
88
- :::warning Escaping JSON in PowerShell
88
+ :::warning[Escaping JSON in PowerShell]
89
89
 
90
90
  When using the `--clientSideComponentProperties` 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.
91
91
 
@@ -41,7 +41,7 @@ m365 spo field set [options]
41
41
 
42
42
  Specify properties to update using their names, eg. `--Title 'New Title' --JSLink jslink.js`.
43
43
 
44
- :::warning Escaping JSON in PowerShell
44
+ :::warning[Escaping JSON in PowerShell]
45
45
 
46
46
  When updating column formatting for a field with the `--CustomFormatter` 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.
47
47
 
@@ -42,7 +42,7 @@ Specify properties to update using their names, eg. `--Title 'New Title' --JSLin
42
42
 
43
43
  When updating list formatting, the value of the CustomFormatter property must be XML-escaped, eg. `&lt;` instead of `<`.
44
44
 
45
- :::warning Escaping JSON in PowerShell
45
+ :::warning[Escaping JSON in PowerShell]
46
46
 
47
47
  When updating list view formatting for a view with the `--CustomFormatter` 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.
48
48
 
@@ -38,7 +38,7 @@ m365 spo listitem add [options]
38
38
 
39
39
  ## Remarks
40
40
 
41
- :::warning When using DateTime fields
41
+ :::warning[When using DateTime fields]
42
42
 
43
43
  When creating a list item with a DateTime field, use the timezone and the format that the site expects, based on its regional settings. Alternatively, a format which works on all regions is the following: `yyyy-MM-dd HH:mm:ss`. However, you should use the local timezone in all situations. UTC date/time or ISO 8601 formatted date/time is not supported.
44
44
 
@@ -13,12 +13,15 @@ m365 spo listitem batch add [options]
13
13
  ## Options
14
14
 
15
15
  ```md definition-list
16
- `-p, --filePath <filePath>`
17
- : The absolute or relative path to a flat file containing the list items.
18
-
19
16
  `-u, --webUrl <webUrl>`
20
17
  : URL of the site.
21
18
 
19
+ `-p, --filePath [filePath]`
20
+ : The absolute or relative path to a flat file containing the list items. Specify `filePath` or `csvContent`, but not both.
21
+
22
+ `-c, --csvContent [csvContent]`
23
+ : A string content in CSV-format containing the list items. Specify `filePath` or `csvContent`, but not both.
24
+
22
25
  `-l, --listId [listId]`
23
26
  : ID of the list. Specify either `listTitle`, `listId` or `listUrl`, but not multiple.
24
27
 
@@ -40,7 +43,7 @@ ContentType,Title,SingleChoiceField,MultiChoiceField,SingleMetadataField,MultiMe
40
43
  Item,Title A,Choice 1,Choice 1;#Choice 2,Engineering|4a3cc5f3-a4a6-433e-a07a-746978ff1760;,Engineering|4a3cc5f3-a4a6-433e-a07a-746978ff1760;Finance|f994a4ac-cf34-448e-a22c-2b35fd9bbffa;,[{'Key':'i:0#.f|membership|markh@contoso.com'}],"[{'Key':'i:0#.f|membership|markh@contoso.com'},{'Key':'i:0#.f|membership|john.doe@contoso.com'}]","https://bing.com, URL",5,2023-01-01 10:00:00
41
44
  ```
42
45
 
43
- :::warning When using DateTime fields
46
+ :::warning[When using DateTime fields]
44
47
 
45
48
  When creating list items with a DateTime field, use the timezone and the format that the site expects, based on its regional settings. Alternatively, a format which works on all regions is the following: `yyyy-MM-dd HH:mm:ss`. However, you should use the local timezone in all situations. UTC date/time or ISO 8601 formatted date/time is not supported.
46
49
 
@@ -54,6 +57,25 @@ Add a batch of items to a list retrieved by title in a specific site
54
57
  m365 spo listitem batch add --filePath "C:\Path\To\Csv\CsvFile.csv" --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle "Demo List"
55
58
  ```
56
59
 
60
+ Add a batch of items to a list retrieved by title in a specific site using csv content
61
+
62
+ ```sh
63
+ $obj = @(
64
+ [PSCustomObject]@{
65
+ Title = "Item A"
66
+ Age = 10
67
+ },
68
+ [PSCustomObject]@{
69
+ Title = "Item B"
70
+ Age = 20
71
+ }
72
+ )
73
+
74
+ $csvContent = $obj | ConvertTo-Csv -NoTypeInformation -Delimiter "," | Out-String | ForEach-Object { $_.Replace('"','\"') }
75
+
76
+ m365 spo listitem batch add --csvContent $csvContent --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle "Demo List"
77
+ ```
78
+
57
79
  Add a batch of items to a list retrieved by Id in a specific site
58
80
 
59
81
  ```sh
@@ -41,7 +41,7 @@ m365 spo listitem set [options]
41
41
 
42
42
  ## Remarks
43
43
 
44
- :::warning When using DateTime fields
44
+ :::warning[When using DateTime fields]
45
45
 
46
46
  When updating a list item with a DateTime field, use the timezone and the format that the site expects, based on its regional settings. Alternatively, a format which works on all regions is the following: `yyyy-MM-dd HH:mm:ss`. However, you should use the local timezone in all situations. UTC date/time or ISO 8601 formatted date/time is not supported.
47
47
 
@@ -49,7 +49,7 @@ If the specified `pageName` doesn't refer to an existing modern page, you will g
49
49
 
50
50
  To add a standard web part to the page, specify one of the following values: _ContentRollup, BingMap, ContentEmbed, DocumentEmbed, Image, ImageGallery, LinkPreview, NewsFeed, NewsReel, PowerBIReportEmbed, QuickChart, SiteActivity, VideoEmbed, YammerEmbed, Events, GroupCalendar, Hero, List, PageTitle, People, QuickLinks, CustomMessageRegion, Divider, MicrosoftForms, Spacer_.
51
51
 
52
- :::warning Escaping JSON in PowerShell
52
+ :::warning[Escaping JSON in PowerShell]
53
53
 
54
54
  When using the `--webPartProperties` 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
 
@@ -35,7 +35,7 @@ m365 spo page control set [options]
35
35
 
36
36
  If the specified `pageName` doesn't refer to an existing modern page, you will get a `File doesn't exists` error.
37
37
 
38
- :::warning Escaping JSON in PowerShell
38
+ :::warning[Escaping JSON in PowerShell]
39
39
 
40
40
  When using the `--webPartProperties` 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.
41
41
 
@@ -63,9 +63,9 @@ m365 spo page set --name page.aspx --webUrl https://contoso.sharepoint.com/sites
63
63
 
64
64
  Note, how the content option has escaped double quotes `'[{\"controlType\": 4,\"id\": \"42b8afe8-dafe-4c11-bfbf-df5ef5b1feb7\",\"position\": {\"layoutIndex\": 1,\"zoneIndex\": 1,\"sectionIndex\": 1,\"sectionFactor\": 12,\"controlIndex\": 1},\"addedFromPersistedData\": true,\"innerHTML\":\"<p>Hello World</p>\"}]'` compared to execution from bash `''[{"controlType": 4,"id": "42b8afe8-dafe-4c11-bfbf-df5ef5b1feb7","position": {"layoutIndex": 1,"zoneIndex": 1,"sectionIndex": 1,"sectionFactor": 12,"controlIndex": 1},"addedFromPersistedData": true,"innerHTML":"<p>Hello World</p>"}]'`.
65
65
 
66
- :::warning Escaping JSON in PowerShell
66
+ :::warning[Escaping JSON in PowerShell]
67
67
 
68
- When using the `--content` 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.
68
+ When using the `--content` 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.
69
69
 
70
70
  :::
71
71
 
@@ -101,7 +101,7 @@ Deleting and creating classic site collections is by default asynchronous and de
101
101
 
102
102
  The `--owners` option is mandatory for creating `CommunicationSite` sites with app-only permissions.
103
103
 
104
- When trying to create a team site using app-only permissions, you will get an _Insufficient privileges to complete the operation._ error. As a workaround, you can use the [`aad m365group add`](../../aad/m365group/m365group-add.mdx) command, followed by [`spo site set`](./site-set.mdx) to further configure the Team site.
104
+ When trying to create a team site using app-only permissions, you will get an _Insufficient privileges to complete the operation._ error. As a workaround, you can use the [`entra m365group add`](../../entra/m365group/m365group-add.mdx) command, followed by [`spo site set`](./site-set.mdx) to further configure the Team site.
105
105
 
106
106
  ## Examples
107
107
 
@@ -38,7 +38,7 @@ m365 spo tenant applicationcustomizer add --title "YourAppCustomizer" --clientSi
38
38
 
39
39
  Note, how the clientSideComponentProperties option has escaped double quotes `'{\"testMessage\":\"Test message\"}'` compared to execution from bash `'{"testMessage":"Test message"}'`.
40
40
 
41
- :::warning Escaping JSON in PowerShell
41
+ :::warning[Escaping JSON in PowerShell]
42
42
 
43
43
  When using the `--clientSideComponentProperties` 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.
44
44
 
@@ -47,7 +47,7 @@ m365 spo tenant applicationcustomizer set --id 3 --clientSideComponentProperties
47
47
 
48
48
  Note, how the clientSideComponentProperties option (--clientSideComponentProperties) has escaped double quotes `'{\"someProperty\":\"Some value\"}'` compared to execution from bash `'{"someProperty": "Some value"}'`.
49
49
 
50
- :::warning Escaping JSON in PowerShell
50
+ :::warning[Escaping JSON in PowerShell]
51
51
 
52
52
  When using the `--clientSideComponentProperties` 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.
53
53
 
@@ -46,7 +46,7 @@ m365 spo tenant commandset add --title "YourAppCustomizer" --clientSideComponent
46
46
 
47
47
  Note, how the clientSideComponentProperties option has escaped double quotes `'{\"testMessage\":\"Test message\"}'` compared to execution from bash `'{"testMessage":"Test message"}'`.
48
48
 
49
- :::warning Escaping JSON in PowerShell
49
+ :::warning[Escaping JSON in PowerShell]
50
50
 
51
51
  When using the `--clientSideComponentProperties` 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.
52
52
 
@@ -45,7 +45,7 @@ m365 spo tenant commandset set [options]
45
45
 
46
46
  ## Remarks
47
47
 
48
- :::warning Escaping JSON in PowerShell
48
+ :::warning[Escaping JSON in PowerShell]
49
49
 
50
50
  When using the `--clientSideComponentProperties` 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.
51
51