@pnp/cli-microsoft365 11.9.0-beta.8c1ee05 → 11.9.0-beta.9bd71dd

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 (153) hide show
  1. package/.devcontainer/Dockerfile +2 -2
  2. package/.devproxy/api-specs/sharepoint.yaml +166 -0
  3. package/allCommands.json +1 -1
  4. package/allCommandsFull.json +1 -1
  5. package/dist/m365/cli/commands/app/app-reconsent.js +8 -0
  6. package/dist/m365/cli/commands/cli-consent.js +8 -31
  7. package/dist/m365/cli/commands/cli-doctor.js +6 -1
  8. package/dist/m365/cli/commands/cli-issue.js +8 -36
  9. package/dist/m365/cli/commands/completion/completion-clink-update.js +8 -0
  10. package/dist/m365/cli/commands/completion/completion-pwsh-setup.js +8 -16
  11. package/dist/m365/cli/commands/completion/completion-pwsh-update.js +8 -0
  12. package/dist/m365/cli/commands/completion/completion-sh-setup.js +8 -0
  13. package/dist/m365/cli/commands/completion/completion-sh-update.js +8 -0
  14. package/dist/m365/cli/commands/config/config-get.js +9 -32
  15. package/dist/m365/cli/commands/config/config-list.js +8 -0
  16. package/dist/m365/cli/commands/config/config-reset.js +9 -34
  17. package/dist/m365/cli/commands/config/config-set.js +86 -70
  18. package/dist/m365/commands/request.js +26 -60
  19. package/dist/m365/commands/search.js +59 -77
  20. package/dist/m365/commands/setup.js +16 -31
  21. package/dist/m365/commands/version.js +6 -0
  22. package/dist/m365/connection/commands/connection-remove.js +9 -29
  23. package/dist/m365/connection/commands/connection-use.js +8 -26
  24. package/dist/m365/context/commands/context-init.js +6 -0
  25. package/dist/m365/context/commands/option/option-set.js +9 -18
  26. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-add.js +32 -63
  27. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-get.js +21 -45
  28. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-list.js +32 -53
  29. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-remove.js +34 -74
  30. package/dist/m365/entra/commands/administrativeunit/administrativeunit-roleassignment-add.js +37 -57
  31. package/dist/m365/entra/commands/approleassignment/approleassignment-add.js +23 -48
  32. package/dist/m365/entra/commands/approleassignment/approleassignment-list.js +20 -43
  33. package/dist/m365/entra/commands/approleassignment/approleassignment-remove.js +24 -51
  34. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-add.js +20 -43
  35. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-get.js +20 -43
  36. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-list.js +9 -25
  37. package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-remove.js +21 -50
  38. package/dist/m365/entra/commands/groupsetting/groupsetting-add.js +9 -25
  39. package/dist/m365/entra/commands/groupsetting/groupsetting-get.js +8 -24
  40. package/dist/m365/entra/commands/groupsetting/groupsetting-list.js +6 -0
  41. package/dist/m365/entra/commands/groupsetting/groupsetting-remove.js +9 -33
  42. package/dist/m365/entra/commands/groupsetting/groupsetting-set.js +8 -24
  43. package/dist/m365/entra/commands/groupsettingtemplate/groupsettingtemplate-get.js +19 -38
  44. package/dist/m365/entra/commands/groupsettingtemplate/groupsettingtemplate-list.js +6 -0
  45. package/dist/m365/entra/commands/multitenant/multitenant-get.js +8 -1
  46. package/dist/m365/entra/commands/multitenant/multitenant-remove.js +8 -22
  47. package/dist/m365/entra/commands/multitenant/multitenant-set.js +15 -36
  48. package/dist/m365/entra/commands/oauth2grant/oauth2grant-add.js +10 -31
  49. package/dist/m365/entra/commands/oauth2grant/oauth2grant-list.js +8 -24
  50. package/dist/m365/entra/commands/oauth2grant/oauth2grant-remove.js +9 -17
  51. package/dist/m365/entra/commands/oauth2grant/oauth2grant-set.js +9 -17
  52. package/dist/m365/entra/commands/pim/pim-role-assignment-add.js +68 -114
  53. package/dist/m365/entra/commands/pim/pim-role-assignment-eligibility-list.js +28 -55
  54. package/dist/m365/entra/commands/pim/pim-role-assignment-list.js +30 -57
  55. package/dist/m365/entra/commands/pim/pim-role-assignment-remove.js +50 -90
  56. package/dist/m365/entra/commands/pim/pim-role-request-list.js +36 -69
  57. package/dist/m365/entra/commands/policy/policy-list.js +13 -56
  58. package/dist/m365/entra/commands/user/user-add.js +39 -118
  59. package/dist/m365/entra/commands/user/user-get.js +24 -49
  60. package/dist/m365/entra/commands/user/user-groupmembership-list.js +25 -48
  61. package/dist/m365/entra/commands/user/user-guest-add.js +14 -39
  62. package/dist/m365/entra/commands/user/user-hibp.js +12 -34
  63. package/dist/m365/entra/commands/user/user-license-add.js +23 -42
  64. package/dist/m365/entra/commands/user/user-license-list.js +21 -42
  65. package/dist/m365/entra/commands/user/user-license-remove.js +25 -47
  66. package/dist/m365/entra/commands/user/user-list.js +12 -39
  67. package/dist/m365/entra/commands/user/user-password-validate.js +8 -15
  68. package/dist/m365/entra/commands/user/user-recyclebinitem-clear.js +8 -22
  69. package/dist/m365/entra/commands/user/user-recyclebinitem-remove.js +9 -33
  70. package/dist/m365/entra/commands/user/user-recyclebinitem-restore.js +8 -24
  71. package/dist/m365/entra/commands/user/user-registrationdetails-list.js +43 -113
  72. package/dist/m365/entra/commands/user/user-remove.js +22 -42
  73. package/dist/m365/entra/commands/user/user-set.js +69 -149
  74. package/dist/m365/entra/commands/user/user-signin-list.js +22 -51
  75. package/dist/m365/external/commands/connection/connection-add.js +40 -65
  76. package/dist/m365/external/commands/connection/connection-doctor.js +14 -30
  77. package/dist/m365/external/commands/connection/connection-get.js +19 -28
  78. package/dist/m365/external/commands/connection/connection-remove.js +20 -25
  79. package/dist/m365/external/commands/connection/connection-schema-add.js +53 -42
  80. package/dist/m365/external/commands/connection/connection-urltoitemresolver-add.js +12 -23
  81. package/dist/m365/external/commands/item/item-add.js +37 -60
  82. package/dist/m365/file/commands/convert/convert-pdf.js +18 -33
  83. package/dist/m365/file/commands/file-add.js +28 -34
  84. package/dist/m365/file/commands/file-copy.js +18 -34
  85. package/dist/m365/file/commands/file-list.js +18 -24
  86. package/dist/m365/file/commands/file-move.js +22 -35
  87. package/dist/m365/flow/commands/flow-disable.js +10 -26
  88. package/dist/m365/flow/commands/flow-enable.js +10 -26
  89. package/dist/m365/flow/commands/flow-export.js +45 -71
  90. package/dist/m365/flow/commands/flow-get.js +10 -26
  91. package/dist/m365/flow/commands/flow-list.js +17 -48
  92. package/dist/m365/flow/commands/flow-remove.js +11 -38
  93. package/dist/m365/flow/commands/owner/owner-ensure.js +30 -65
  94. package/dist/m365/flow/commands/owner/owner-list.js +10 -35
  95. package/dist/m365/flow/commands/owner/owner-remove.js +30 -61
  96. package/dist/m365/flow/commands/run/run-cancel.js +11 -37
  97. package/dist/m365/flow/commands/run/run-get.js +12 -43
  98. package/dist/m365/flow/commands/run/run-list.js +29 -61
  99. package/dist/m365/flow/commands/run/run-resubmit.js +11 -37
  100. package/dist/m365/graph/commands/changelog/changelog-list.js +68 -67
  101. package/dist/m365/graph/commands/schemaextension/schemaextension-add.js +25 -31
  102. package/dist/m365/graph/commands/schemaextension/schemaextension-get.js +8 -15
  103. package/dist/m365/graph/commands/schemaextension/schemaextension-list.js +26 -50
  104. package/dist/m365/graph/commands/schemaextension/schemaextension-remove.js +9 -24
  105. package/dist/m365/graph/commands/schemaextension/schemaextension-set.js +32 -53
  106. package/dist/m365/graph/commands/subscription/subscription-add.js +63 -89
  107. package/dist/m365/outlook/commands/calendar/calendar-get.js +1 -1
  108. package/dist/m365/outlook/commands/calendar/calendar-list.js +64 -0
  109. package/dist/m365/outlook/commands/mail/mail-send.js +55 -84
  110. package/dist/m365/outlook/commands/message/message-get.js +27 -27
  111. package/dist/m365/outlook/commands/message/message-list.js +53 -80
  112. package/dist/m365/outlook/commands/message/message-move.js +43 -40
  113. package/dist/m365/outlook/commands/message/message-remove.js +17 -45
  114. package/dist/m365/outlook/commands.js +1 -0
  115. package/dist/m365/spe/commands/container/container-get.js +54 -26
  116. package/dist/m365/spe/commands/container/container-permission-list.js +43 -4
  117. package/dist/m365/spe/commands/container/container-set.js +77 -0
  118. package/dist/m365/spe/commands.js +1 -0
  119. package/dist/m365/spo/commands/file/file-unarchive.js +83 -0
  120. package/dist/m365/spo/commands/folder/folder-archive.js +89 -0
  121. package/dist/m365/spo/commands/list/list-sensitivitylabel-remove.js +83 -0
  122. package/dist/m365/spo/commands.js +3 -0
  123. package/dist/m365/viva/commands/engage/engage-role-member-add.js +79 -0
  124. package/dist/m365/viva/commands.js +1 -0
  125. package/docs/docs/cmd/outlook/calendar/calendar-get.mdx +7 -7
  126. package/docs/docs/cmd/outlook/calendar/calendar-list.mdx +155 -0
  127. package/docs/docs/cmd/spe/container/container-get.mdx +24 -3
  128. package/docs/docs/cmd/spe/container/container-permission-list.mdx +24 -3
  129. package/docs/docs/cmd/spe/container/container-set.mdx +160 -0
  130. package/docs/docs/cmd/spo/app/app-add.mdx +19 -0
  131. package/docs/docs/cmd/spo/app/app-deploy.mdx +21 -0
  132. package/docs/docs/cmd/spo/app/app-get.mdx +19 -0
  133. package/docs/docs/cmd/spo/app/app-install.mdx +21 -0
  134. package/docs/docs/cmd/spo/app/app-instance-list.mdx +19 -0
  135. package/docs/docs/cmd/spo/app/app-list.mdx +19 -0
  136. package/docs/docs/cmd/spo/app/app-remove.mdx +21 -0
  137. package/docs/docs/cmd/spo/app/app-retract.mdx +21 -0
  138. package/docs/docs/cmd/spo/app/app-teamspackage-download.mdx +21 -0
  139. package/docs/docs/cmd/spo/app/app-uninstall.mdx +21 -0
  140. package/docs/docs/cmd/spo/app/app-upgrade.mdx +21 -0
  141. package/docs/docs/cmd/spo/apppage/apppage-add.mdx +19 -1
  142. package/docs/docs/cmd/spo/apppage/apppage-set.mdx +21 -0
  143. package/docs/docs/cmd/spo/commandset/commandset-add.mdx +19 -0
  144. package/docs/docs/cmd/spo/commandset/commandset-get.mdx +19 -0
  145. package/docs/docs/cmd/spo/commandset/commandset-list.mdx +19 -0
  146. package/docs/docs/cmd/spo/commandset/commandset-remove.mdx +21 -0
  147. package/docs/docs/cmd/spo/commandset/commandset-set.mdx +21 -0
  148. package/docs/docs/cmd/spo/file/file-unarchive.mdx +68 -0
  149. package/docs/docs/cmd/spo/folder/folder-archive.mdx +73 -0
  150. package/docs/docs/cmd/spo/list/list-sensitivitylabel-remove.mdx +77 -0
  151. package/docs/docs/cmd/viva/engage/engage-role-member-add.mdx +76 -0
  152. package/npm-shrinkwrap.json +280 -128
  153. package/package.json +18 -18
@@ -0,0 +1,155 @@
1
+ import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # outlook calendar list
6
+
7
+ Retrieves a list of all calendars of a user or a group.
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 outlook calendar list [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `--userId [userId]`
19
+ : ID of the user. Specify either `userId` or `userName`, but not both.
20
+
21
+ `--userName [userName]`
22
+ : UPN of the user. Specify either `userId` or `userName`, but not both.
23
+
24
+ `--calendarGroupId [calendarGroupId]`
25
+ : ID of the calendar group. Specify either `calendarGroupId` or `calendarGroupName`, but not both.
26
+
27
+ `--calendarGroupName [calendarGroupName]`
28
+ : Name of the calendar group. Specify either `calendarGroupId` or `calendarGroupName`, but not both.
29
+ ```
30
+
31
+ <Global />
32
+
33
+ ## Permissions
34
+
35
+ <Tabs>
36
+ <TabItem value="Delegated">
37
+
38
+ | Resource | Permissions |
39
+ |-----------------|-----------------|
40
+ | Microsoft Graph | Calendars.Read |
41
+
42
+ </TabItem>
43
+ <TabItem value="Application">
44
+
45
+ | Resource | Permissions |
46
+ |-----------------|-----------------|
47
+ | Microsoft Graph | Calendars.Read |
48
+
49
+ </TabItem>
50
+ </Tabs>
51
+
52
+ ## Examples
53
+
54
+ List all calendars for the current signed-in user.
55
+
56
+ ```sh
57
+ m365 outlook calendar list --userId "@meId"
58
+ ```
59
+
60
+ List all calendars in a specific calendar group for the current signed-in user.
61
+
62
+ ```sh
63
+ m365 outlook calendar list --userId "@meId" --calendarGroupName "Colleague calendars"
64
+ ```
65
+
66
+ List all calendars for a specific user.
67
+
68
+ ```sh
69
+ m365 outlook calendar list --userName "john.doe@contoso.com"
70
+ ```
71
+
72
+ List all calendars from a specific calendar group for a specific user.
73
+
74
+ ```sh
75
+ m365 outlook calendar list --userId b743445a-112c-4fda-9afd-05943f9c7b36 --calendarGroupId "AAMkADIxYjJiYmIzLTFmNjYtNGNhMy0YOkcEEh3vhfAAAGgdFjAAA="
76
+ ```
77
+
78
+ ## Response
79
+
80
+ <Tabs>
81
+ <TabItem value="JSON">
82
+
83
+ ```json
84
+ [
85
+ {
86
+ "id": "AAMkAGI2MDc2YzA0LWQwNTktNGM5Ni05M2VkLWY3NjFkNTUxOTkyZABGAAAAAABeGJMObKvfQbq5qwfGa7kTBwAopDdmUXY8TaLJk5CCLo4zAAAAAAEGAAAopDdmUXY8TaLJk5CCLo4zAAAAAFS0AAA=",
87
+ "name": "Calendar",
88
+ "color": "auto",
89
+ "hexColor": "",
90
+ "groupClassId": "0006f0b7-0000-0000-c000-000000000046",
91
+ "isDefaultCalendar": true,
92
+ "changeKey": "KKQ3ZlF2PE2iyZOQgi6OMwAAAAADcg==",
93
+ "canShare": true,
94
+ "canViewPrivateItems": true,
95
+ "canEdit": true,
96
+ "allowedOnlineMeetingProviders": [
97
+ "teamsForBusiness"
98
+ ],
99
+ "defaultOnlineMeetingProvider": "teamsForBusiness",
100
+ "isTallyingResponses": true,
101
+ "isRemovable": false,
102
+ "owner": {
103
+ "name": "John Doe",
104
+ "address": "john.doe@contoso.com"
105
+ }
106
+ }
107
+ ]
108
+ ```
109
+
110
+ </TabItem>
111
+ <TabItem value="Text">
112
+
113
+ ```text
114
+ id name
115
+ -------------------------------------------------------------------------------------------------------------------------------------------------------- ----------------------
116
+ AAMkAGI2MDc2YzA0LWQwNTktNGM5Ni05M2VkLWY3NjFkNTUxOTkyZABGAAAAAABeGJMObKvfQbq5qwfGa7kTBwAopDdmUXY8TaLJk5CCLo4zAAAAAAEGAAAopDdmUXY8TaLJk5CCLo4zAAAAAFS0AAA= Calendar
117
+ ```
118
+
119
+ </TabItem>
120
+ <TabItem value="CSV">
121
+
122
+ ```csv
123
+ id,name,color,hexColor,groupClassId,isDefaultCalendar,changeKey,canShare,canViewPrivateItems,canEdit,defaultOnlineMeetingProvider,isTallyingResponses,isRemovable
124
+ AAMkAGI2MDc2YzA0LWQwNTktNGM5Ni05M2VkLWY3NjFkNTUxOTkyZABGAAAAAABeGJMObKvfQbq5qwfGa7kTBwAopDdmUXY8TaLJk5CCLo4zAAAAAAEGAAAopDdmUXY8TaLJk5CCLo4zAAAAAFS0AAA=,Calendar,auto,,0006f0b7-0000-0000-c000-000000000046,1,KKQ3ZlF2PE2iyZOQgi6OMwAAAAADcg==,1,1,1,teamsForBusiness,1,0
125
+ ```
126
+
127
+ </TabItem>
128
+ <TabItem value="Markdown">
129
+
130
+ ```md
131
+ # outlook calendar list --userId "0649d0bd-53dc-4e1d-a357-76f1d92d447b"
132
+
133
+ Date: 5/11/2026
134
+
135
+ ## Calendar (AAMkAGI2MDc2YzA0LWQwNTktNGM5Ni05M2VkLWY3NjFkNTUxOTkyZABGAAAAAABeGJMObKvfQbq5qwfGa7kTBwAopDdmUXY8TaLJk5CCLo4zAAAAAAEGAAAopDdmUXY8TaLJk5CCLo4zAAAAAFS0AAA=)
136
+
137
+ Property | Value
138
+ ---------|-------
139
+ id | AAMkAGI2MDc2YzA0LWQwNTktNGM5Ni05M2VkLWY3NjFkNTUxOTkyZABGAAAAAABeGJMObKvfQbq5qwfGa7kTBwAopDdmUXY8TaLJk5CCLo4zAAAAAAEGAAAopDdmUXY8TaLJk5CCLo4zAAAAAFS0AAA=
140
+ name | Calendar
141
+ color | auto
142
+ hexColor |
143
+ groupClassId | 0006f0b7-0000-0000-c000-000000000046
144
+ isDefaultCalendar | true
145
+ changeKey | KKQ3ZlF2PE2iyZOQgi6OMwAAAAADcg==
146
+ canShare | true
147
+ canViewPrivateItems | true
148
+ canEdit | true
149
+ defaultOnlineMeetingProvider | teamsForBusiness
150
+ isTallyingResponses | true
151
+ isRemovable | false
152
+ ```
153
+
154
+ </TabItem>
155
+ </Tabs>
@@ -15,8 +15,17 @@ m365 spe container get [options]
15
15
  ## Options
16
16
 
17
17
  ```md definition-list
18
- `-i, --id <id>`
19
- : The Id of the container instance.
18
+ `-i, --id [id]`
19
+ : The Id of the container instance. Specify either `id` or `name` but not both.
20
+
21
+ `-n, --name [name]`
22
+ : Display name of the container. Specify either `id` or `name` but not both.
23
+
24
+ `--containerTypeId [containerTypeId]`
25
+ : The container type ID of the container instance. Specify either `containerTypeId` or `containerTypeName` when using `name` but not both.
26
+
27
+ `--containerTypeName [containerTypeName]`
28
+ : The container type name of the container instance. Specify either `containerTypeId` or `containerTypeName` when using `name` but not both.
20
29
  ```
21
30
 
22
31
  <Global />
@@ -42,12 +51,24 @@ m365 spe container get [options]
42
51
 
43
52
  ## Examples
44
53
 
45
- Gets a container of a specific type.
54
+ Gets a container of a specific type by id.
46
55
 
47
56
  ```sh
48
57
  m365 spe container get --id "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z"
49
58
  ```
50
59
 
60
+ Gets a container of a specific type by display name.
61
+
62
+ ```sh
63
+ m365 spe container get --name "My Application Storage Container" --containerTypeId "91710488-5756-407f-9046-fbe5f0b4de73"
64
+ ```
65
+
66
+ Gets container by using its name and container type name.
67
+
68
+ ```sh
69
+ m365 spe container get --name "Invoices" --containerTypeName "My container type name"
70
+ ```
71
+
51
72
  ## Response
52
73
 
53
74
  <Tabs>
@@ -15,8 +15,17 @@ m365 spe container permission list [options]
15
15
  ## Options
16
16
 
17
17
  ```md definition-list
18
- `-i, --containerId <id>`
19
- : The ID of the SharePoint Embedded Container.
18
+ `-i, --containerId [id]`
19
+ : The ID of the SharePoint Embedded Container. Specify either `containerId` or `containerName` but not both.
20
+
21
+ `-n, --containerName [containerName]`
22
+ : Display name of the SharePoint Embedded Container. Specify either `containerId` or `containerName` but not both.
23
+
24
+ `--containerTypeId [containerTypeId]`
25
+ : The container type ID of the container instance. Specify either `containerTypeId` or `containerTypeName` when using `containerName` but not both.
26
+
27
+ `--containerTypeName [containerTypeName]`
28
+ : The container type name of the container instance. Specify either `containerTypeId` or `containerTypeName` when using `containerName` but not both.
20
29
  ```
21
30
 
22
31
  <Global />
@@ -42,12 +51,24 @@ m365 spe container permission list [options]
42
51
 
43
52
  ## Examples
44
53
 
45
- Lists Container permissions.
54
+ Lists Container permissions by id.
46
55
 
47
56
  ```sh
48
57
  m365 spe container permission list --containerId "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z"
49
58
  ```
50
59
 
60
+ Lists Container permissions by display name.
61
+
62
+ ```sh
63
+ m365 spe container permission list --containerName "My Application Storage Container" --containerTypeId "91710488-5756-407f-9046-fbe5f0b4de73"
64
+ ```
65
+
66
+ Lists Container permissions by display name and container type name.
67
+
68
+ ```sh
69
+ m365 spe container permission list --containerName "My Application Storage Container" --containerTypeName "My container type name"
70
+ ```
71
+
51
72
  ## Response
52
73
 
53
74
  <Tabs>
@@ -0,0 +1,160 @@
1
+ import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spe container set
6
+
7
+ Updates a SharePoint Embedded container
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spe container set [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-i, --id <id>`
19
+ : The Id of the container.
20
+
21
+ `--newName [newName]`
22
+ : New display name for the container.
23
+
24
+ `--description [description]`
25
+ : Description of the container.
26
+
27
+ `--isOcrEnabled [isOcrEnabled]`
28
+ : Indicates whether OCR is enabled for the container. Possible values: `true`, `false`.
29
+
30
+ `--isItemVersioningEnabled [isItemVersioningEnabled]`
31
+ : Indicates whether item versioning is enabled. Possible values: `true`, `false`.
32
+
33
+ `--itemMajorVersionLimit [itemMajorVersionLimit]`
34
+ : Maximum number of major versions to keep. Requires versioning to be enabled.
35
+ ```
36
+
37
+ <Global />
38
+
39
+ ## Permissions
40
+
41
+ <Tabs>
42
+ <TabItem value="Delegated">
43
+
44
+ | Resource | Permissions |
45
+ |-----------------|-------------------------------|
46
+ | Microsoft Graph | FileStorageContainer.Selected |
47
+
48
+ </TabItem>
49
+ <TabItem value="Application">
50
+
51
+ | Resource | Permissions |
52
+ |-----------------|-------------------------------|
53
+ | Microsoft Graph | FileStorageContainer.Selected |
54
+
55
+ </TabItem>
56
+ </Tabs>
57
+
58
+ ## Remarks
59
+
60
+ In addition to Graph permissions, the app/user must have container-type level permission for the respective container type. The caller must have write access to the container (for example, writer, manager, or owner role) to update metadata/settings.
61
+
62
+ ## Examples
63
+
64
+ Update the container display name by Id.
65
+
66
+ ```sh
67
+ m365 spe container set --id "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z" --newName "Contoso Project A"
68
+ ```
69
+
70
+ Update description only.
71
+
72
+ ```sh
73
+ m365 spe container set --id "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z" --description "Files for the Contoso Project A team"
74
+ ```
75
+
76
+ Disable OCR for a container.
77
+
78
+ ```sh
79
+ m365 spe container set --id "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z" --isOcrEnabled false
80
+ ```
81
+
82
+ Enable versioning and set the major version limit.
83
+
84
+ ```sh
85
+ m365 spe container set --id "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z" --isItemVersioningEnabled true --itemMajorVersionLimit 100
86
+ ```
87
+
88
+ Update name, description, and settings together.
89
+
90
+ ```sh
91
+ m365 spe container set --id "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z" --newName "Contoso Project A - Phase 2" --description "Phase 2 workspace" --isOcrEnabled true --isItemVersioningEnabled true --itemMajorVersionLimit 50
92
+ ```
93
+
94
+ ## Response
95
+
96
+ <Tabs>
97
+ <TabItem value="JSON">
98
+
99
+ ```json
100
+ {
101
+ "id": "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z",
102
+ "displayName": "Contoso Project A",
103
+ "description": "Files for the Contoso Project A team",
104
+ "containerTypeId": "91710488-5756-407f-9046-fbe5f0b4de73",
105
+ "status": "active",
106
+ "createdDateTime": "2021-11-24T15:41:52.347Z",
107
+ "lockState": "unlocked",
108
+ "settings": {
109
+ "isOcrEnabled": false,
110
+ "itemMajorVersionLimit": 50,
111
+ "isItemVersioningEnabled": true
112
+ }
113
+ }
114
+ ```
115
+
116
+ </TabItem>
117
+ <TabItem value="Text">
118
+
119
+ ```text
120
+ containerTypeId: 91710488-5756-407f-9046-fbe5f0b4de73
121
+ createdDateTime: 2021-11-24T15:41:52.347Z
122
+ description : Files for the Contoso Project A team
123
+ displayName : Contoso Project A
124
+ id : b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z
125
+ lockState : unlocked
126
+ settings : {"isOcrEnabled":false,"itemMajorVersionLimit":50,"isItemVersioningEnabled":true}
127
+ status : active
128
+ ```
129
+
130
+ </TabItem>
131
+ <TabItem value="CSV">
132
+
133
+ ```csv
134
+ id,displayName,description,containerTypeId,status,createdDateTime,lockState
135
+ b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z,Contoso Project A,Files for the Contoso Project A team,91710488-5756-407f-9046-fbe5f0b4de73,active,2021-11-24T15:41:52.347Z,unlocked
136
+ ```
137
+
138
+ </TabItem>
139
+ <TabItem value="Markdown">
140
+
141
+ ```md
142
+ # spe container set --id "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z" --newName "Contoso Project A"
143
+
144
+ Date: 07/04/2026
145
+
146
+ ## Contoso Project A (b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z)
147
+
148
+ Property | Value
149
+ ---------|-------
150
+ id | b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z
151
+ displayName | Contoso Project A
152
+ description | Files for the Contoso Project A team
153
+ containerTypeId | 91710488-5756-407f-9046-fbe5f0b4de73
154
+ status | active
155
+ createdDateTime | 2021-11-24T15:41:52.347Z
156
+ lockState | unlocked
157
+ ```
158
+
159
+ </TabItem>
160
+ </Tabs>
@@ -40,6 +40,25 @@ When specifying site collection app catalog, you can specify the URL either with
40
40
 
41
41
  If you try to upload a package that already exists in the app catalog without specifying the `--overwrite` option, the command will fail with an error stating that the specified package already exists.
42
42
 
43
+ ## Permissions
44
+
45
+ <Tabs>
46
+ <TabItem value="Delegated">
47
+
48
+ | Resource | Permissions |
49
+ |------------|----------------------|
50
+ | SharePoint | AllSites.FullControl |
51
+
52
+ </TabItem>
53
+ <TabItem value="Application">
54
+
55
+ | Resource | Permissions |
56
+ |------------|-----------------------|
57
+ | SharePoint | Sites.FullControl.All |
58
+
59
+ </TabItem>
60
+ </Tabs>
61
+
43
62
  ## Examples
44
63
 
45
64
  Add the package to the tenant app catalog.
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # spo app deploy
4
6
 
@@ -39,6 +41,25 @@ When specifying site collection app catalog, you can specify the URL either with
39
41
 
40
42
  If the app with the specified ID doesn't exist in the app catalog, the command will fail with an error. Before you can deploy an app, you have to add it to the app catalog first using the [spo app add](./app-add.mdx) command.
41
43
 
44
+ ## Permissions
45
+
46
+ <Tabs>
47
+ <TabItem value="Delegated">
48
+
49
+ | Resource | Permissions |
50
+ |------------|----------------------|
51
+ | SharePoint | AllSites.FullControl |
52
+
53
+ </TabItem>
54
+ <TabItem value="Application">
55
+
56
+ | Resource | Permissions |
57
+ |------------|-----------------------|
58
+ | SharePoint | Sites.FullControl.All |
59
+
60
+ </TabItem>
61
+ </Tabs>
62
+
42
63
  ## Examples
43
64
 
44
65
  Deploy the specified app in the tenant app catalog. Try to resolve the URL of the tenant app catalog automatically.
@@ -36,6 +36,25 @@ When getting information about an app from the tenant app catalog, it's not nece
36
36
 
37
37
  When specifying site collection app catalog, you can specify the URL either with our without the _AppCatalog_ part, for example `https://contoso.sharepoint.com/sites/team-a/AppCatalog` or `https://contoso.sharepoint.com/sites/team-a`. CLI will accept both formats.
38
38
 
39
+ ## Permissions
40
+
41
+ <Tabs>
42
+ <TabItem value="Delegated">
43
+
44
+ | Resource | Permissions |
45
+ |------------|---------------|
46
+ | SharePoint | AllSites.Read |
47
+
48
+ </TabItem>
49
+ <TabItem value="Application">
50
+
51
+ | Resource | Permissions |
52
+ |------------|----------------|
53
+ | SharePoint | Sites.Read.All |
54
+
55
+ </TabItem>
56
+ </Tabs>
57
+
39
58
  ## Examples
40
59
 
41
60
  Return details about the app with the specified ID available in the tenant app catalog.
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # spo app install
4
6
 
@@ -29,6 +31,25 @@ m365 spo app install [options]
29
31
 
30
32
  If the app with the specified ID doesn't exist in the app catalog, the command will fail with an error. Before you can install app in a site, you have to add it to the tenant or site collection app catalog first using the [spo app add](./app-add.mdx) command.
31
33
 
34
+ ## Permissions
35
+
36
+ <Tabs>
37
+ <TabItem value="Delegated">
38
+
39
+ | Resource | Permissions |
40
+ |------------|----------------------|
41
+ | SharePoint | AllSites.FullControl |
42
+
43
+ </TabItem>
44
+ <TabItem value="Application">
45
+
46
+ | Resource | Permissions |
47
+ |------------|-----------------------|
48
+ | SharePoint | Sites.FullControl.All |
49
+
50
+ </TabItem>
51
+ </Tabs>
52
+
32
53
  ## Examples
33
54
 
34
55
  Install the app with the specified ID in the specified site.
@@ -21,6 +21,25 @@ m365 spo app instance list [options]
21
21
 
22
22
  <Global />
23
23
 
24
+ ## Permissions
25
+
26
+ <Tabs>
27
+ <TabItem value="Delegated">
28
+
29
+ | Resource | Permissions |
30
+ |------------|---------------|
31
+ | SharePoint | AllSites.Read |
32
+
33
+ </TabItem>
34
+ <TabItem value="Application">
35
+
36
+ | Resource | Permissions |
37
+ |------------|----------------|
38
+ | SharePoint | Sites.Read.All |
39
+
40
+ </TabItem>
41
+ </Tabs>
42
+
24
43
  ## Examples
25
44
 
26
45
  Return a list of installed apps on the specified site.
@@ -32,6 +32,25 @@ When specifying site collection app catalog, you can specify the URL either with
32
32
 
33
33
  When using the text output type (default), the command lists only the values of the `Title`, `ID`, `Deployed` and `AppCatalogVersion` properties of the app. When setting the output type to JSON, all available properties are included in the command output.
34
34
 
35
+ ## Permissions
36
+
37
+ <Tabs>
38
+ <TabItem value="Delegated">
39
+
40
+ | Resource | Permissions |
41
+ |------------|---------------|
42
+ | SharePoint | AllSites.Read |
43
+
44
+ </TabItem>
45
+ <TabItem value="Application">
46
+
47
+ | Resource | Permissions |
48
+ |------------|----------------|
49
+ | SharePoint | Sites.Read.All |
50
+
51
+ </TabItem>
52
+ </Tabs>
53
+
35
54
  ## Examples
36
55
 
37
56
  Return the list of available apps from the tenant app catalog. Show the installed version in the site if applicable.
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # spo app remove
4
6
 
@@ -36,6 +38,25 @@ When specifying site collection app catalog, you can specify the URL either with
36
38
 
37
39
  If the app with the specified ID doesn't exist in the app catalog, the command will fail with an error.
38
40
 
41
+ ## Permissions
42
+
43
+ <Tabs>
44
+ <TabItem value="Delegated">
45
+
46
+ | Resource | Permissions |
47
+ |------------|----------------------|
48
+ | SharePoint | AllSites.FullControl |
49
+
50
+ </TabItem>
51
+ <TabItem value="Application">
52
+
53
+ | Resource | Permissions |
54
+ |------------|-----------------------|
55
+ | SharePoint | Sites.FullControl.All |
56
+
57
+ </TabItem>
58
+ </Tabs>
59
+
39
60
  ## Examples
40
61
 
41
62
  Remove the specified app from the tenant app catalog. Try to resolve the URL of the tenant app catalog automatically. Additionally, will prompt for confirmation before actually retracting the app.
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # spo app retract
4
6
 
@@ -36,6 +38,25 @@ When specifying site collection app catalog, you can specify the URL either with
36
38
 
37
39
  If the app with the specified ID doesn't exist in the app catalog, the command will fail with an error.
38
40
 
41
+ ## Permissions
42
+
43
+ <Tabs>
44
+ <TabItem value="Delegated">
45
+
46
+ | Resource | Permissions |
47
+ |------------|----------------------|
48
+ | SharePoint | AllSites.FullControl |
49
+
50
+ </TabItem>
51
+ <TabItem value="Application">
52
+
53
+ | Resource | Permissions |
54
+ |------------|-----------------------|
55
+ | SharePoint | Sites.FullControl.All |
56
+
57
+ </TabItem>
58
+ </Tabs>
59
+
39
60
  ## Examples
40
61
 
41
62
  Retract the specified app from the tenant app catalog. Try to resolve the URL of the tenant app catalog automatically. Additionally, will prompt for confirmation before actually retracting the app.
@@ -1,4 +1,6 @@
1
1
  import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # spo app teamspackage download
4
6
 
@@ -39,6 +41,25 @@ If you try to download Teams app package for an SPFx solution that doesn't suppo
39
41
 
40
42
  For maximum performance, specify the URL of the tenant app catalog, the item ID (`appItemId`) of the SPFx package for which you want to download the Teams app package and the name of the file where you want to save the downloaded package to (`fileName`).
41
43
 
44
+ ## Permissions
45
+
46
+ <Tabs>
47
+ <TabItem value="Delegated">
48
+
49
+ | Resource | Permissions |
50
+ |------------|---------------|
51
+ | SharePoint | AllSites.Read |
52
+
53
+ </TabItem>
54
+ <TabItem value="Application">
55
+
56
+ | Resource | Permissions |
57
+ |------------|----------------|
58
+ | SharePoint | Sites.Read.All |
59
+
60
+ </TabItem>
61
+ </Tabs>
62
+
42
63
  ## Examples
43
64
 
44
65
  Downloads the Teams app package for the SPFx solution deployed to the tenant app catalog with the specified ID to a file with .zip extension named after the .sppkg file.