@pnp/cli-microsoft365 6.0.0-beta.5637b93 → 6.0.0-beta.566a6b8

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 (560) hide show
  1. package/dist/Auth.js +1 -2
  2. package/dist/Command.js +48 -35
  3. package/dist/cli/Cli.js +31 -25
  4. package/dist/m365/aad/commands/app/app-add.js +31 -31
  5. package/dist/m365/aad/commands/app/app-get.js +16 -20
  6. package/dist/m365/aad/commands/app/app-remove.js +37 -45
  7. package/dist/m365/aad/commands/app/app-role-add.js +34 -36
  8. package/dist/m365/aad/commands/app/app-role-list.js +15 -23
  9. package/dist/m365/aad/commands/app/app-role-remove.js +26 -43
  10. package/dist/m365/aad/commands/app/app-set.js +16 -18
  11. package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +93 -101
  12. package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +42 -49
  13. package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +93 -99
  14. package/dist/m365/aad/commands/group/group-list.js +35 -23
  15. package/dist/m365/aad/commands/groupsetting/groupsetting-add.js +33 -32
  16. package/dist/m365/aad/commands/groupsetting/groupsetting-get.js +17 -14
  17. package/dist/m365/aad/commands/groupsetting/groupsetting-list.js +19 -7
  18. package/dist/m365/aad/commands/groupsetting/groupsetting-remove.js +30 -29
  19. package/dist/m365/aad/commands/groupsetting/groupsetting-set.js +33 -30
  20. package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-get.js +18 -20
  21. package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-list.js +19 -7
  22. package/dist/m365/aad/commands/o365group/o365group-add.js +85 -96
  23. package/dist/m365/aad/commands/o365group/o365group-conversation-list.js +10 -7
  24. package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +15 -18
  25. package/dist/m365/aad/commands/o365group/o365group-get.js +20 -25
  26. package/dist/m365/aad/commands/o365group/o365group-list.js +38 -43
  27. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-clear.js +31 -19
  28. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +24 -12
  29. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-remove.js +30 -33
  30. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +21 -21
  31. package/dist/m365/aad/commands/o365group/o365group-remove.js +38 -40
  32. package/dist/m365/aad/commands/o365group/o365group-renew.js +17 -12
  33. package/dist/m365/aad/commands/o365group/o365group-set.js +96 -114
  34. package/dist/m365/aad/commands/o365group/o365group-teamify.js +35 -35
  35. package/dist/m365/aad/commands/o365group/o365group-user-add.js +31 -31
  36. package/dist/m365/aad/commands/o365group/o365group-user-list.js +15 -17
  37. package/dist/m365/aad/commands/o365group/o365group-user-remove.js +61 -67
  38. package/dist/m365/aad/commands/o365group/o365group-user-set.js +63 -67
  39. package/dist/m365/aad/commands/oauth2grant/oauth2grant-add.js +25 -20
  40. package/dist/m365/aad/commands/oauth2grant/oauth2grant-list.js +21 -18
  41. package/dist/m365/aad/commands/oauth2grant/oauth2grant-remove.js +41 -31
  42. package/dist/m365/aad/commands/oauth2grant/oauth2grant-set.js +30 -16
  43. package/dist/m365/aad/commands/policy/policy-list.js +22 -23
  44. package/dist/m365/aad/commands/siteclassification/siteclassification-disable.js +60 -52
  45. package/dist/m365/aad/commands/siteclassification/siteclassification-enable.js +84 -72
  46. package/dist/m365/aad/commands/siteclassification/siteclassification-get.js +66 -57
  47. package/dist/m365/aad/commands/siteclassification/siteclassification-set.js +96 -93
  48. package/dist/m365/aad/commands/sp/sp-add.js +26 -29
  49. package/dist/m365/aad/commands/sp/sp-get.js +26 -29
  50. package/dist/m365/aad/commands/user/user-get.js +41 -46
  51. package/dist/m365/aad/commands/user/user-hibp.js +21 -22
  52. package/dist/m365/aad/commands/user/user-list.js +35 -14
  53. package/dist/m365/aad/commands/user/user-password-validate.js +29 -17
  54. package/dist/m365/aad/commands/user/user-set.js +22 -20
  55. package/dist/m365/aad/commands/user/user-signin-list.js +24 -21
  56. package/dist/m365/aad/commands.js +0 -1
  57. package/dist/m365/adaptivecard/commands/adaptivecard-send.js +39 -37
  58. package/dist/m365/app/commands/app-get.js +27 -15
  59. package/dist/m365/app/commands/app-open.js +18 -3
  60. package/dist/m365/app/commands/permission/permission-list.js +17 -15
  61. package/dist/m365/base/AnonymousCommand.js +14 -3
  62. package/dist/m365/base/AppCommand.js +51 -44
  63. package/dist/m365/base/DateAndPeriodBasedReport.js +7 -5
  64. package/dist/m365/base/PeriodBasedReport.js +23 -16
  65. package/dist/m365/base/SpoCommand.js +13 -9
  66. package/dist/m365/base/YammerCommand.js +4 -4
  67. package/dist/m365/booking/commands/business/business-get.js +96 -0
  68. package/dist/m365/booking/commands/business/business-list.js +39 -0
  69. package/dist/m365/booking/commands.js +8 -0
  70. package/dist/m365/cli/commands/cli-consent.js +15 -12
  71. package/dist/m365/cli/commands/cli-doctor.js +35 -25
  72. package/dist/m365/cli/commands/cli-issue.js +15 -15
  73. package/dist/m365/cli/commands/cli-reconsent.js +30 -18
  74. package/dist/m365/cli/commands/completion/completion-clink-update.js +13 -3
  75. package/dist/m365/cli/commands/completion/completion-pwsh-setup.js +47 -38
  76. package/dist/m365/cli/commands/completion/completion-pwsh-update.js +16 -6
  77. package/dist/m365/cli/commands/completion/completion-sh-setup.js +21 -11
  78. package/dist/m365/cli/commands/completion/completion-sh-update.js +16 -6
  79. package/dist/m365/cli/commands/config/config-get.js +4 -3
  80. package/dist/m365/cli/commands/config/config-reset.js +9 -8
  81. package/dist/m365/cli/commands/config/config-set.js +19 -19
  82. package/dist/m365/commands/commands.js +1 -0
  83. package/dist/m365/commands/login.js +66 -63
  84. package/dist/m365/commands/logout.js +34 -23
  85. package/dist/m365/commands/request.js +150 -0
  86. package/dist/m365/commands/status.js +49 -27
  87. package/dist/m365/commands/version.js +13 -3
  88. package/dist/m365/file/commands/convert/convert-pdf.js +58 -53
  89. package/dist/m365/file/commands/file-add.js +14 -9
  90. package/dist/m365/file/commands/file-list.js +27 -30
  91. package/dist/m365/flow/commands/environment/environment-get.js +34 -22
  92. package/dist/m365/flow/commands/environment/environment-list.js +33 -21
  93. package/dist/m365/flow/commands/flow-disable.js +28 -14
  94. package/dist/m365/flow/commands/flow-enable.js +28 -14
  95. package/dist/m365/flow/commands/flow-export.js +102 -102
  96. package/dist/m365/flow/commands/flow-get.js +33 -21
  97. package/dist/m365/flow/commands/flow-list.js +28 -16
  98. package/dist/m365/flow/commands/flow-remove.js +38 -42
  99. package/dist/m365/flow/commands/run/run-cancel.js +32 -31
  100. package/dist/m365/flow/commands/run/run-get.js +33 -21
  101. package/dist/m365/flow/commands/run/run-list.js +31 -19
  102. package/dist/m365/flow/commands/run/run-resubmit.js +36 -37
  103. package/dist/m365/graph/Changelog.js +3 -0
  104. package/dist/m365/graph/commands/changelog/changelog-list.js +163 -0
  105. package/dist/m365/graph/commands/schemaextension/schemaextension-add.js +30 -27
  106. package/dist/m365/graph/commands/schemaextension/schemaextension-get.js +30 -17
  107. package/dist/m365/graph/commands/schemaextension/schemaextension-list.js +38 -34
  108. package/dist/m365/graph/commands/schemaextension/schemaextension-remove.js +42 -31
  109. package/dist/m365/graph/commands/schemaextension/schemaextension-set.js +57 -54
  110. package/dist/m365/graph/commands/subscription/subscription-add.js +28 -25
  111. package/dist/m365/graph/commands.js +1 -0
  112. package/dist/m365/onedrive/commands/onedrive-list.js +23 -13
  113. package/dist/m365/onenote/commands/notebook/notebook-list.js +139 -0
  114. package/dist/m365/onenote/commands.js +7 -0
  115. package/dist/m365/outlook/commands/mail/mail-send.js +73 -34
  116. package/dist/m365/outlook/commands/message/message-list.js +16 -25
  117. package/dist/m365/outlook/commands/message/message-move.js +28 -47
  118. package/dist/m365/outlook/commands/room/room-list.js +23 -11
  119. package/dist/m365/outlook/commands/roomlist/roomlist-list.js +19 -7
  120. package/dist/m365/outlook/commands.js +1 -2
  121. package/dist/m365/pa/commands/app/app-get.js +45 -49
  122. package/dist/m365/pa/commands/app/app-list.js +19 -16
  123. package/dist/m365/pa/commands/app/app-remove.js +38 -38
  124. package/dist/m365/pa/commands/connector/connector-export.js +102 -104
  125. package/dist/m365/pa/commands/connector/connector-list.js +28 -16
  126. package/dist/m365/pa/commands/environment/environment-get.js +34 -22
  127. package/dist/m365/pa/commands/environment/environment-list.js +33 -21
  128. package/dist/m365/pa/commands/pcf/pcf-init.js +35 -34
  129. package/dist/m365/pa/commands/solution/solution-init.js +48 -47
  130. package/dist/m365/pa/commands/solution/solution-reference-add.js +15 -14
  131. package/dist/m365/planner/commands/bucket/bucket-add.js +31 -33
  132. package/dist/m365/planner/commands/bucket/bucket-get.js +15 -12
  133. package/dist/m365/planner/commands/bucket/bucket-list.js +19 -19
  134. package/dist/m365/planner/commands/bucket/bucket-remove.js +35 -36
  135. package/dist/m365/planner/commands/bucket/bucket-set.js +28 -25
  136. package/dist/m365/planner/commands/plan/plan-add.js +31 -33
  137. package/dist/m365/planner/commands/plan/plan-get.js +30 -31
  138. package/dist/m365/planner/commands/plan/plan-list.js +20 -20
  139. package/dist/m365/planner/commands/plan/plan-remove.js +34 -37
  140. package/dist/m365/planner/commands/task/task-add.js +43 -57
  141. package/dist/m365/planner/commands/task/task-checklistitem-add.js +47 -37
  142. package/dist/m365/planner/commands/task/task-checklistitem-list.js +35 -21
  143. package/dist/m365/planner/commands/task/task-checklistitem-remove.js +51 -41
  144. package/dist/m365/planner/commands/task/task-get.js +23 -13
  145. package/dist/m365/planner/commands/task/task-list.js +44 -54
  146. package/dist/m365/planner/commands/task/task-reference-add.js +24 -23
  147. package/dist/m365/planner/commands/task/task-reference-list.js +30 -18
  148. package/dist/m365/planner/commands/task/task-reference-remove.js +39 -40
  149. package/dist/m365/planner/commands/task/task-remove.js +31 -32
  150. package/dist/m365/planner/commands/task/task-set.js +30 -35
  151. package/dist/m365/planner/commands/tenant/tenant-settings-list.js +26 -14
  152. package/dist/m365/planner/commands/tenant/tenant-settings-set.js +25 -22
  153. package/dist/m365/pp/commands/environment/environment-list.js +41 -29
  154. package/dist/m365/pp/commands/gateway/gateway-list.js +29 -17
  155. package/dist/m365/pp/commands/managementapp/managementapp-add.js +23 -29
  156. package/dist/m365/pp/commands/managementapp/managementapp-list.js +20 -8
  157. package/dist/m365/search/commands/externalconnection/externalconnection-add.js +29 -24
  158. package/dist/m365/search/commands/externalconnection/externalconnection-get.js +37 -28
  159. package/dist/m365/search/commands/externalconnection/externalconnection-list.js +19 -7
  160. package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +108 -0
  161. package/dist/m365/search/commands.js +2 -1
  162. package/dist/m365/spfx/commands/package/package-generate.js +104 -97
  163. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.16.0-beta.1.js +23 -0
  164. package/dist/m365/spfx/commands/project/project-doctor.js +101 -103
  165. package/dist/m365/spfx/commands/project/project-externalize.js +45 -38
  166. package/dist/m365/spfx/commands/project/project-rename.js +38 -30
  167. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010008_YORC_nodeVersion.js +47 -0
  168. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN021003_PKG_engines_node.js +48 -0
  169. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.16.0-beta.1.js +61 -0
  170. package/dist/m365/spfx/commands/project/project-upgrade.js +180 -183
  171. package/dist/m365/spfx/commands/spfx-doctor.js +143 -122
  172. package/dist/m365/spo/commands/app/app-add.js +31 -32
  173. package/dist/m365/spo/commands/app/app-deploy.js +41 -45
  174. package/dist/m365/spo/commands/app/app-get.js +43 -47
  175. package/dist/m365/spo/commands/app/app-install.js +18 -13
  176. package/dist/m365/spo/commands/app/app-instance-list.js +25 -21
  177. package/dist/m365/spo/commands/app/app-list.js +29 -32
  178. package/dist/m365/spo/commands/app/app-remove.js +33 -36
  179. package/dist/m365/spo/commands/app/app-retract.js +33 -36
  180. package/dist/m365/spo/commands/app/app-teamspackage-download.js +42 -43
  181. package/dist/m365/spo/commands/app/app-uninstall.js +31 -30
  182. package/dist/m365/spo/commands/app/app-upgrade.js +18 -13
  183. package/dist/m365/spo/commands/apppage/apppage-add.js +38 -39
  184. package/dist/m365/spo/commands/apppage/apppage-set.js +20 -15
  185. package/dist/m365/spo/commands/cdn/cdn-get.js +35 -41
  186. package/dist/m365/spo/commands/cdn/cdn-origin-add.js +29 -37
  187. package/dist/m365/spo/commands/cdn/cdn-origin-list.js +33 -39
  188. package/dist/m365/spo/commands/cdn/cdn-origin-remove.js +43 -57
  189. package/dist/m365/spo/commands/cdn/cdn-policy-list.js +41 -48
  190. package/dist/m365/spo/commands/cdn/cdn-policy-set.js +36 -45
  191. package/dist/m365/spo/commands/cdn/cdn-set.js +63 -67
  192. package/dist/m365/spo/commands/contenttype/contenttype-add.js +48 -53
  193. package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +94 -112
  194. package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +120 -146
  195. package/dist/m365/spo/commands/contenttype/contenttype-get.js +39 -41
  196. package/dist/m365/spo/commands/contenttype/contenttype-list.js +21 -18
  197. package/dist/m365/spo/commands/contenttype/contenttype-remove.js +67 -80
  198. package/dist/m365/spo/commands/contenttype/contenttype-set.js +166 -0
  199. package/dist/m365/spo/commands/contenttypehub/contenttypehub-get.js +50 -47
  200. package/dist/m365/spo/commands/customaction/customaction-add.js +43 -40
  201. package/dist/m365/spo/commands/customaction/customaction-clear.js +27 -25
  202. package/dist/m365/spo/commands/customaction/customaction-get.js +40 -35
  203. package/dist/m365/spo/commands/customaction/customaction-list.js +28 -23
  204. package/dist/m365/spo/commands/customaction/customaction-remove.js +32 -31
  205. package/dist/m365/spo/commands/customaction/customaction-set.js +21 -16
  206. package/dist/m365/spo/commands/eventreceiver/eventreceiver-get.js +42 -39
  207. package/dist/m365/spo/commands/eventreceiver/eventreceiver-list.js +35 -32
  208. package/dist/m365/spo/commands/externaluser/externaluser-list.js +51 -56
  209. package/dist/m365/spo/commands/feature/feature-disable.js +26 -21
  210. package/dist/m365/spo/commands/feature/feature-enable.js +26 -21
  211. package/dist/m365/spo/commands/feature/feature-list.js +23 -20
  212. package/dist/m365/spo/commands/field/field-add.js +25 -24
  213. package/dist/m365/spo/commands/field/field-get.js +35 -32
  214. package/dist/m365/spo/commands/field/field-list.js +28 -25
  215. package/dist/m365/spo/commands/field/field-remove.js +80 -83
  216. package/dist/m365/spo/commands/field/field-set.js +63 -76
  217. package/dist/m365/spo/commands/file/file-add.js +153 -175
  218. package/dist/m365/spo/commands/file/file-checkin.js +40 -38
  219. package/dist/m365/spo/commands/file/file-checkout.js +27 -25
  220. package/dist/m365/spo/commands/file/file-copy.js +61 -63
  221. package/dist/m365/spo/commands/file/file-get.js +68 -73
  222. package/dist/m365/spo/commands/file/file-list.js +13 -8
  223. package/dist/m365/spo/commands/file/file-move.js +60 -62
  224. package/dist/m365/spo/commands/file/file-remove.js +58 -63
  225. package/dist/m365/spo/commands/file/file-rename.js +29 -31
  226. package/dist/m365/spo/commands/file/file-sharinginfo-get.js +49 -50
  227. package/dist/m365/spo/commands/folder/folder-add.js +26 -23
  228. package/dist/m365/spo/commands/folder/folder-copy.js +45 -42
  229. package/dist/m365/spo/commands/folder/folder-get.js +23 -23
  230. package/dist/m365/spo/commands/folder/folder-list.js +22 -19
  231. package/dist/m365/spo/commands/folder/folder-move.js +46 -43
  232. package/dist/m365/spo/commands/folder/folder-remove.js +40 -39
  233. package/dist/m365/spo/commands/folder/folder-rename.js +30 -36
  234. package/dist/m365/spo/commands/group/group-add.js +25 -22
  235. package/dist/m365/spo/commands/group/group-get.js +40 -37
  236. package/dist/m365/spo/commands/group/group-list.js +21 -18
  237. package/dist/m365/spo/commands/group/group-remove.js +50 -56
  238. package/dist/m365/spo/commands/group/group-set.js +26 -21
  239. package/dist/m365/spo/commands/group/group-user-add.js +34 -47
  240. package/dist/m365/spo/commands/group/group-user-list.js +27 -27
  241. package/dist/m365/spo/commands/group/group-user-remove.js +43 -47
  242. package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-get.js +29 -19
  243. package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-set.js +22 -19
  244. package/dist/m365/spo/commands/homesite/homesite-get.js +28 -18
  245. package/dist/m365/spo/commands/homesite/homesite-remove.js +48 -47
  246. package/dist/m365/spo/commands/homesite/homesite-set.js +24 -29
  247. package/dist/m365/spo/commands/hubsite/hubsite-connect.js +18 -15
  248. package/dist/m365/spo/commands/hubsite/hubsite-data-get.js +25 -22
  249. package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +34 -35
  250. package/dist/m365/spo/commands/hubsite/hubsite-get.js +18 -32
  251. package/dist/m365/spo/commands/hubsite/hubsite-list.js +64 -62
  252. package/dist/m365/spo/commands/hubsite/hubsite-register.js +19 -18
  253. package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +29 -34
  254. package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +43 -52
  255. package/dist/m365/spo/commands/hubsite/hubsite-set.js +34 -39
  256. package/dist/m365/spo/commands/hubsite/hubsite-theme-sync.js +19 -14
  257. package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +32 -33
  258. package/dist/m365/spo/commands/knowledgehub/knowledgehub-get.js +34 -31
  259. package/dist/m365/spo/commands/knowledgehub/knowledgehub-remove.js +50 -51
  260. package/dist/m365/spo/commands/knowledgehub/knowledgehub-set.js +25 -31
  261. package/dist/m365/spo/commands/list/list-add.js +23 -20
  262. package/dist/m365/spo/commands/list/list-contenttype-add.js +34 -34
  263. package/dist/m365/spo/commands/list/list-contenttype-default-set.js +60 -64
  264. package/dist/m365/spo/commands/list/list-contenttype-list.js +33 -33
  265. package/dist/m365/spo/commands/list/list-contenttype-remove.js +45 -50
  266. package/dist/m365/spo/commands/list/list-get.js +37 -37
  267. package/dist/m365/spo/commands/list/list-label-get.js +50 -55
  268. package/dist/m365/spo/commands/list/list-label-set.js +50 -48
  269. package/dist/m365/spo/commands/list/list-list.js +24 -21
  270. package/dist/m365/spo/commands/list/list-remove.js +45 -50
  271. package/dist/m365/spo/commands/list/list-roleassignment-add.js +44 -36
  272. package/dist/m365/spo/commands/list/list-roleassignment-remove.js +63 -36
  273. package/dist/m365/spo/commands/list/list-roleinheritance-break.js +54 -28
  274. package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +50 -24
  275. package/dist/m365/spo/commands/list/list-set.js +25 -22
  276. package/dist/m365/spo/commands/list/list-sitescript-get.js +53 -59
  277. package/dist/m365/spo/commands/list/list-view-add.js +29 -26
  278. package/dist/m365/spo/commands/list/list-view-field-add.js +51 -67
  279. package/dist/m365/spo/commands/list/list-view-field-remove.js +44 -62
  280. package/dist/m365/spo/commands/list/list-view-field-set.js +32 -44
  281. package/dist/m365/spo/commands/list/list-view-get.js +34 -37
  282. package/dist/m365/spo/commands/list/list-view-list.js +32 -32
  283. package/dist/m365/spo/commands/list/list-view-remove.js +44 -54
  284. package/dist/m365/spo/commands/list/list-view-set.js +29 -35
  285. package/dist/m365/spo/commands/list/list-webhook-add.js +43 -45
  286. package/dist/m365/spo/commands/list/list-webhook-get.js +33 -35
  287. package/dist/m365/spo/commands/list/list-webhook-list.js +47 -44
  288. package/dist/m365/spo/commands/list/list-webhook-remove.js +45 -51
  289. package/dist/m365/spo/commands/list/list-webhook-set.js +39 -41
  290. package/dist/m365/spo/commands/listitem/listitem-add.js +104 -116
  291. package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +32 -32
  292. package/dist/m365/spo/commands/listitem/listitem-get.js +32 -32
  293. package/dist/m365/spo/commands/listitem/listitem-isrecord.js +67 -73
  294. package/dist/m365/spo/commands/listitem/listitem-list.js +58 -65
  295. package/dist/m365/spo/commands/listitem/listitem-record-declare.js +53 -58
  296. package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +53 -58
  297. package/dist/m365/spo/commands/listitem/listitem-remove.js +50 -54
  298. package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +204 -0
  299. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-break.js +54 -28
  300. package/dist/m365/spo/commands/listitem/listitem-roleinheritance-reset.js +50 -21
  301. package/dist/m365/spo/commands/listitem/listitem-set.js +145 -167
  302. package/dist/m365/spo/commands/mail/mail-send.js +48 -43
  303. package/dist/m365/spo/commands/navigation/navigation-node-add.js +29 -26
  304. package/dist/m365/spo/commands/navigation/navigation-node-list.js +26 -23
  305. package/dist/m365/spo/commands/navigation/navigation-node-remove.js +34 -35
  306. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +26 -30
  307. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-list.js +48 -44
  308. package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-remove.js +48 -48
  309. package/dist/m365/spo/commands/orgnewssite/orgnewssite-list.js +34 -30
  310. package/dist/m365/spo/commands/orgnewssite/orgnewssite-remove.js +36 -47
  311. package/dist/m365/spo/commands/orgnewssite/orgnewssite-set.js +22 -27
  312. package/dist/m365/spo/commands/page/page-add.js +193 -216
  313. package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +183 -186
  314. package/dist/m365/spo/commands/page/page-column-get.js +23 -20
  315. package/dist/m365/spo/commands/page/page-column-list.js +18 -15
  316. package/dist/m365/spo/commands/page/page-control-get.js +36 -33
  317. package/dist/m365/spo/commands/page/page-control-list.js +33 -30
  318. package/dist/m365/spo/commands/page/page-control-set.js +97 -97
  319. package/dist/m365/spo/commands/page/page-copy.js +51 -51
  320. package/dist/m365/spo/commands/page/page-get.js +49 -51
  321. package/dist/m365/spo/commands/page/page-header-set.js +228 -232
  322. package/dist/m365/spo/commands/page/page-list.js +40 -39
  323. package/dist/m365/spo/commands/page/page-remove.js +43 -44
  324. package/dist/m365/spo/commands/page/page-section-add.js +66 -68
  325. package/dist/m365/spo/commands/page/page-section-get.js +14 -11
  326. package/dist/m365/spo/commands/page/page-section-list.js +23 -20
  327. package/dist/m365/spo/commands/page/page-set.js +215 -236
  328. package/dist/m365/spo/commands/page/page-template-list.js +24 -25
  329. package/dist/m365/spo/commands/page/page-text-add.js +40 -40
  330. package/dist/m365/spo/commands/propertybag/propertybag-get.js +24 -22
  331. package/dist/m365/spo/commands/propertybag/propertybag-list.js +19 -17
  332. package/dist/m365/spo/commands/propertybag/propertybag-remove.js +30 -36
  333. package/dist/m365/spo/commands/propertybag/propertybag-set.js +22 -27
  334. package/dist/m365/spo/commands/roledefinition/roledefinition-add.js +117 -0
  335. package/dist/m365/spo/commands/roledefinition/roledefinition-get.js +25 -22
  336. package/dist/m365/spo/commands/roledefinition/roledefinition-list.js +20 -17
  337. package/dist/m365/spo/commands/roledefinition/roledefinition-remove.js +35 -34
  338. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-add.js +38 -34
  339. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-list.js +42 -38
  340. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +33 -29
  341. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +29 -34
  342. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-deny.js +24 -29
  343. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-list.js +44 -40
  344. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +45 -54
  345. package/dist/m365/spo/commands/site/site-add.js +177 -189
  346. package/dist/m365/spo/commands/site/site-appcatalog-add.js +29 -34
  347. package/dist/m365/spo/commands/site/site-appcatalog-remove.js +29 -34
  348. package/dist/m365/spo/commands/site/site-apppermission-add.js +70 -38
  349. package/dist/m365/spo/commands/site/site-apppermission-get.js +19 -16
  350. package/dist/m365/spo/commands/site/site-apppermission-list.js +15 -17
  351. package/dist/m365/spo/commands/site/site-apppermission-remove.js +33 -44
  352. package/dist/m365/spo/commands/site/site-apppermission-set.js +34 -33
  353. package/dist/m365/spo/commands/site/site-chrome-set.js +50 -45
  354. package/dist/m365/spo/commands/site/site-commsite-enable.js +25 -30
  355. package/dist/m365/spo/commands/site/site-ensure.js +38 -28
  356. package/dist/m365/spo/commands/site/site-get.js +17 -14
  357. package/dist/m365/spo/commands/site/site-groupify.js +35 -32
  358. package/dist/m365/spo/commands/site/site-inplacerecordsmanagement-set.js +24 -19
  359. package/dist/m365/spo/commands/site/site-list.js +17 -18
  360. package/dist/m365/spo/commands/site/site-recyclebinitem-list.js +27 -24
  361. package/dist/m365/spo/commands/site/site-recyclebinitem-restore.js +31 -24
  362. package/dist/m365/spo/commands/site/site-remove.js +49 -58
  363. package/dist/m365/spo/commands/site/site-rename.js +65 -76
  364. package/dist/m365/spo/commands/site/site-set.js +26 -32
  365. package/dist/m365/spo/commands/sitedesign/sitedesign-add.js +37 -40
  366. package/dist/m365/spo/commands/sitedesign/sitedesign-apply.js +27 -26
  367. package/dist/m365/spo/commands/sitedesign/sitedesign-get.js +23 -26
  368. package/dist/m365/spo/commands/sitedesign/sitedesign-list.js +27 -17
  369. package/dist/m365/spo/commands/sitedesign/sitedesign-remove.js +34 -39
  370. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-grant.js +26 -27
  371. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-list.js +25 -28
  372. package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +37 -42
  373. package/dist/m365/spo/commands/sitedesign/sitedesign-run-list.js +27 -23
  374. package/dist/m365/spo/commands/sitedesign/sitedesign-run-status-get.js +22 -18
  375. package/dist/m365/spo/commands/sitedesign/sitedesign-set.js +49 -48
  376. package/dist/m365/spo/commands/sitedesign/sitedesign-task-get.js +22 -21
  377. package/dist/m365/spo/commands/sitedesign/sitedesign-task-list.js +17 -13
  378. package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +33 -34
  379. package/dist/m365/spo/commands/sitescript/sitescript-add.js +22 -25
  380. package/dist/m365/spo/commands/sitescript/sitescript-get.js +22 -25
  381. package/dist/m365/spo/commands/sitescript/sitescript-list.js +30 -24
  382. package/dist/m365/spo/commands/sitescript/sitescript-remove.js +34 -39
  383. package/dist/m365/spo/commands/sitescript/sitescript-set.js +35 -38
  384. package/dist/m365/spo/commands/spo-get.js +16 -6
  385. package/dist/m365/spo/commands/spo-search.js +19 -20
  386. package/dist/m365/spo/commands/spo-set.js +9 -7
  387. package/dist/m365/spo/commands/storageentity/storageentity-get.js +36 -26
  388. package/dist/m365/spo/commands/storageentity/storageentity-list.js +34 -36
  389. package/dist/m365/spo/commands/storageentity/storageentity-remove.js +38 -48
  390. package/dist/m365/spo/commands/storageentity/storageentity-set.js +29 -34
  391. package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +15 -16
  392. package/dist/m365/spo/commands/tenant/tenant-appcatalogurl-get.js +31 -21
  393. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-list.js +38 -34
  394. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +51 -59
  395. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +21 -20
  396. package/dist/m365/spo/commands/tenant/tenant-settings-list.js +56 -52
  397. package/dist/m365/spo/commands/tenant/tenant-settings-set.js +54 -65
  398. package/dist/m365/spo/commands/term/term-add.js +95 -105
  399. package/dist/m365/spo/commands/term/term-get.js +47 -56
  400. package/dist/m365/spo/commands/term/term-group-add.js +70 -79
  401. package/dist/m365/spo/commands/term/term-group-get.js +36 -44
  402. package/dist/m365/spo/commands/term/term-group-list.js +42 -38
  403. package/dist/m365/spo/commands/term/term-list.js +39 -53
  404. package/dist/m365/spo/commands/term/term-set-add.js +83 -93
  405. package/dist/m365/spo/commands/term/term-set-get.js +37 -51
  406. package/dist/m365/spo/commands/term/term-set-list.js +39 -47
  407. package/dist/m365/spo/commands/theme/theme-apply.js +52 -58
  408. package/dist/m365/spo/commands/theme/theme-get.js +37 -33
  409. package/dist/m365/spo/commands/theme/theme-list.js +35 -25
  410. package/dist/m365/spo/commands/theme/theme-remove.js +45 -37
  411. package/dist/m365/spo/commands/theme/theme-set.js +29 -32
  412. package/dist/m365/spo/commands/user/user-get.js +35 -37
  413. package/dist/m365/spo/commands/user/user-list.js +23 -20
  414. package/dist/m365/spo/commands/user/user-remove.js +43 -45
  415. package/dist/m365/spo/commands/userprofile/userprofile-get.js +22 -22
  416. package/dist/m365/spo/commands/userprofile/userprofile-set.js +41 -33
  417. package/dist/m365/spo/commands/web/web-add.js +71 -97
  418. package/dist/m365/spo/commands/web/web-clientsidewebpart-list.js +29 -26
  419. package/dist/m365/spo/commands/web/web-get.js +21 -18
  420. package/dist/m365/spo/commands/web/web-installedlanguage-list.js +20 -17
  421. package/dist/m365/spo/commands/web/web-list.js +24 -21
  422. package/dist/m365/spo/commands/web/web-reindex.js +40 -52
  423. package/dist/m365/spo/commands/web/web-remove.js +33 -32
  424. package/dist/m365/spo/commands/web/web-roleassignment-add.js +186 -0
  425. package/dist/m365/spo/commands/web/web-roleassignment-remove.js +168 -0
  426. package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +49 -18
  427. package/dist/m365/spo/commands/web/web-set.js +51 -46
  428. package/dist/m365/spo/commands.js +5 -0
  429. package/dist/m365/teams/commands/app/app-install.js +31 -35
  430. package/dist/m365/teams/commands/app/app-list.js +16 -13
  431. package/dist/m365/teams/commands/app/app-publish.js +23 -20
  432. package/dist/m365/teams/commands/app/app-remove.js +29 -28
  433. package/dist/m365/teams/commands/app/app-uninstall.js +28 -27
  434. package/dist/m365/teams/commands/app/app-update.js +25 -25
  435. package/dist/m365/teams/commands/cache/cache-remove.js +24 -23
  436. package/dist/m365/teams/commands/channel/channel-add.js +15 -15
  437. package/dist/m365/teams/commands/channel/channel-get.js +28 -48
  438. package/dist/m365/teams/commands/channel/channel-list.js +18 -20
  439. package/dist/m365/teams/commands/channel/channel-member-add.js +18 -27
  440. package/dist/m365/teams/commands/channel/channel-member-list.js +24 -39
  441. package/dist/m365/teams/commands/channel/channel-member-remove.js +26 -29
  442. package/dist/m365/teams/commands/channel/channel-member-set.js +30 -52
  443. package/dist/m365/teams/commands/channel/channel-remove.js +58 -64
  444. package/dist/m365/teams/commands/channel/channel-set.js +27 -24
  445. package/dist/m365/teams/commands/chat/chat-get.js +15 -25
  446. package/dist/m365/teams/commands/chat/chat-list.js +12 -9
  447. package/dist/m365/teams/commands/chat/chat-member-list.js +11 -8
  448. package/dist/m365/teams/commands/chat/chat-message-list.js +27 -24
  449. package/dist/m365/teams/commands/chat/chat-message-send.js +14 -24
  450. package/dist/m365/teams/commands/funsettings/funsettings-list.js +17 -14
  451. package/dist/m365/teams/commands/funsettings/funsettings-set.js +26 -21
  452. package/dist/m365/teams/commands/guestsettings/guestsettings-list.js +17 -14
  453. package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +23 -18
  454. package/dist/m365/teams/commands/membersettings/membersettings-list.js +17 -14
  455. package/dist/m365/teams/commands/membersettings/membersettings-set.js +23 -18
  456. package/dist/m365/teams/commands/message/message-get.js +17 -14
  457. package/dist/m365/teams/commands/message/message-list.js +16 -13
  458. package/dist/m365/teams/commands/message/message-reply-list.js +15 -12
  459. package/dist/m365/teams/commands/messagingsettings/messagingsettings-list.js +17 -14
  460. package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +23 -18
  461. package/dist/m365/teams/commands/report/report-directroutingcalls.js +18 -15
  462. package/dist/m365/teams/commands/report/report-pstncalls.js +18 -15
  463. package/dist/m365/teams/commands/tab/tab-add.js +20 -17
  464. package/dist/m365/teams/commands/tab/tab-get.js +27 -47
  465. package/dist/m365/teams/commands/tab/tab-list.js +14 -11
  466. package/dist/m365/teams/commands/tab/tab-remove.js +29 -26
  467. package/dist/m365/teams/commands/team/team-add.js +53 -55
  468. package/dist/m365/teams/commands/team/team-archive.js +22 -19
  469. package/dist/m365/teams/commands/team/team-clone.js +32 -27
  470. package/dist/m365/teams/commands/team/team-get.js +22 -24
  471. package/dist/m365/teams/commands/team/team-list.js +28 -18
  472. package/dist/m365/teams/commands/team/team-remove.js +34 -38
  473. package/dist/m365/teams/commands/team/team-set.js +22 -17
  474. package/dist/m365/teams/commands/team/team-unarchive.js +23 -23
  475. package/dist/m365/teams/commands/user/user-app-add.js +20 -15
  476. package/dist/m365/teams/commands/user/user-app-list.js +31 -35
  477. package/dist/m365/teams/commands/user/user-app-remove.js +30 -29
  478. package/dist/m365/teams/commands/user/user-list.js +16 -18
  479. package/dist/m365/teams/commands.js +0 -3
  480. package/dist/m365/tenant/commands/id/id-get.js +36 -25
  481. package/dist/m365/tenant/commands/report/report-office365activationcounts.js +37 -23
  482. package/dist/m365/tenant/commands/report/report-office365activationsusercounts.js +37 -23
  483. package/dist/m365/tenant/commands/report/report-office365activationsuserdetail.js +37 -23
  484. package/dist/m365/tenant/commands/security/security-alerts-list.js +19 -7
  485. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-get.js +19 -7
  486. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-list.js +19 -7
  487. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-get.js +26 -14
  488. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +23 -11
  489. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-get.js +20 -17
  490. package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +23 -11
  491. package/dist/m365/todo/commands/list/list-add.js +31 -19
  492. package/dist/m365/todo/commands/list/list-list.js +19 -7
  493. package/dist/m365/todo/commands/list/list-remove.js +51 -60
  494. package/dist/m365/todo/commands/list/list-set.js +29 -34
  495. package/dist/m365/todo/commands/task/task-add.js +27 -34
  496. package/dist/m365/todo/commands/task/task-list.js +27 -34
  497. package/dist/m365/todo/commands/task/task-remove.js +51 -60
  498. package/dist/m365/todo/commands/task/task-set.js +26 -28
  499. package/dist/m365/util/commands/accesstoken/accesstoken-get.js +26 -14
  500. package/dist/m365/viva/commands/connections/connections-app-create.js +102 -104
  501. package/dist/m365/yammer/commands/group/group-list.js +11 -8
  502. package/dist/m365/yammer/commands/group/group-user-add.js +21 -16
  503. package/dist/m365/yammer/commands/group/group-user-remove.js +38 -37
  504. package/dist/m365/yammer/commands/message/message-add.js +27 -24
  505. package/dist/m365/yammer/commands/message/message-get.js +18 -15
  506. package/dist/m365/yammer/commands/message/message-like-set.js +44 -45
  507. package/dist/m365/yammer/commands/message/message-list.js +24 -21
  508. package/dist/m365/yammer/commands/message/message-remove.js +30 -29
  509. package/dist/m365/yammer/commands/network/network-list.js +29 -17
  510. package/dist/m365/yammer/commands/user/user-get.js +25 -22
  511. package/dist/m365/yammer/commands/user/user-list.js +11 -8
  512. package/dist/m365/yammer/commands/yammer-search.js +76 -73
  513. package/dist/request.js +6 -2
  514. package/dist/settingsNames.js +0 -1
  515. package/dist/utils/fsUtil.js +2 -4
  516. package/dist/utils/md.js +1 -1
  517. package/docs/docs/cmd/aad/app/app-add.md +1 -1
  518. package/docs/docs/cmd/aad/app/app-set.md +1 -1
  519. package/docs/docs/cmd/aad/o365group/o365group-recyclebinitem-restore.md +1 -7
  520. package/docs/docs/cmd/adaptivecard/adaptivecard-send.md +0 -20
  521. package/docs/docs/cmd/booking/business/business-get.md +33 -0
  522. package/docs/docs/cmd/booking/business/business-list.md +21 -0
  523. package/docs/docs/cmd/cli/completion/completion-clink-update.md +1 -1
  524. package/docs/docs/cmd/cli/completion/completion-pwsh-setup.md +1 -1
  525. package/docs/docs/cmd/cli/completion/completion-pwsh-update.md +1 -1
  526. package/docs/docs/cmd/cli/completion/completion-sh-setup.md +1 -1
  527. package/docs/docs/cmd/cli/completion/completion-sh-update.md +1 -1
  528. package/docs/docs/cmd/graph/changelog/changelog-list.md +53 -0
  529. package/docs/docs/cmd/onenote/notebook/notebook-list.md +70 -0
  530. package/docs/docs/cmd/outlook/mail/mail-send.md +69 -17
  531. package/docs/docs/cmd/pp/environment/environment-list.md +1 -1
  532. package/docs/docs/cmd/request.md +76 -0
  533. package/docs/docs/cmd/search/externalconnection/externalconnection-remove.md +40 -0
  534. package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
  535. package/docs/docs/cmd/spfx/spfx-doctor.md +3 -3
  536. package/docs/docs/cmd/spo/contenttype/contenttype-set.md +45 -0
  537. package/docs/docs/cmd/spo/field/field-set.md +0 -3
  538. package/docs/docs/cmd/spo/hubsite/hubsite-unregister.md +2 -2
  539. package/docs/docs/cmd/spo/list/list-roleassignment-add.md +2 -2
  540. package/docs/docs/cmd/spo/list/list-roleassignment-remove.md +5 -2
  541. package/docs/docs/cmd/spo/list/list-roleinheritance-break.md +9 -0
  542. package/docs/docs/cmd/spo/list/list-roleinheritance-reset.md +9 -0
  543. package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.md +67 -0
  544. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-break.md +15 -6
  545. package/docs/docs/cmd/spo/listitem/listitem-roleinheritance-reset.md +9 -0
  546. package/docs/docs/cmd/spo/roledefinition/roledefinition-add.md +43 -0
  547. package/docs/docs/cmd/spo/site/site-add.md +2 -2
  548. package/docs/docs/cmd/spo/site/site-apppermission-add.md +1 -1
  549. package/docs/docs/cmd/spo/site/site-apppermission-set.md +1 -1
  550. package/docs/docs/cmd/spo/site/site-groupify.md +0 -6
  551. package/docs/docs/cmd/spo/web/web-roleassignment-add.md +57 -0
  552. package/docs/docs/cmd/spo/web/web-roleassignment-remove.md +54 -0
  553. package/docs/docs/cmd/spo/web/web-roleinheritance-reset.md +9 -0
  554. package/docs/docs/cmd/teams/channel/channel-member-add.md +5 -11
  555. package/docs/docs/cmd/teams/channel/channel-member-list.md +0 -6
  556. package/docs/docs/cmd/teams/channel/channel-member-remove.md +1 -7
  557. package/docs/docs/cmd/teams/channel/channel-member-set.md +1 -1
  558. package/npm-shrinkwrap.json +200 -161
  559. package/package.json +24 -10
  560. package/scripts/Register-CLIM365Completion.ps1 +1 -1
@@ -110,85 +110,88 @@ class YammerSearchCommand extends YammerCommand_1.default {
110
110
  });
111
111
  });
112
112
  }
113
- commandAction(logger, args, cb) {
114
- this.summary = {
115
- messages: 0,
116
- groups: 0,
117
- topics: 0,
118
- users: 0
119
- };
120
- this.messages = [];
121
- this.groups = [];
122
- this.topics = [];
123
- this.users = [];
124
- this
125
- .getAllItems(logger, args, 1)
126
- .then(() => {
127
- var _a;
128
- if (args.options.output === 'json') {
129
- logger.log({
130
- summary: this.summary,
131
- messages: this.messages,
132
- users: this.users,
133
- topics: this.topics,
134
- groups: this.groups
135
- });
136
- }
137
- else {
138
- const show = (_a = args.options.show) === null || _a === void 0 ? void 0 : _a.toLowerCase();
139
- if (show === "summary") {
140
- logger.log(this.summary);
113
+ commandAction(logger, args) {
114
+ var _a;
115
+ return __awaiter(this, void 0, void 0, function* () {
116
+ this.summary = {
117
+ messages: 0,
118
+ groups: 0,
119
+ topics: 0,
120
+ users: 0
121
+ };
122
+ this.messages = [];
123
+ this.groups = [];
124
+ this.topics = [];
125
+ this.users = [];
126
+ try {
127
+ yield this.getAllItems(logger, args, 1);
128
+ if (args.options.output === 'json') {
129
+ logger.log({
130
+ summary: this.summary,
131
+ messages: this.messages,
132
+ users: this.users,
133
+ topics: this.topics,
134
+ groups: this.groups
135
+ });
141
136
  }
142
137
  else {
143
- let results = [];
144
- if (show === undefined || show === "messages") {
145
- results = [...results, ...this.messages.map((msg) => {
146
- let trimmedMessage = msg.content_excerpt;
147
- trimmedMessage = (trimmedMessage === null || trimmedMessage === void 0 ? void 0 : trimmedMessage.length) >= 80 ? (trimmedMessage.substring(0, 80) + "...") : trimmedMessage;
148
- trimmedMessage = trimmedMessage === null || trimmedMessage === void 0 ? void 0 : trimmedMessage.replace(/\n/g, " ");
149
- return {
150
- id: msg.id,
151
- description: trimmedMessage,
152
- type: "message",
153
- web_url: msg.web_url
154
- };
155
- })];
138
+ const show = (_a = args.options.show) === null || _a === void 0 ? void 0 : _a.toLowerCase();
139
+ if (show === "summary") {
140
+ logger.log(this.summary);
156
141
  }
157
- if (show === undefined || show === "topics") {
158
- results = [...results, ...this.topics.map((topic) => {
159
- return {
160
- id: topic.id,
161
- description: topic.name,
162
- type: "topic",
163
- web_url: topic.web_url
164
- };
165
- })];
142
+ else {
143
+ let results = [];
144
+ if (show === undefined || show === "messages") {
145
+ results = [...results, ...this.messages.map((msg) => {
146
+ let trimmedMessage = msg.content_excerpt;
147
+ trimmedMessage = (trimmedMessage === null || trimmedMessage === void 0 ? void 0 : trimmedMessage.length) >= 80 ? (trimmedMessage.substring(0, 80) + "...") : trimmedMessage;
148
+ trimmedMessage = trimmedMessage === null || trimmedMessage === void 0 ? void 0 : trimmedMessage.replace(/\n/g, " ");
149
+ return {
150
+ id: msg.id,
151
+ description: trimmedMessage,
152
+ type: "message",
153
+ web_url: msg.web_url
154
+ };
155
+ })];
156
+ }
157
+ if (show === undefined || show === "topics") {
158
+ results = [...results, ...this.topics.map((topic) => {
159
+ return {
160
+ id: topic.id,
161
+ description: topic.name,
162
+ type: "topic",
163
+ web_url: topic.web_url
164
+ };
165
+ })];
166
+ }
167
+ if (show === undefined || show === "users") {
168
+ results = [...results, ...this.users.map((user) => {
169
+ return {
170
+ id: user.id,
171
+ description: user.name,
172
+ type: "user",
173
+ web_url: user.web_url
174
+ };
175
+ })];
176
+ }
177
+ if (show === undefined || show === "groups") {
178
+ results = [...results, ...this.groups.map((group) => {
179
+ return {
180
+ id: group.id,
181
+ description: group.name,
182
+ type: "group",
183
+ web_url: group.web_url
184
+ };
185
+ })];
186
+ }
187
+ logger.log(results);
166
188
  }
167
- if (show === undefined || show === "users") {
168
- results = [...results, ...this.users.map((user) => {
169
- return {
170
- id: user.id,
171
- description: user.name,
172
- type: "user",
173
- web_url: user.web_url
174
- };
175
- })];
176
- }
177
- if (show === undefined || show === "groups") {
178
- results = [...results, ...this.groups.map((group) => {
179
- return {
180
- id: group.id,
181
- description: group.name,
182
- type: "group",
183
- web_url: group.web_url
184
- };
185
- })];
186
- }
187
- logger.log(results);
188
189
  }
189
190
  }
190
- cb();
191
- }, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
191
+ catch (err) {
192
+ this.handleRejectedODataJsonPromise(err);
193
+ }
194
+ });
192
195
  }
193
196
  }
194
197
  _YammerSearchCommand_instances = new WeakSet(), _YammerSearchCommand_initTelemetry = function _YammerSearchCommand_initTelemetry() {
package/dist/request.js CHANGED
@@ -128,7 +128,8 @@ class Request {
128
128
  return Promise.resolve('');
129
129
  }
130
130
  else {
131
- const resource = Auth_1.Auth.getResourceFromUrl(options.url);
131
+ const url = options.headers && options.headers['x-resource'] ? options.headers['x-resource'] : options.url;
132
+ const resource = Auth_1.Auth.getResourceFromUrl(url);
132
133
  return Auth_1.default.ensureAccessToken(resource, this._logger, this._debug);
133
134
  }
134
135
  })()
@@ -137,7 +138,10 @@ class Request {
137
138
  if (options.headers['x-anonymous']) {
138
139
  delete options.headers['x-anonymous'];
139
140
  }
140
- else {
141
+ if (options.headers['x-resource']) {
142
+ delete options.headers['x-resource'];
143
+ }
144
+ if (accessToken !== '') {
141
145
  options.headers.authorization = `Bearer ${accessToken}`;
142
146
  }
143
147
  }
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.settingsNames = void 0;
4
4
  const settingsNames = {
5
- autoOpenBrowserOnLogin: 'autoOpenBrowserOnLogin',
6
5
  autoOpenLinksInBrowser: 'autoOpenLinksInBrowser',
7
6
  copyDeviceCodeToClipboard: 'copyDeviceCodeToClipboard',
8
7
  csvEscape: 'csvEscape',
@@ -42,12 +42,10 @@ const addFileCommands = {
42
42
  addFileCommand: 'cat > [FILEPATH] << EOF [FILECONTENT]EOF'
43
43
  },
44
44
  powershell: {
45
- addFileCommand: `@"[FILECONTENT]"@ | Out-File -FilePath "[FILEPATH]"
46
- `
45
+ addFileCommand: `@"[FILECONTENT]"@ | Out-File -FilePath [FILEPATH]`
47
46
  },
48
47
  cmd: {
49
- addFileCommand: `echo [FILECONTENT] > "[FILEPATH]"
50
- `
48
+ addFileCommand: `echo [FILECONTENT] > [FILEPATH]`
51
49
  }
52
50
  };
53
51
  const removeFileCommands = {
package/dist/utils/md.js CHANGED
@@ -46,7 +46,7 @@ function convertHyperlinks(md) {
46
46
  });
47
47
  }
48
48
  function convertCodeFences(md) {
49
- const regex = new RegExp('^```.*?' + os_1.EOL + '(.*?)```' + os_1.EOL, 'gms');
49
+ const regex = new RegExp('^```.*?(?:\r\n|\n)(.*?)```(?:\r\n|\n)', 'gms');
50
50
  return md.replace(regex, (match, code) => {
51
51
  return ` ${code}${os_1.EOL}`;
52
52
  });
@@ -176,5 +176,5 @@ m365 aad app add --name 'My AAD app' --save
176
176
  Create new Azure AD app registration with a certificate
177
177
 
178
178
  ```sh
179
- m365 aad app add --name 'My AAD app' --certificateDisplayName "Some certificate name" --certificateFile c:\temp\some-certificate.cer
179
+ m365 aad app add --name 'My AAD app' --certificateDisplayName "Some certificate name" --certificateFile "c:\temp\some-certificate.cer"
180
180
  ```
@@ -85,5 +85,5 @@ m365 aad app set --objectId 95cfe30d-ed44-4f9d-b73d-c66560f72e83 --redirectUris
85
85
  Add a certificate to the app
86
86
 
87
87
  ```sh
88
- m365 aad app set --certificateDisplayName "Some certificate name" --certificateFile c:\temp\some-certificate.cer
88
+ m365 aad app set --appId e75be2e1-0204-4f95-857d-51a37cf40be8 --certificateDisplayName "Some certificate name" --certificateFile "c:\temp\some-certificate.cer"
89
89
  ```
@@ -1,4 +1,4 @@
1
- # aad o365group restore
1
+ # aad o365group recyclebinitem restore
2
2
 
3
3
  Restores a deleted Microsoft 365 Group
4
4
 
@@ -8,12 +8,6 @@ Restores a deleted Microsoft 365 Group
8
8
  m365 aad o365group recyclebinitem restore [options]
9
9
  ```
10
10
 
11
- ## Alias
12
-
13
- ```sh
14
- m365 aad o365group restore [options]
15
- ```
16
-
17
11
  ## Options
18
12
 
19
13
  `-i, --id [id]`
@@ -116,23 +116,3 @@ Send custom card with card data
116
116
  ```sh
117
117
  m365 adaptivecard send --url https://contoso.webhook.office.com/webhookb2/892e8ed3-997c-4b6e-8f8a-7f32728a8a87@f7322380-f203-42ff-93e8-66e266f6d2e4/IncomingWebhook/fcc6565ec7a944928bd43d6fc193b258/4f0482d4-b147-4f67-8a61-11f0a5019547 --card '{"type":"AdaptiveCard","body":[{"type":"TextBlock","size":"Medium","weight":"Bolder","text":"${title}"},{"type":"TextBlock","text":"${description}","wrap":true},{"type":"FactSet","facts":[{"$data":"${properties}","title":"${key}:","value":"${value}"}]}],"actions":[{"type":"Action.OpenUrl","title":"View","url":"${viewUrl}"}],"$schema":"http://adaptivecards.io/schemas/adaptive-card.json","version":"1.2"}' --cardData '{"title":"Publish Adaptive Card Schema","description":"Now that we have defined the main rules and features of the format, we need to produce a schema and publish it to GitHub. The schema will be the starting point of our reference documentation.","creator":{"name":"Matt Hidinger","profileImage":"https://pbs.twimg.com/profile_images/3647943215/d7f12830b3c17a5a9e4afcc370e3a37e_400x400.jpeg"},"createdUtc":"2017-02-14T06:08:39Z","viewUrl":"https://adaptivecards.io","properties":[{"key":"Board","value":"Adaptive Cards"},{"key":"List","value":"Backlog"},{"key":"Assigned to","value":"Matt Hidinger"},{"key":"Due date","value":"Not set"}]}'
118
118
  ```
119
-
120
- ## Examples for PowerShell
121
-
122
- Send custom card with all known options merged
123
-
124
- ```powershell
125
- m365 adaptivecard send --url https://contoso.webhook.office.com/webhookb2/892e8ed3-997c-4b6e-8f8a-7f32728a8a87@f7322380-f203-42ff-93e8-66e266f6d2e4/IncomingWebhook/fcc6565ec7a944928bd43d6fc193b258/4f0482d4-b147-4f67-8a61-11f0a5019547 --card "{\"type\":\"AdaptiveCard\",\"body\":[{\"type\":\"TextBlock\",\"size\":\"Medium\",\"weight\":\"Bolder\",\"text\":\"${title}\"},{\"type\":\"TextBlock\",\"text\":\"${description}\",\"wrap\":true},{\"type\":\"FactSet\",\"facts\":[{\"$data\":\"${properties}\",\"title\":\"${key}:\",\"value\":\"${value}\"}]}],\"actions\":[{\"type\":\"Action.OpenUrl\",\"title\":\"View\",\"url\":\"${actionUrl}\"}],\"$schema\":\"http://adaptivecards.io/schemas/adaptive-card.json\",\"version\":\"1.2\"}" --title "CLI for Microsoft 365 v3.4" --description "New release of CLI for Microsoft 365" --imageUrl "https://contoso.com/image.gif" --actionUrl "https://aka.ms/cli-m365"
126
- ```
127
-
128
- Send custom card with unknown option merged
129
-
130
- ```powershell
131
- m365 adaptivecard send --url https://contoso.webhook.office.com/webhookb2/892e8ed3-997c-4b6e-8f8a-7f32728a8a87@f7322380-f203-42ff-93e8-66e266f6d2e4/IncomingWebhook/fcc6565ec7a944928bd43d6fc193b258/4f0482d4-b147-4f67-8a61-11f0a5019547 --card "{\"type\":\"AdaptiveCard\",\"body\":[{\"type\":\"TextBlock\",\"size\":\"Medium\",\"weight\":\"Bolder\",\"text\":\"${Title}\"}],\"$schema\":\"http://adaptivecards.io/schemas/adaptive-card.json\",\"version\":\"1.2\"}" --Title "CLI for Microsoft 365 v3.4"
132
- ```
133
-
134
- Send custom card with card data
135
-
136
- ```powershell
137
- m365 adaptivecard send --url https://contoso.webhook.office.com/webhookb2/892e8ed3-997c-4b6e-8f8a-7f32728a8a87@f7322380-f203-42ff-93e8-66e266f6d2e4/IncomingWebhook/fcc6565ec7a944928bd43d6fc193b258/4f0482d4-b147-4f67-8a61-11f0a5019547 --card "{\"type\":\"AdaptiveCard\",\"body\":[{\"type\":\"TextBlock\",\"size\":\"Medium\",\"weight\":\"Bolder\",\"text\":\"${title}\"},{\"type\":\"TextBlock\",\"text\":\"${description}\",\"wrap\":true},{\"type\":\"FactSet\",\"facts\":[{\"$data\":\"${properties}\",\"title\":\"${key}:\",\"value\":\"${value}\"}]}],\"actions\":[{\"type\":\"Action.OpenUrl\",\"title\":\"View\",\"url\":\"${viewUrl}\"}],\"$schema\":\"http://adaptivecards.io/schemas/adaptive-card.json\",\"version\":\"1.2\"}" --cardData "{\"title\":\"Publish Adaptive Card Schema\",\"description\":\"Now that we have defined the main rules and features of the format, we need to produce a schema and publish it to GitHub. The schema will be the starting point of our reference documentation.\",\"creator\":{\"name\":\"Matt Hidinger\",\"profileImage\":\"https://pbs.twimg.com/profile_images/3647943215/d7f12830b3c17a5a9e4afcc370e3a37e_400x400.jpeg\"},\"createdUtc\":\"2017-02-14T06:08:39Z\",\"viewUrl\":\"https://adaptivecards.io\",\"properties\":[{\"key\":\"Board\",\"value\":\"Adaptive Cards\"},{\"key\":\"List\",\"value\":\"Backlog\"},{\"key\":\"Assigned to\",\"value\":\"Matt Hidinger\"},{\"key\":\"Due date\",\"value\":\"Not set\"}]}"
138
- ```
@@ -0,0 +1,33 @@
1
+ # booking business get
2
+
3
+ Retrieve the specified Microsoft Bookings business.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 booking business get [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-i, --id [id]`
14
+ : ID of the business. Specify either `id` or `name` but not both.
15
+
16
+ `-n, --name [name]`
17
+ : Name of the business. Specify either `id` or `name` but not both.
18
+
19
+ --8<-- "docs/cmd/_global.md"
20
+
21
+ ## Examples
22
+
23
+ Retrieve the specified Microsoft Bookings business with id _business@contoso.onmicrosoft.com_.
24
+
25
+ ```sh
26
+ m365 booking business get --id 'business@contoso.onmicrosoft.com'
27
+ ```
28
+
29
+ Retrieve the specified Microsoft Bookings business with name _business name_.
30
+
31
+ ```sh
32
+ m365 booking business get --name 'business name'
33
+ ```
@@ -0,0 +1,21 @@
1
+ # booking business list
2
+
3
+ Lists all Microsoft Bookings businesses that are created for the tenant.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 booking business list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ --8<-- "docs/cmd/_global.md"
14
+
15
+ ## Examples
16
+
17
+ Returns a list of all Microsoft Bookings businesses that are created for the tenant.
18
+
19
+ ```sh
20
+ m365 booking business list
21
+ ```
@@ -29,4 +29,4 @@ cli completion clink update > m365.lua
29
29
 
30
30
  ## More information
31
31
 
32
- - Command completion: [https://pnp.github.io/cli-microsoft365/concepts/completion/](https://pnp.github.io/cli-microsoft365/concepts/completion/)
32
+ - Command completion: [https://pnp.github.io/cli-microsoft365/user-guide/completion/](https://pnp.github.io/cli-microsoft365/user-guide/completion/)
@@ -31,4 +31,4 @@ cli completion pwsh setup --profile $profile
31
31
 
32
32
  ## More information
33
33
 
34
- - Command completion: [https://pnp.github.io/cli-microsoft365/concepts/completion/](https://pnp.github.io/cli-microsoft365/concepts/completion/)
34
+ - Command completion: [https://pnp.github.io/cli-microsoft365/user-guide/completion/](https://pnp.github.io/cli-microsoft365/user-guide/completion/)
@@ -26,4 +26,4 @@ cli completion pwsh update
26
26
 
27
27
  ## More information
28
28
 
29
- - Command completion: [https://pnp.github.io/cli-microsoft365/concepts/completion/](https://pnp.github.io/cli-microsoft365/concepts/completion/)
29
+ - Command completion: [https://pnp.github.io/cli-microsoft365/user-guide/completion/](https://pnp.github.io/cli-microsoft365/user-guide/completion/)
@@ -22,4 +22,4 @@ cli completion sh setup
22
22
 
23
23
  ## More information
24
24
 
25
- - Command completion: [https://pnp.github.io/cli-microsoft365/concepts/completion/](https://pnp.github.io/cli-microsoft365/concepts/completion/)
25
+ - Command completion: [https://pnp.github.io/cli-microsoft365/user-guide/completion/](https://pnp.github.io/cli-microsoft365/user-guide/completion/)
@@ -26,4 +26,4 @@ m365 cli completion sh update
26
26
 
27
27
  ## More information
28
28
 
29
- - Command completion: [https://pnp.github.io/cli-microsoft365/concepts/completion/](https://pnp.github.io/cli-microsoft365/concepts/completion/)
29
+ - Command completion: [https://pnp.github.io/cli-microsoft365/user-guide/completion/](https://pnp.github.io/cli-microsoft365/user-guide/completion/)
@@ -0,0 +1,53 @@
1
+ # graph changelog list
2
+
3
+ Gets an overview of specific API-level changes in Microsoft Graph v1.0 and beta
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 graph changelog list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-v, --versions [versions]`
14
+ : Comma-separated list of versions to show changes for. `Beta, v1.0`. When no version is selected all versions are returned.
15
+
16
+ `-c, --changeType [changeType]`
17
+ : Change type to show changes for. `Addition, Change, Deletion`. When no changeType is selected all change types are returned.
18
+
19
+ `-s, --services [services]`
20
+ : Comma-separated list of services to show changes for. `Applications, Calendar, Change notifications, Cloud communications, Compliance, Cross-device experiences, Customer booking, Device and app management, Education, Files, Financials, Groups, Identity and access, Mail, Notes, Notifications, People and workplace intelligence, Personal contacts, Reports, Search, Security, Sites and lists, Tasks and plans, Teamwork, To-do tasks, Users, Workbooks and charts`. When no service is selected all services are returned.
21
+
22
+ `--startDate [startDate]`
23
+ : The startdate used to query for changes. Supported date format is `YYYY-MM-DD`. When no date is specified all changes are returned.
24
+
25
+ `--endDate [endDate]`
26
+ : The enddate used to query for changes. Supported date format is `YYYY-MM-DD`. When no date is specified all changes are returned.
27
+
28
+ --8<-- "docs/cmd/_global.md"
29
+
30
+ ## Remarks
31
+
32
+ !!! attention
33
+ This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
34
+
35
+ ## Examples
36
+
37
+ Get all changes within Microsoft Graph.
38
+
39
+ ```sh
40
+ m365 graph changelog list
41
+ ```
42
+
43
+ Get all changes within Microsoft Graph for the services _Groups_ and _Users_.
44
+
45
+ ```sh
46
+ m365 graph changelog list --services 'Groups,Users'
47
+ ```
48
+
49
+ Get all changes within Microsoft Graph that happend between _2021-01-01_ and _2021-05-01_.
50
+
51
+ ```sh
52
+ m365 graph changelog list --startDate '2021-01-01' --endDate '2021-05-01'
53
+ ```
@@ -0,0 +1,70 @@
1
+ # onenote notebook list
2
+
3
+ Retrieve a list of notebooks.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 onenote notebook list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `--userId [userId]`
14
+ : Id of the user. Use either userId or userName, but not both.
15
+
16
+ `--userName [userName]`
17
+ : Name of the user. Use either userId or userName, but not both.
18
+
19
+ `--groupId [groupId]`
20
+ : Id of the SharePoint group. Use either groupName or groupId, but not both
21
+
22
+ `--groupName [groupName]`
23
+ : Name of the SharePoint group. Use either groupName or groupId, but not both.
24
+
25
+ `-u, --webUrl [webUrl]`
26
+ : URL of the SharePoint site.
27
+
28
+ --8<-- "docs/cmd/_global.md"
29
+
30
+ ## Examples
31
+
32
+ List Microsoft OneNote notebooks for the currently logged in user
33
+
34
+ ```sh
35
+ m365 onenote notebook list
36
+ ```
37
+
38
+ List Microsoft OneNote notebooks in group 233e43d0-dc6a-482e-9b4e-0de7a7bce9b4
39
+
40
+ ```sh
41
+ m365 onenote notebook list --groupId 233e43d0-dc6a-482e-9b4e-0de7a7bce9b4
42
+ ```
43
+
44
+ List Microsoft OneNote notebooks in group My Group
45
+
46
+ ```sh
47
+ m365 onenote notebook list --groupName "MyGroup"
48
+ ```
49
+
50
+ List Microsoft OneNote notebooks for user user1@contoso.onmicrosoft.com
51
+
52
+ ```sh
53
+ m365 onenote notebook list --userName user1@contoso.onmicrosoft.com
54
+ ```
55
+
56
+ List Microsoft OneNote notebooks for user 2609af39-7775-4f94-a3dc-0dd67657e900
57
+
58
+ ```sh
59
+ m365 onenote notebook list --userId 2609af39-7775-4f94-a3dc-0dd67657e900
60
+ ```
61
+
62
+ List Microsoft OneNote notebooks for site https://contoso.sharepoint.com/sites/testsite
63
+
64
+ ```sh
65
+ m365 onenote notebook list --webUrl https://contoso.sharepoint.com/sites/testsite
66
+ ```
67
+
68
+ ## More information
69
+
70
+ - List notebooks (MS Graph docs): [https://docs.microsoft.com/en-us/graph/api/onenote-list-notebooks?view=graph-rest-1.0&tabs=http](https://docs.microsoft.com/en-us/graph/api/onenote-list-notebooks?view=graph-rest-1.0&tabs=http)
@@ -1,6 +1,6 @@
1
- # outlook sendmail
1
+ # outlook mail send
2
2
 
3
- Sends e-mail on behalf of the current user
3
+ Sends an email
4
4
 
5
5
  ## Usage
6
6
 
@@ -8,53 +8,105 @@ Sends e-mail on behalf of the current user
8
8
  m365 outlook mail send [options]
9
9
  ```
10
10
 
11
- ## Alias
12
-
13
- ```sh
14
- m365 outlook sendmail [options]
15
- ```
16
-
17
11
  ## Options
18
12
 
19
13
  `-s, --subject <subject>`
20
- : E-mail subject
14
+ : Email subject
21
15
 
22
16
  `-t, --to <to>`
23
- : Comma-separated list of e-mails to send the message to
17
+ : Comma-separated list of emails to send the message to.
18
+
19
+ `--cc [cc]`
20
+ : Comma-separated list of CC recipients for the message.
21
+
22
+ `--bcc [bcc]`
23
+ : Comma-separated list of BCC recipients for the message.
24
+
25
+ `--sender [sender]`
26
+ : Optional upn or user id to specify what account to send the message from. Also see the remarks section.
27
+
28
+ `-m, --mailbox [mailbox]`
29
+ : Specify this option to send the email on behalf of another mailbox, for example a shared mailbox, group or distribution list. The sender needs to be a delegate on the specified mailbox. Also see the remarks section.
24
30
 
25
31
  `--bodyContents <bodyContents>`
26
- : String containing the body of the e-mail to send
32
+ : String containing the body of the email to send.
27
33
 
28
34
  `--bodyContentType [bodyContentType]`
29
- : Type of the body content. Available options: `Text,HTML`. Default `Text`
35
+ : Type of the body content. Available options: `Text,HTML`. Default `Text`.
36
+
37
+ `--importance [importance]`
38
+ : The importance of the message. Available options: `low`, `normal` or `high`. Default is `normal`.
30
39
 
31
40
  `--saveToSentItems [saveToSentItems]`
32
- : Save e-mail in the sent items folder. Default `true`
41
+ : Save email in the sent items folder. Default `true`.
33
42
 
34
43
  --8<-- "docs/cmd/_global.md"
35
44
 
45
+ ## Remarks
46
+
47
+ ### If you are connected using app only authentication
48
+
49
+ - Always specify a user id or upn in the `--sender` option. The email will be sent as if it came from the specified user, and can optionally be saved in the sent folder of that user account.
50
+ - You can optionally also specify the `--mailbox` option to send mail on behalf of a shared mailbox, group or distribution list. The account used in the `--sender` option, needs to have 'Send on behalf of' permissions on the mailbox in question.
51
+
52
+ !!! important
53
+ You need `Mail.Send` application permissions on the Microsoft Graph to be able to send mails using an application identity.
54
+
55
+ ### If you are connected with a regular user account
56
+
57
+ - Specify the `--mailbox` option if you want to send an email on behalf of another mailbox. This can be a shared mailbox, group or distribution list. It will be visible in the email that the email was sent by you. You need to be assigned `Send on behalf of` permissions on the mailbox in question.
58
+ - You can specify the `--sender` option if you want to send an email as if you were the other user.
59
+ The sent email can optionally be saved in the sent folder of that user account. You'll need `Read and manage (Full Access)` permissions on the mailbox of the other user. You can combine the `--sender` and `--mailbox` options to let the other user send a mail on behalf of the specified mailbox.
60
+
61
+ !!! important
62
+ You need at least `Mail.Send` delegated permissions on the Microsoft Graph to be able to send emails. When specifying another user as sender, you'll need `Mail.Send.Shared` permissions.
63
+
36
64
  ## Examples
37
65
 
38
- Send a text e-mail to the specified e-mail address
66
+ Send a text email to the specified email address
39
67
 
40
68
  ```sh
41
69
  m365 outlook mail send --to chris@contoso.com --subject "DG2000 Data Sheets" --bodyContents "The latest data sheets are in the team site"
42
70
  ```
43
71
 
44
- Send an HTML e-mail to the specified e-mail addresses
72
+ Send an HTML email to the specified email addresses
45
73
 
46
74
  ```sh
47
75
  m365 outlook mail send --to "chris@contoso.com,brian@contoso.com" --subject "DG2000 Data Sheets" --bodyContents "The latest data sheets are in the <a href='https://contoso.sharepoint.com/sites/marketing'>team site</a>" --bodyContentType HTML
48
76
  ```
49
77
 
50
- Send an HTML e-mail to the specified e-mail address loading e-mail contents from a file on disk
78
+ Send an HTML email to the specified email address loading email contents from a file on disk
51
79
 
52
80
  ```sh
53
81
  m365 outlook mail send --to chris@contoso.com --subject "DG2000 Data Sheets" --bodyContents @email.html --bodyContentType HTML
54
82
  ```
55
83
 
56
- Send a text e-mail to the specified e-mail address. Don't store the e-mail in sent items
84
+ Send a text email to the specified email address. Don't store the email in sent items
57
85
 
58
86
  ```sh
59
87
  m365 outlook mail send --to chris@contoso.com --subject "DG2000 Data Sheets" --bodyContents "The latest data sheets are in the team site" --saveToSentItems false
60
88
  ```
89
+
90
+ Send an email on behalf of a shared mailbox using the signed in user
91
+
92
+ ```sh
93
+ m365 outlook mail send --to chris@contoso.com --subject "DG2000 Data Sheets" --bodyContents "The latest data sheets are in the team site" --mailbox sales@contoso.com
94
+ ```
95
+
96
+ Send an email as another user
97
+
98
+ ```sh
99
+ m365 outlook mail send --to chris@contoso.com --subject "DG2000 Data Sheets" --bodyContents "The latest data sheets are in the team site" --sender svc_project@contoso.com
100
+ ```
101
+
102
+ Send an email as another user, on behalf of a shared mailbox
103
+
104
+ ```sh
105
+ m365 outlook mail send --to chris@contoso.com --subject "DG2000 Data Sheets" --bodyContents "The latest data sheets are in the team site" --sender svc_project@contoso.com --mailbox sales@contoso.com
106
+ ```
107
+
108
+ Send an email with cc and bcc recipients marked as important
109
+
110
+ ```sh
111
+ m365 outlook mail send --to chris@contoso.com --cc claire@contoso.com --bcc randy@contoso.com --subject "DG2000 Data Sheets" --bodyContents "The latest data sheets are in the team site" --importance high
112
+ ```
@@ -10,7 +10,7 @@ m365 pp environment list [options]
10
10
 
11
11
  ## Options
12
12
 
13
- `-a, --asAdmin [teamId]`
13
+ `-a, --asAdmin`
14
14
  Run the command as admin and retrieve all environments. Lists only environments you have explicitly are assigned permissions to by default.
15
15
 
16
16
  --8<-- "docs/cmd/_global.md"