@pnp/cli-microsoft365 7.6.0-beta.c74fe4b → 7.6.0-beta.fc0eacc

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 (268) hide show
  1. package/.eslintrc.cjs +3 -0
  2. package/README.md +1 -1
  3. package/allCommands.json +1 -1
  4. package/allCommandsFull.json +1 -1
  5. package/dist/Auth.js +12 -10
  6. package/dist/AuthServer.js +1 -1
  7. package/dist/config.js +2 -2
  8. package/dist/m365/app/commands/app-get.js +1 -1
  9. package/dist/m365/app/commands/app-open.js +1 -1
  10. package/dist/m365/app/commands/permission/permission-add.js +2 -2
  11. package/dist/m365/app/commands/permission/permission-list.js +2 -2
  12. package/dist/m365/base/PeriodBasedReport.js +3 -0
  13. package/dist/m365/cli/commands/cli-consent.js +2 -2
  14. package/dist/m365/cli/commands/cli-reconsent.js +3 -3
  15. package/dist/m365/commands/login.js +1 -1
  16. package/dist/m365/entra/commands/administrativeunit/administrativeunit-add.js +1 -0
  17. package/dist/m365/entra/commands/administrativeunit/administrativeunit-get.js +1 -0
  18. package/dist/m365/entra/commands/administrativeunit/administrativeunit-list.js +1 -0
  19. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-add.js +1 -0
  20. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-get.js +1 -0
  21. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-list.js +1 -0
  22. package/dist/m365/entra/commands/administrativeunit/administrativeunit-remove.js +1 -0
  23. package/dist/m365/entra/commands/app/app-add.js +7 -6
  24. package/dist/m365/entra/commands/app/app-get.js +4 -3
  25. package/dist/m365/entra/commands/app/app-list.js +1 -0
  26. package/dist/m365/entra/commands/app/app-permission-add.js +3 -2
  27. package/dist/m365/entra/commands/app/app-permission-list.js +1 -1
  28. package/dist/m365/entra/commands/app/app-remove.js +5 -4
  29. package/dist/m365/entra/commands/app/app-role-add.js +6 -5
  30. package/dist/m365/entra/commands/app/app-role-list.js +4 -3
  31. package/dist/m365/entra/commands/app/app-role-remove.js +6 -5
  32. package/dist/m365/entra/commands/app/app-set.js +8 -7
  33. package/dist/m365/entra/commands/approleassignment/approleassignment-add.js +2 -1
  34. package/dist/m365/entra/commands/approleassignment/approleassignment-list.js +1 -0
  35. package/dist/m365/entra/commands/approleassignment/approleassignment-remove.js +1 -0
  36. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-add.js +1 -0
  37. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-get.js +1 -0
  38. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-list.js +1 -0
  39. package/dist/m365/entra/commands/group/group-get.js +1 -0
  40. package/dist/m365/entra/commands/group/group-list.js +1 -0
  41. package/dist/m365/entra/commands/group/group-remove.js +1 -0
  42. package/dist/m365/entra/commands/group/group-user-list.js +1 -0
  43. package/dist/m365/entra/commands/groupsetting/groupsetting-add.js +1 -0
  44. package/dist/m365/entra/commands/groupsetting/groupsetting-get.js +1 -0
  45. package/dist/m365/entra/commands/groupsetting/groupsetting-list.js +1 -0
  46. package/dist/m365/entra/commands/groupsetting/groupsetting-remove.js +1 -0
  47. package/dist/m365/entra/commands/groupsetting/groupsetting-set.js +1 -0
  48. package/dist/m365/entra/commands/groupsettingtemplate/groupsettingtemplate-get.js +1 -0
  49. package/dist/m365/entra/commands/groupsettingtemplate/groupsettingtemplate-list.js +1 -0
  50. package/dist/m365/entra/commands/license/license-list.js +1 -0
  51. package/dist/m365/entra/commands/m365group/m365group-add.js +1 -0
  52. package/dist/m365/entra/commands/m365group/m365group-conversation-list.js +1 -0
  53. package/dist/m365/entra/commands/m365group/m365group-conversation-post-list.js +1 -0
  54. package/dist/m365/entra/commands/m365group/m365group-get.js +1 -0
  55. package/dist/m365/entra/commands/m365group/m365group-list.js +1 -0
  56. package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-clear.js +1 -0
  57. package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-list.js +1 -0
  58. package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-remove.js +1 -0
  59. package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-restore.js +1 -0
  60. package/dist/m365/entra/commands/m365group/m365group-remove.js +1 -0
  61. package/dist/m365/entra/commands/m365group/m365group-renew.js +1 -0
  62. package/dist/m365/entra/commands/m365group/m365group-set.js +1 -0
  63. package/dist/m365/entra/commands/m365group/m365group-teamify.js +1 -0
  64. package/dist/m365/entra/commands/m365group/m365group-user-add.js +1 -0
  65. package/dist/m365/entra/commands/m365group/m365group-user-list.js +1 -0
  66. package/dist/m365/entra/commands/m365group/m365group-user-remove.js +1 -0
  67. package/dist/m365/entra/commands/m365group/m365group-user-set.js +1 -0
  68. package/dist/m365/entra/commands/oauth2grant/oauth2grant-add.js +1 -0
  69. package/dist/m365/entra/commands/oauth2grant/oauth2grant-list.js +1 -0
  70. package/dist/m365/entra/commands/oauth2grant/oauth2grant-remove.js +1 -0
  71. package/dist/m365/entra/commands/oauth2grant/oauth2grant-set.js +1 -0
  72. package/dist/m365/entra/commands/policy/policy-list.js +1 -0
  73. package/dist/m365/entra/commands/siteclassification/siteclassification-disable.js +1 -0
  74. package/dist/m365/entra/commands/siteclassification/siteclassification-enable.js +1 -0
  75. package/dist/m365/entra/commands/siteclassification/siteclassification-get.js +1 -0
  76. package/dist/m365/entra/commands/siteclassification/siteclassification-set.js +1 -0
  77. package/dist/m365/entra/commands/user/user-add.js +1 -0
  78. package/dist/m365/entra/commands/user/user-get.js +1 -0
  79. package/dist/m365/entra/commands/user/user-guest-add.js +1 -0
  80. package/dist/m365/entra/commands/user/user-hibp.js +1 -0
  81. package/dist/m365/entra/commands/user/user-license-add.js +1 -0
  82. package/dist/m365/entra/commands/user/user-license-list.js +1 -0
  83. package/dist/m365/entra/commands/user/user-license-remove.js +1 -0
  84. package/dist/m365/entra/commands/user/user-list.js +1 -0
  85. package/dist/m365/entra/commands/user/user-password-validate.js +1 -0
  86. package/dist/m365/entra/commands/user/user-recyclebinitem-clear.js +1 -0
  87. package/dist/m365/entra/commands/user/user-recyclebinitem-list.js +1 -0
  88. package/dist/m365/entra/commands/user/user-recyclebinitem-remove.js +2 -1
  89. package/dist/m365/entra/commands/user/user-recyclebinitem-restore.js +1 -0
  90. package/dist/m365/entra/commands/user/user-remove.js +1 -0
  91. package/dist/m365/entra/commands/user/user-set.js +1 -0
  92. package/dist/m365/entra/commands/user/user-signin-list.js +1 -0
  93. package/dist/m365/outlook/commands/message/message-remove.js +113 -0
  94. package/dist/m365/outlook/commands.js +1 -0
  95. package/dist/m365/pp/commands/managementapp/managementapp-add.js +7 -7
  96. package/dist/m365/spfx/commands/project/DeployWorkflow.js +111 -0
  97. package/dist/m365/spfx/commands/project/project-azuredevops-pipeline-add.js +183 -0
  98. package/dist/m365/spfx/commands/project/project-azuredevops-pipeline-model.js +2 -0
  99. package/dist/m365/spfx/commands/project/project-github-workflow-add.js +6 -4
  100. package/dist/m365/spfx/commands.js +1 -0
  101. package/dist/m365/spo/commands/folder/FolderColor.js +19 -0
  102. package/dist/m365/spo/commands/folder/folder-add.js +46 -17
  103. package/dist/m365/spo/commands/folder/folder-set.js +118 -0
  104. package/dist/m365/spo/commands/group/group-member-add.js +2 -2
  105. package/dist/m365/spo/commands/group/group-member-remove.js +1 -1
  106. package/dist/m365/spo/commands/site/site-apppermission-add.js +2 -2
  107. package/dist/m365/spo/commands/site/site-recyclebinitem-restore.js +66 -27
  108. package/dist/m365/spo/commands/tenant/tenant-settings-set.js +1 -1
  109. package/dist/m365/spo/commands/user/user-remove.js +93 -16
  110. package/dist/m365/spo/commands.js +1 -0
  111. package/dist/m365/teams/commands/report/report-directroutingcalls.js +3 -0
  112. package/dist/m365/teams/commands/report/report-pstncalls.js +3 -0
  113. package/dist/m365/teams/commands/tab/tab-get.js +1 -1
  114. package/dist/m365/teams/commands/team/team-add.js +132 -3
  115. package/dist/m365/tenant/commands/report/report-office365activationcounts.js +3 -0
  116. package/dist/m365/tenant/commands/report/report-office365activationsusercounts.js +3 -0
  117. package/dist/m365/tenant/commands/report/report-office365activationsuserdetail.js +3 -0
  118. package/dist/utils/entraUser.js +36 -0
  119. package/dist/utils/spo.js +1 -1
  120. package/docs/docs/cmd/app/app-get.mdx +10 -10
  121. package/docs/docs/cmd/app/app-open.mdx +6 -6
  122. package/docs/docs/cmd/app/permission/permission-add.mdx +2 -2
  123. package/docs/docs/cmd/app/permission/permission-list.mdx +5 -5
  124. package/docs/docs/cmd/cli/cli-consent.mdx +2 -2
  125. package/docs/docs/cmd/cli/cli-reconsent.mdx +6 -6
  126. package/docs/docs/cmd/entra/app/app-permission-add.mdx +6 -6
  127. package/docs/docs/cmd/entra/approleassignment/approleassignment-add.mdx +1 -1
  128. package/docs/docs/cmd/entra/approleassignment/approleassignment-list.mdx +4 -4
  129. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-add.mdx +1 -1
  130. package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-get.mdx +1 -1
  131. package/docs/docs/cmd/entra/group/group-user-add.mdx +7 -7
  132. package/docs/docs/cmd/entra/m365group/m365group-report-activitycounts.mdx +8 -0
  133. package/docs/docs/cmd/entra/m365group/m365group-report-activitydetail.mdx +8 -0
  134. package/docs/docs/cmd/entra/m365group/m365group-report-activityfilecounts.mdx +8 -0
  135. package/docs/docs/cmd/entra/m365group/m365group-report-activitygroupcounts.mdx +8 -0
  136. package/docs/docs/cmd/entra/m365group/m365group-report-activitystorage.mdx +8 -0
  137. package/docs/docs/cmd/entra/oauth2grant/oauth2grant-add.mdx +1 -1
  138. package/docs/docs/cmd/entra/oauth2grant/oauth2grant-list.mdx +1 -1
  139. package/docs/docs/cmd/entra/oauth2grant/oauth2grant-remove.mdx +1 -1
  140. package/docs/docs/cmd/entra/oauth2grant/oauth2grant-set.mdx +1 -1
  141. package/docs/docs/cmd/external/connection/connection-add.mdx +2 -2
  142. package/docs/docs/cmd/file/file-add.mdx +1 -1
  143. package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +2 -2
  144. package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +1 -1
  145. package/docs/docs/cmd/login.mdx +18 -18
  146. package/docs/docs/cmd/onedrive/report/report-activityfilecounts.mdx +8 -0
  147. package/docs/docs/cmd/onedrive/report/report-activityusercounts.mdx +8 -0
  148. package/docs/docs/cmd/onedrive/report/report-activityuserdetail.mdx +8 -0
  149. package/docs/docs/cmd/onedrive/report/report-usageaccountcounts.mdx +8 -0
  150. package/docs/docs/cmd/onedrive/report/report-usageaccountdetail.mdx +8 -0
  151. package/docs/docs/cmd/onedrive/report/report-usagefilecounts.mdx +6 -0
  152. package/docs/docs/cmd/onedrive/report/report-usagestorage.mdx +8 -0
  153. package/docs/docs/cmd/outlook/message/message-remove.mdx +67 -0
  154. package/docs/docs/cmd/outlook/report/report-mailactivitycounts.mdx +8 -0
  155. package/docs/docs/cmd/outlook/report/report-mailactivityusercounts.mdx +8 -0
  156. package/docs/docs/cmd/outlook/report/report-mailactivityuserdetail.mdx +8 -0
  157. package/docs/docs/cmd/outlook/report/report-mailappusageappsusercounts.mdx +7 -0
  158. package/docs/docs/cmd/outlook/report/report-mailappusageusercounts.mdx +8 -0
  159. package/docs/docs/cmd/outlook/report/report-mailappusageuserdetail.mdx +8 -0
  160. package/docs/docs/cmd/outlook/report/report-mailappusageversionsusercounts.mdx +8 -0
  161. package/docs/docs/cmd/outlook/report/report-mailboxusagedetail.mdx +8 -0
  162. package/docs/docs/cmd/outlook/report/report-mailboxusagemailboxcount.mdx +6 -0
  163. package/docs/docs/cmd/outlook/report/report-mailboxusagequotastatusmailboxcounts.mdx +8 -0
  164. package/docs/docs/cmd/outlook/report/report-mailboxusagestorage.mdx +8 -0
  165. package/docs/docs/cmd/pa/app/app-owner-set.mdx +1 -1
  166. package/docs/docs/cmd/pa/app/app-permission-ensure.mdx +3 -3
  167. package/docs/docs/cmd/pa/app/app-permission-remove.mdx +3 -3
  168. package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
  169. package/docs/docs/cmd/planner/roster/roster-add.mdx +5 -5
  170. package/docs/docs/cmd/planner/roster/roster-get.mdx +7 -7
  171. package/docs/docs/cmd/planner/roster/roster-member-add.mdx +4 -4
  172. package/docs/docs/cmd/planner/roster/roster-member-get.mdx +4 -4
  173. package/docs/docs/cmd/planner/roster/roster-member-list.mdx +2 -2
  174. package/docs/docs/cmd/planner/roster/roster-member-remove.mdx +5 -5
  175. package/docs/docs/cmd/planner/roster/roster-plan-list.mdx +1 -1
  176. package/docs/docs/cmd/planner/roster/roster-remove.mdx +2 -2
  177. package/docs/docs/cmd/planner/task/task-add.mdx +1 -1
  178. package/docs/docs/cmd/planner/task/task-get.mdx +1 -1
  179. package/docs/docs/cmd/planner/task/task-list.mdx +1 -1
  180. package/docs/docs/cmd/planner/task/task-remove.mdx +1 -1
  181. package/docs/docs/cmd/planner/task/task-set.mdx +1 -1
  182. package/docs/docs/cmd/pp/environment/environment-get.mdx +1 -1
  183. package/docs/docs/cmd/pp/environment/environment-list.mdx +1 -1
  184. package/docs/docs/cmd/pp/managementapp/managementapp-add.mdx +9 -9
  185. package/docs/docs/cmd/purview/auditlog/auditlog-list.mdx +1 -1
  186. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.mdx +1 -1
  187. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.mdx +1 -1
  188. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-policysettings-list.mdx +1 -1
  189. package/docs/docs/cmd/request.mdx +1 -1
  190. package/docs/docs/cmd/skype/report/report-activitycounts.mdx +8 -0
  191. package/docs/docs/cmd/skype/report/report-activityusercounts.mdx +8 -0
  192. package/docs/docs/cmd/skype/report/report-activityuserdetail.mdx +8 -0
  193. package/docs/docs/cmd/spfx/project/project-azuredevops-pipeline-add.mdx +87 -0
  194. package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +2 -2
  195. package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +3 -3
  196. package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +2 -2
  197. package/docs/docs/cmd/spo/folder/folder-add.mdx +38 -0
  198. package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +1 -1
  199. package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +1 -1
  200. package/docs/docs/cmd/spo/folder/folder-set.mdx +88 -0
  201. package/docs/docs/cmd/spo/group/group-member-add.mdx +2 -2
  202. package/docs/docs/cmd/spo/group/group-member-remove.mdx +3 -3
  203. package/docs/docs/cmd/spo/list/list-roleassignment-add.mdx +3 -3
  204. package/docs/docs/cmd/spo/list/list-roleassignment-remove.mdx +2 -2
  205. package/docs/docs/cmd/spo/listitem/listitem-roleassignment-add.mdx +8 -8
  206. package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.mdx +2 -2
  207. package/docs/docs/cmd/spo/report/report-activityfilecounts.mdx +8 -0
  208. package/docs/docs/cmd/spo/report/report-activitypages.mdx +8 -0
  209. package/docs/docs/cmd/spo/report/report-activityusercounts.mdx +6 -0
  210. package/docs/docs/cmd/spo/report/report-activityuserdetail.mdx +6 -0
  211. package/docs/docs/cmd/spo/report/report-siteusagedetail.mdx +6 -0
  212. package/docs/docs/cmd/spo/report/report-siteusagefilecounts.mdx +6 -0
  213. package/docs/docs/cmd/spo/report/report-siteusagepages.mdx +8 -0
  214. package/docs/docs/cmd/spo/report/report-siteusagesitecounts.mdx +6 -0
  215. package/docs/docs/cmd/spo/report/report-siteusagestorage.mdx +8 -0
  216. package/docs/docs/cmd/spo/site/site-apppermission-add.mdx +2 -2
  217. package/docs/docs/cmd/spo/site/site-apppermission-set.mdx +2 -2
  218. package/docs/docs/cmd/spo/site/site-recyclebinitem-restore.mdx +29 -5
  219. package/docs/docs/cmd/spo/tenant/tenant-settings-set.mdx +89 -89
  220. package/docs/docs/cmd/spo/user/user-ensure.mdx +1 -1
  221. package/docs/docs/cmd/spo/user/user-remove.mdx +40 -9
  222. package/docs/docs/cmd/spo/web/web-roleassignment-add.mdx +3 -3
  223. package/docs/docs/cmd/spo/web/web-roleassignment-remove.mdx +2 -2
  224. package/docs/docs/cmd/teams/channel/channel-member-remove.mdx +1 -1
  225. package/docs/docs/cmd/teams/channel/channel-member-set.mdx +1 -1
  226. package/docs/docs/cmd/teams/chat/chat-member-remove.mdx +3 -3
  227. package/docs/docs/cmd/teams/report/report-deviceusagedistributionusercounts.mdx +8 -0
  228. package/docs/docs/cmd/teams/report/report-deviceusageusercounts.mdx +8 -0
  229. package/docs/docs/cmd/teams/report/report-deviceusageuserdetail.mdx +6 -0
  230. package/docs/docs/cmd/teams/report/report-directroutingcalls.mdx +7 -1
  231. package/docs/docs/cmd/teams/report/report-pstncalls.mdx +7 -1
  232. package/docs/docs/cmd/teams/report/report-useractivitycounts.mdx +8 -0
  233. package/docs/docs/cmd/teams/report/report-useractivityusercounts.mdx +8 -0
  234. package/docs/docs/cmd/teams/report/report-useractivityuserdetail.mdx +8 -0
  235. package/docs/docs/cmd/teams/tab/tab-get.mdx +19 -12
  236. package/docs/docs/cmd/teams/team/team-add.mdx +28 -4
  237. package/docs/docs/cmd/tenant/report/report-activeusercounts.mdx +8 -0
  238. package/docs/docs/cmd/tenant/report/report-activeuserdetail.mdx +6 -0
  239. package/docs/docs/cmd/tenant/report/report-office365activationcounts.mdx +8 -0
  240. package/docs/docs/cmd/tenant/report/report-office365activationsusercounts.mdx +8 -0
  241. package/docs/docs/cmd/tenant/report/report-office365activationsuserdetail.mdx +8 -0
  242. package/docs/docs/cmd/tenant/report/report-servicesusercounts.mdx +8 -0
  243. package/docs/docs/cmd/tenant/security/security-alerts-list.mdx +1 -1
  244. package/docs/docs/cmd/viva/engage/engage-group-list.mdx +1 -1
  245. package/docs/docs/cmd/viva/engage/engage-group-user-add.mdx +1 -1
  246. package/docs/docs/cmd/viva/engage/engage-group-user-remove.mdx +1 -1
  247. package/docs/docs/cmd/viva/engage/engage-message-add.mdx +1 -1
  248. package/docs/docs/cmd/viva/engage/engage-message-get.mdx +1 -1
  249. package/docs/docs/cmd/viva/engage/engage-message-like-set.mdx +1 -1
  250. package/docs/docs/cmd/viva/engage/engage-message-list.mdx +1 -1
  251. package/docs/docs/cmd/viva/engage/engage-message-remove.mdx +1 -1
  252. package/docs/docs/cmd/viva/engage/engage-network-list.mdx +1 -1
  253. package/docs/docs/cmd/viva/engage/engage-report-activitycounts.mdx +8 -0
  254. package/docs/docs/cmd/viva/engage/engage-report-activityusercounts.mdx +8 -0
  255. package/docs/docs/cmd/viva/engage/engage-report-activityuserdetail.mdx +6 -0
  256. package/docs/docs/cmd/viva/engage/engage-report-deviceusagedistributionusercounts.mdx +8 -0
  257. package/docs/docs/cmd/viva/engage/engage-report-deviceusageusercounts.mdx +8 -0
  258. package/docs/docs/cmd/viva/engage/engage-report-deviceusageuserdetail.mdx +6 -0
  259. package/docs/docs/cmd/viva/engage/engage-report-groupsactivitycounts.mdx +8 -0
  260. package/docs/docs/cmd/viva/engage/engage-report-groupsactivitydetail.mdx +6 -0
  261. package/docs/docs/cmd/viva/engage/engage-report-groupsactivitygroupcounts.mdx +8 -0
  262. package/docs/docs/cmd/viva/engage/engage-search.mdx +1 -1
  263. package/docs/docs/cmd/viva/engage/engage-user-get.mdx +1 -1
  264. package/docs/docs/cmd/viva/engage/engage-user-list.mdx +1 -1
  265. package/npm-shrinkwrap.json +62 -58
  266. package/package.json +11 -11
  267. package/dist/m365/spo/commands/folder/folder-rename.js +0 -72
  268. package/docs/docs/cmd/spo/folder/folder-rename.mdx +0 -44
@@ -44,9 +44,9 @@ m365 spfx project github workflow add [options]
44
44
 
45
45
  The `spfx project github workflow add` will create a workflow .yml file in the `.github/workflows` directory in your project. If such directory does not exist the command will automatically create it.
46
46
 
47
- For the `application` login method the command does not register AAD application nor create the required certificate. In order for you to proceed you will need to first obtain (create) a self-signed certificate and register a new AAD application with certificate authentication. After that in GitHub repo settings, you will need to create the following secrets:
47
+ For the `application` login method the command does not register a Microsoft Entra application nor create the required certificate. In order for you to proceed you will need to first obtain (create) a self-signed certificate and register a new Microsoft Entra application with certificate authentication. After that in GitHub repo settings, you will need to create the following secrets:
48
48
 
49
- - `APP_ID` - client id of the registered AAD application
49
+ - `APP_ID` - client id of the registered Microsoft Entra application
50
50
  - `CERTIFICATE_ENCODED` - application's encoded certificate
51
51
  - `CERTIFICATE_PASSWORD` - certificate password. This applies only if the certificate is encoded which is the recommended approach
52
52
 
@@ -26,16 +26,16 @@ m365 spo file roleassignment add [options]
26
26
  : The SharePoint Id of the principal. It may be either a user id or group id to add a role assignment for. Specify either `upn`, `groupName`, or `principalId` but not multiple.
27
27
 
28
28
  `--upn [upn]`
29
- : upn/email of user to assign role to. Specify either `upn`, `groupName`, or `principalId` but not multiple.
29
+ : The upn/email of user to assign role to. Specify either `upn`, `groupName`, or `principalId` but not multiple.
30
30
 
31
31
  `--groupName [groupName]`
32
- : The group name of Azure AD or SharePoint group. Specify either `upn`, `groupName`, or `principalId` but not multiple.
32
+ : The group name of Microsoft Entra or SharePoint group. Specify either `upn`, `groupName`, or `principalId` but not multiple.
33
33
 
34
34
  `--roleDefinitionId [roleDefinitionId]`
35
35
  : ID of role definition. Specify either `roleDefinitionId` or `roleDefinitionName` but not both.
36
36
 
37
37
  `--roleDefinitionName [roleDefinitionName]`
38
- : Enter the name of a role definition, like 'Contribute', 'Read', etc. Specify either `roleDefinitionId` or `roleDefinitionName` but not both.
38
+ : The name of a role definition, like 'Contribute', 'Read', etc. Specify either `roleDefinitionId` or `roleDefinitionName` but not both.
39
39
  ```
40
40
 
41
41
  <Global />
@@ -26,10 +26,10 @@ m365 spo file roleassignment remove [options]
26
26
  : The SharePoint Id of the principal. It may be either a user id or group id. Specify either `upn`, `groupName`, or `principalId` but not multiple.
27
27
 
28
28
  `--upn [upn]`
29
- : Upn/email of the user. Specify either `upn`, `groupName`, or `principalId` but not multiple.
29
+ : The upn/email of the user. Specify either `upn`, `groupName`, or `principalId` but not multiple.
30
30
 
31
31
  `--groupName [groupName]`
32
- : The group name of an Azure AD or SharePoint group. Specify either `upn`, `groupName`, or `principalId` but not multiple.
32
+ : The group name of a Microsoft Entra or SharePoint group. Specify either `upn`, `groupName`, or `principalId` but not multiple.
33
33
 
34
34
  `-f, --force`
35
35
  : Don't prompt for confirmation.
@@ -23,10 +23,36 @@ m365 spo folder add [options]
23
23
 
24
24
  `-n, --name <name>`
25
25
  : Name of the new folder to be created.
26
+
27
+ `--color [color]`
28
+ : Visual color of the folder. Valid values are a color name or a number. Check remarks for more info.
26
29
  ```
27
30
 
28
31
  <Global />
29
32
 
33
+ ## Remarks
34
+
35
+ When you specify a value for `color`, consider the following:
36
+
37
+ | Color | Number value | String value |
38
+ |--------------|--------------|--------------|
39
+ | Yellow | 0 | yellow |
40
+ | Dark red | 1 | darkRed |
41
+ | Dark orange | 2 | darkOrange |
42
+ | Dark green | 3 | darkGreen |
43
+ | Dark teal | 4 | darkTeal |
44
+ | Dark blue | 5 | darkBlue |
45
+ | Dark purple | 6 | darkPurple |
46
+ | Dark pink | 7 | darkPink |
47
+ | Grey | 8 | grey |
48
+ | Light red | 9 | lightRed |
49
+ | Light orange | 10 | lightOrange |
50
+ | Light green | 11 | lightGreen |
51
+ | Light teal | 12 | lightTeal |
52
+ | Light blue | 13 | lightBlue |
53
+ | Light purple | 14 | lightPurple |
54
+ | Light pink | 15 | lightPink |
55
+
30
56
  ## Examples
31
57
 
32
58
  Creates folder in a specific library within the site.
@@ -41,6 +67,18 @@ Creates folder in a specific folder within the site.
41
67
  m365 spo folder add --webUrl https://contoso.sharepoint.com/sites/project-x --parentFolderUrl '/sites/project-x/Shared Documents/Reports' --name 'Financial reports'
42
68
  ```
43
69
 
70
+ Create a folder with a dark blue look
71
+
72
+ ```sh
73
+ m365 spo folder add --webUrl https://contoso.sharepoint.com --parentFolder '/ProjectFiles' --name 'Project-x' --color 5
74
+ ```
75
+
76
+ Create a folder with a light teal look
77
+
78
+ ```sh
79
+ m365 spo folder add --webUrl https://contoso.sharepoint.com --url '/ProjectFiles/Project-x' --color lightTeal
80
+ ```
81
+
44
82
  ## Response
45
83
 
46
84
  <Tabs>
@@ -26,7 +26,7 @@ m365 spo folder roleassignment add [options]
26
26
  : The upn/email of the user. Specify either `upn`, `groupName` or `principalId` but not multiple.
27
27
 
28
28
  `--groupName [groupName]`
29
- : The Azure AD or SharePoint group name. Specify either `upn`, `groupName` or `principalId` but not multiple.
29
+ : The Microsoft Entra or SharePoint group name. Specify either `upn`, `groupName` or `principalId` but not multiple.
30
30
 
31
31
  `--roleDefinitionId [roleDefinitionId]`
32
32
  : ID of the role definition. Specify either `roleDefinitionId` or `roleDefinitionName` but not both.
@@ -26,7 +26,7 @@ m365 spo folder roleassignment remove [options]
26
26
  : The upn/email of the user. Specify either `upn`, `groupName` or `principalId` but not multiple.
27
27
 
28
28
  `--groupName [groupName]`
29
- : The Azure AD or SharePoint group name. Specify either `upn`, `groupName` or `principalId` but not multiple.
29
+ : The Microsoft Entra or SharePoint group name. Specify either `upn`, `groupName` or `principalId` but not multiple.
30
30
 
31
31
  `-f, --force`
32
32
  : Don't prompt for confirmation when removing the role assignment.
@@ -0,0 +1,88 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+
3
+ # spo folder set
4
+
5
+ Updates a folder
6
+
7
+ ## Usage
8
+
9
+ ```sh
10
+ m365 spo folder set [options]
11
+ ```
12
+
13
+ ## Alias
14
+
15
+ ```sh
16
+ m365 spo folder rename [options]
17
+ ```
18
+
19
+ ## Options
20
+
21
+ ```md definition-list
22
+ `-u, --webUrl <webUrl>`
23
+ : The URL of the site where the folder is located.
24
+
25
+ `--url <url>`
26
+ : The server- or site-relative decoded URL of the folder.
27
+
28
+ `-n, --name [name]`
29
+ : New name for the folder.
30
+
31
+ `--color [color]`
32
+ : Visual color of the folder. Valid values are a color name or a number. Check remarks for more info.
33
+ ```
34
+
35
+ <Global />
36
+
37
+ ## Remarks
38
+
39
+ When you specify a value for `color`, consider the following:
40
+
41
+ | Color | Number value | String value |
42
+ |--------------|--------------|--------------|
43
+ | Yellow | 0 | yellow |
44
+ | Dark red | 1 | darkRed |
45
+ | Dark orange | 2 | darkOrange |
46
+ | Dark green | 3 | darkGreen |
47
+ | Dark teal | 4 | darkTeal |
48
+ | Dark blue | 5 | darkBlue |
49
+ | Dark purple | 6 | darkPurple |
50
+ | Dark pink | 7 | darkPink |
51
+ | Grey | 8 | grey |
52
+ | Light red | 9 | lightRed |
53
+ | Light orange | 10 | lightOrange |
54
+ | Light green | 11 | lightGreen |
55
+ | Light teal | 12 | lightTeal |
56
+ | Light blue | 13 | lightBlue |
57
+ | Light purple | 14 | lightPurple |
58
+ | Light pink | 15 | lightPink |
59
+
60
+ ## Examples
61
+
62
+ Set the folder name to 'My Folder 2'
63
+
64
+ ```sh
65
+ m365 spo folder set --webUrl https://contoso.sharepoint.com/sites/project-x --url '/Shared Documents/My Folder 1' --name 'My Folder 2'
66
+ ```
67
+
68
+ Set the folder name to 'My folder 2'
69
+
70
+ ```sh
71
+ m365 spo folder set --webUrl https://contoso.sharepoint.com/sites/project-x --url '/sites/project-x/Shared Documents/My Folder 1' --name 'My Folder 2'
72
+ ```
73
+
74
+ Set the folder color to dark blue
75
+
76
+ ```sh
77
+ m365 spo folder set --webUrl https://contoso.sharepoint.com --url '/ProjectFiles/Project-x' --color 5
78
+ ```
79
+
80
+ Set the folder color to light teal
81
+
82
+ ```sh
83
+ m365 spo folder set --webUrl https://contoso.sharepoint.com --url '/ProjectFiles/Project-x' --color lightTeal
84
+ ```
85
+
86
+ ## Response
87
+
88
+ The command won't return a response on success.
@@ -37,13 +37,13 @@ m365 spo group member add [options]
37
37
  : The object Id of the Entra group to add as a member. If multiple groups need to be added, the Ids have to be comma-separated. Specify either `userIds`, `userNames`, `emails`, `aadGroupIds`, `entraGroupIds`, `aadGroupNames`, or `entraGroupNames`.
38
38
 
39
39
  `--aadGroupIds [aadGroupIds]`
40
- : (deprecated. Use `entraGroupIds` instead) The object Id of the Azure AD group to add as a member. If multiple groups need to be added, the Ids have to be comma-separated. Specify either `userIds`, `userNames`, `emails`, `aadGroupIds`, `entraGroupIds`, `aadGroupNames`, or `entraGroupNames`.
40
+ : (deprecated. Use `entraGroupIds` instead) The object ID of the Microsoft Entra group to add as a member. If multiple groups need to be added, the Ids have to be comma-separated. Specify either `userIds`, `userNames`, `emails`, `aadGroupIds`, `entraGroupIds`, `aadGroupNames`, or `entraGroupNames`.
41
41
 
42
42
  `--entraGroupNames [entraGroupNames]`
43
43
  : The name of the Entra group to add as a member. If multiple groups need to be added, they have to be comma-separated. Specify either `userIds`, `userNames`, `emails`, `aadGroupIds`, `entraGroupIds`, `aadGroupNames`, or `entraGroupNames`.
44
44
 
45
45
  `--aadGroupNames [aadGroupNames]`
46
- : (deprecated. Use `entraGroupNames` instead) The name of the Azure AD group to add as a member. If multiple groups need to be added, they have to be comma-separated. Specify either `userIds`, `userNames`, `emails`, `aadGroupIds`, `entraGroupIds`, `aadGroupNames`, or `entraGroupNames`.
46
+ : (deprecated. Use `entraGroupNames` instead) The name of the Microsoft Entra group to add as a member. If multiple groups need to be added, they have to be comma-separated. Specify either `userIds`, `userNames`, `emails`, `aadGroupIds`, `entraGroupIds`, `aadGroupNames`, or `entraGroupNames`.
47
47
  ```
48
48
 
49
49
  <Global />
@@ -35,13 +35,13 @@ m365 spo group member remove [options]
35
35
  : The object Id of the Entra group to remove as a member. Specify either `userName`, `email`, `userId`, `aadGroupId`, `entraGroupId`, `aadGroupName`, or `entraGroupName`.
36
36
 
37
37
  `--aadGroupId [aadGroupId]`
38
- : (deprecated. Use `entraGroupId` instead) The object Id of the Azure AD group to remove as a member. Specify either `userName`, `email`, `userId`, `aadGroupId`, `entraGroupId`, `aadGroupName`, or `entraGroupName`.
38
+ : (deprecated. Use `entraGroupId` instead) The object ID of the Microsoft Entra group to remove as a member. Specify either `userName`, `email`, `userId`, `aadGroupId`, `entraGroupId`, `aadGroupName`, or `entraGroupName`.
39
39
 
40
40
  `--entraGroupName [entraGroupName]`
41
41
  : The name of the Entra group to remove as a member. Specify either `userName`, `email`, `userId`, `aadGroupId`, `entraGroupId`, `aadGroupName`, or `entraGroupName`.
42
42
 
43
43
  `--aadGroupName [aadGroupName]`
44
- : (deprecated. Use `entraGroupName` instead) The name of the Azure AD group to remove as a member. Specify either `userName`, `email`, `userId`, `aadGroupId`, `entraGroupId`, `aadGroupName`, or `entraGroupName`.
44
+ : (deprecated. Use `entraGroupName` instead) The name of the Microsoft Entra group to remove as a member. Specify either `userName`, `email`, `userId`, `aadGroupId`, `entraGroupId`, `aadGroupName`, or `entraGroupName`.
45
45
  ```
46
46
 
47
47
  <Global />
@@ -69,7 +69,7 @@ m365 spo group member remove --webUrl https://contoso.sharepoint.com/sites/SiteA
69
69
  Remove an Entra group from a SharePoint group based on the Entra group name on a given web.
70
70
 
71
71
  ```sh
72
- m365 spo group member remove --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --entraGroupName "Azure AD Security Group"
72
+ m365 spo group member remove --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --entraGroupName "Microsoft Entra ID Security Group"
73
73
  ```
74
74
 
75
75
  Remove an Entra group from a SharePoint group based on the Entra group ID on a given web.
@@ -29,16 +29,16 @@ m365 spo list roleassignment add [options]
29
29
  : SharePoint ID of principal it may be either user id or group id we want to add permissions to. Specify either `principalId`, `upn`, or `groupName` but not multiple.
30
30
 
31
31
  `--upn [upn]`
32
- : Upn/email of user to assign role to. Specify either `principalId`, `upn`, or `groupName` but not multiple.
32
+ : The upn/email of user to assign role to. Specify either `principalId`, `upn`, or `groupName` but not multiple.
33
33
 
34
34
  `--groupName [groupName]`
35
- : Enter group name of Azure AD or SharePoint group. Specify either `principalId`, `upn`, or `groupName` but not multiple.
35
+ : The group name of Microsoft Entra or SharePoint group. Specify either `principalId`, `upn`, or `groupName` but not multiple.
36
36
 
37
37
  `--roleDefinitionId [roleDefinitionId]`
38
38
  : ID of role definition. Specify either `roleDefinitionId` or `roleDefinitionName` but not both.
39
39
 
40
40
  `--roleDefinitionName [roleDefinitionName]`
41
- : Enter the name of a role definition, like 'Contribute', 'Read', etc. Specify either `roleDefinitionId` or `roleDefinitionName` but not both.
41
+ : The name of a role definition, like 'Contribute', 'Read', etc. Specify either `roleDefinitionId` or `roleDefinitionName` but not both.
42
42
  ```
43
43
 
44
44
  <Global />
@@ -29,10 +29,10 @@ m365 spo list roleassignment remove [options]
29
29
  : SharePoint ID of principal it may be either user id or group id you want to remove permissions. Specify either `principalId`, `upn`, or `groupName` but not multiple.
30
30
 
31
31
  `--upn [upn]`
32
- : upn/email of user. Specify either `principalId`, `upn`, or `groupName` but not multiple.
32
+ : The upn/email of user. Specify either `principalId`, `upn`, or `groupName` but not multiple.
33
33
 
34
34
  `--groupName [groupName]`
35
- : enter group name of Azure AD or SharePoint group. Specify either `principalId`, `upn`, or `groupName` but not multiple.
35
+ : The group name of Microsoft Entra or SharePoint group. Specify either `principalId`, `upn`, or `groupName` but not multiple.
36
36
 
37
37
  `-f, --force`
38
38
  : Don't prompt for confirming removing the role assignment.
@@ -17,31 +17,31 @@ m365 spo listitem roleassignment add [options]
17
17
  : URL of the site where the listitem is located
18
18
 
19
19
  `--listId [listId]`
20
- : ID of the list. Specify either listId, listTitle or listUrl but not multiple.
20
+ : ID of the list. Specify either `listId`, `listTitle` or `listUrl` but not multiple.
21
21
 
22
22
  `--listTitle [listTitle]`
23
- : Title of the list. Specify either listId, listTitle or listUrl but not multiple.
23
+ : Title of the list. Specify either `listId`, `listTitle` or `listUrl` but not multiple.
24
24
 
25
25
  `--listUrl [listUrl]`
26
- : Relative URL of the list. Specify either listId, listTitle or listUrl but not multiple.
26
+ : Relative URL of the list. Specify either `listId`, `listTitle` or `listUrl` but not multiple.
27
27
 
28
28
  `--listItemId <listItemId>`
29
29
  : Id of the listitem to assign the role to.
30
30
 
31
31
  `--principalId [principalId]`
32
- : The SharePoint Id of the principal. It may be either a user id or group id to add a role assignment for. Specify either upn, groupName or principalId.
32
+ : The SharePoint Id of the principal. It may be either a user id or group id to add a role assignment for. Specify either `upn`, `groupName` or `principalId`.
33
33
 
34
34
  `--upn [upn]`
35
- : upn/email of user to assign role to. Specify either upn, groupName or principalId.
35
+ : The upn/email of user to assign role to. Specify either `upn`, `groupName` or `principalId`.
36
36
 
37
37
  `--groupName [groupName]`
38
- : The group name of Azure AD or SharePoint group. Specify either upn, groupName or principalId.
38
+ : The group name of Microsoft Entra or SharePoint group. Specify either `upn`, `groupName` or `principalId`.
39
39
 
40
40
  `--roleDefinitionId [roleDefinitionId]`
41
- : ID of role definition. Specify either roleDefinitionId or roleDefinitionName but not both
41
+ : ID of role definition. Specify either `roleDefinitionId` or `roleDefinitionName` but not both.
42
42
 
43
43
  `--roleDefinitionName [roleDefinitionName]`
44
- : Enter the name of a role definition, like 'Contribute', 'Read', etc. Specify either roleDefinitionId or roleDefinitionName but not both
44
+ : The name of a role definition, like 'Contribute', 'Read', etc. Specify either `roleDefinitionId` or `roleDefinitionName` but not both.
45
45
  ```
46
46
 
47
47
  <Global />
@@ -32,10 +32,10 @@ m365 spo listitem roleassignment remove [options]
32
32
  : SharePoint ID of principal it may be either user id or group id we want to remove permissions. Specify either `principalId`, `upn`, or `groupName` but not multiple.
33
33
 
34
34
  `--upn [upn]`
35
- : upn/email of user. Specify either `principalId`, `upn`, or `groupName` but not multiple.
35
+ : The upn/email of user. Specify either `principalId`, `upn`, or `groupName` but not multiple.
36
36
 
37
37
  `--groupName [groupName]`
38
- : enter group name of Azure AD or SharePoint group. Specify either `principalId`, `upn`, or `groupName` but not multiple.
38
+ : The group name of Microsoft Entra or SharePoint group. Specify either `principalId`, `upn`, or `groupName` but not multiple.
39
39
 
40
40
  `-f, --force`
41
41
  : Don't prompt for confirming removing the role assignment.
@@ -21,6 +21,14 @@ m365 spo report activityfilecounts [options]
21
21
 
22
22
  <Global />
23
23
 
24
+ ## Remarks
25
+
26
+ :::info
27
+
28
+ This command supports only csv and json output.
29
+
30
+ :::
31
+
24
32
  ## Examples
25
33
 
26
34
  Gets the number of unique, licensed users who interacted with files stored on SharePoint sites for the last week
@@ -21,6 +21,14 @@ m365 spo report activitypages [options]
21
21
 
22
22
  <Global />
23
23
 
24
+ ## Remarks
25
+
26
+ :::info
27
+
28
+ This command supports only csv and json output.
29
+
30
+ :::
31
+
24
32
  ## Examples
25
33
 
26
34
  Gets the number of unique pages visited by users for the last week
@@ -25,6 +25,12 @@ m365 spo report activityusercounts [options]
25
25
 
26
26
  A user is considered active if he or she has executed a file activity (save, sync, modify, or share) or visited a page within the specified time period
27
27
 
28
+ :::info
29
+
30
+ This command supports only csv and json output.
31
+
32
+ :::
33
+
28
34
  ## Examples
29
35
 
30
36
  Gets the trend in the number of active users for the last week
@@ -28,6 +28,12 @@ m365 spo report activityuserdetail [options]
28
28
 
29
29
  As this report is only available for the past 28 days, date parameter value should be a date from that range.
30
30
 
31
+ :::info
32
+
33
+ This command supports only csv and json output.
34
+
35
+ :::
36
+
31
37
  ## Examples
32
38
 
33
39
  Gets details about SharePoint activity by user for the last week
@@ -28,6 +28,12 @@ m365 spo report siteusagedetail [options]
28
28
 
29
29
  As this report is only available for the past 28 days, date parameter value should be a date from that range.
30
30
 
31
+ :::info
32
+
33
+ This command supports only csv and json output.
34
+
35
+ :::
36
+
31
37
  ## Examples
32
38
 
33
39
  Gets details about SharePoint site usage for the last week
@@ -25,6 +25,12 @@ m365 spo report siteusagefilecounts [options]
25
25
 
26
26
  A file (user or system) is considered active if it has been saved, synced, modified, or shared within the specified time period.
27
27
 
28
+ :::info
29
+
30
+ This command supports only csv and json output.
31
+
32
+ :::
33
+
28
34
  ## Examples
29
35
 
30
36
  Get the total number of files across all sites and the number of active files for the last week
@@ -21,6 +21,14 @@ m365 spo report siteusagepages [options]
21
21
 
22
22
  <Global />
23
23
 
24
+ ## Remarks
25
+
26
+ :::info
27
+
28
+ This command supports only csv and json output.
29
+
30
+ :::
31
+
24
32
  ## Examples
25
33
 
26
34
  Gets the number of pages viewed across all sites for the last week
@@ -25,6 +25,12 @@ m365 spo report siteusagesitecounts [options]
25
25
 
26
26
  A file (user or system) is considered active if it has been saved, synced, modified, or shared within the specified time period.
27
27
 
28
+ :::info
29
+
30
+ This command supports only csv and json output.
31
+
32
+ :::
33
+
28
34
  ## Examples
29
35
 
30
36
  Gets the total number of files across all sites and the number of active files for the last week
@@ -21,6 +21,14 @@ m365 spo report siteusagestorage [options]
21
21
 
22
22
  <Global />
23
23
 
24
+ ## Remarks
25
+
26
+ :::info
27
+
28
+ This command supports only csv and json output.
29
+
30
+ :::
31
+
24
32
  ## Examples
25
33
 
26
34
  Gets the trend of storage allocated and consumed during the last week
@@ -22,10 +22,10 @@ m365 spo site apppermission add [options]
22
22
  : Permission to site (`read`, `write`, `manage` or `fullcontrol`)
23
23
 
24
24
  `-i, --appId [appId]`
25
- : Client ID of the Azure AD app for which to grant permissions
25
+ : Client ID of the Microsoft Entra app for which to grant permissions
26
26
 
27
27
  `-n, --appDisplayName [appDisplayName]`
28
- : Display name of the Azure AD app for which to grant permissions
28
+ : Display name of the Microsoft Entra app for which to grant permissions
29
29
  ```
30
30
 
31
31
  <Global />
@@ -22,10 +22,10 @@ m365 spo site apppermission set [options]
22
22
  : ID of the permission to update. Specify `id`, `appId` or `appDisplayName`
23
23
 
24
24
  `--appId [appId]`
25
- : Client ID of the Azure AD app for which to update permissions. Specify `id`, `appId` or `appDisplayName`
25
+ : Client ID of the Microsoft Entra app for which to update permissions. Specify `id`, `appId` or `appDisplayName`
26
26
 
27
27
  `-n, --appDisplayName [appDisplayName]`
28
- : Display name of the Azure AD app for which to update permissions. Specify `id`, `appId` or `appDisplayName`
28
+ : Display name of the Microsoft Entra app for which to update permissions. Specify `id`, `appId` or `appDisplayName`
29
29
 
30
30
  `-p, --permission <permission>`
31
31
  : Permission to site (`read`, `write`, `manage` or `fullcontrol`)
@@ -14,20 +14,44 @@ m365 spo site recyclebinitem restore [options]
14
14
 
15
15
  ```md definition-list
16
16
  `-u, --siteUrl <siteUrl>`
17
- : URL of the site for which to restore the recycle bin items
17
+ : URL of the site.
18
18
 
19
- `-i, --ids <ids>`
20
- : List of ids of items which will be restored from the site recycle bin
19
+ `-i, --ids [ids]`
20
+ : List of ids of items which will be restored from the site recycle bin. Specify `ids` or `allPrimary` and/or `allSecondary`.
21
+
22
+ `--allPrimary`
23
+ : Restore all items from the first-stage recycle bin. Specify `ids` or `allPrimary` and/or `allSecondary`.
24
+
25
+ `--allSecondary`
26
+ : Restore all items from the second-stage recycle bin. Specify `ids` or `allPrimary` and/or `allSecondary`.
21
27
  ```
22
28
 
23
29
  <Global />
24
30
 
25
31
  ## Examples
26
32
 
27
- Restore specific items by given ids from recycle bin for site _https://contoso.sharepoint.com/site_
33
+ Restore specific items by given ids from recycle bin of given site.
34
+
35
+ ```sh
36
+ m365 spo site recyclebinitem restore --siteUrl https://contoso.sharepoint.com/sites/project --ids "ae6f97a7-280e-48d6-b481-0ea986c323da,aadbf916-1f71-42ee-abf2-8ee4802ae291"
37
+ ```
38
+
39
+ Restore all items from the first-stage recycle bin of a given site.
40
+
41
+ ```sh
42
+ m365 spo site recyclebinitem restore --siteUrl https://contoso.sharepoint.com/sites/project --allPrimary
43
+ ```
44
+
45
+ Restore all items from the second-stage recycle bin of a given site.
46
+
47
+ ```sh
48
+ m365 spo site recyclebinitem restore --siteUrl https://contoso.sharepoint.com --allSecondary
49
+ ```
50
+
51
+ Restore all items from both the first-stage and second-stage recycle bins of a given site.
28
52
 
29
53
  ```sh
30
- m365 spo site recyclebinitem restore --siteUrl https://contoso.sharepoint.com/site --ids "ae6f97a7-280e-48d6-b481-0ea986c323da,aadbf916-1f71-42ee-abf2-8ee4802ae291"
54
+ m365 spo site recyclebinitem restore --siteUrl https://contoso.sharepoint.com --allPrimary --allSecondary
31
55
  ```
32
56
 
33
57
  ## Response