@pnp/cli-microsoft365 12.0.0-beta.e4f7675 → 12.0.0-beta.feb621e

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 (188) hide show
  1. package/.devproxy/generate-openapi-spec.json +1 -1
  2. package/allCommands.json +1 -1
  3. package/allCommandsFull.json +1 -1
  4. package/dist/Auth.js +2 -6
  5. package/dist/auth/FileTokenStorage.js +0 -3
  6. package/dist/auth/msalCachePlugin.js +201 -12
  7. package/dist/googleAnalytics.js +96 -0
  8. package/dist/m365/commands/logout.js +2 -4
  9. package/dist/m365/entra/commands/m365group/m365group-remove.js +4 -3
  10. package/dist/m365/spe/commands/container/container-remove.js +6 -7
  11. package/dist/m365/spfx/commands/SpfxCompatibilityMatrix.js +15 -0
  12. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.24.0-rc.0.js +19 -0
  13. package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
  14. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012021_TSC_excludeDirectories.js +43 -0
  15. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN027002_OVERRIDES_qs.js +33 -0
  16. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN027003_OVERRIDES_uuid.js +33 -0
  17. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.24.0-rc.0.js +77 -0
  18. package/dist/m365/spfx/commands/project/project-upgrade.js +12 -11
  19. package/dist/m365/spo/commands/app/app-add.js +35 -56
  20. package/dist/m365/spo/commands/app/app-deploy.js +41 -59
  21. package/dist/m365/spo/commands/app/app-get.js +40 -56
  22. package/dist/m365/spo/commands/app/app-install.js +20 -41
  23. package/dist/m365/spo/commands/app/app-instance-list.js +12 -24
  24. package/dist/m365/spo/commands/app/app-list.js +26 -44
  25. package/dist/m365/spo/commands/app/app-remove.js +32 -52
  26. package/dist/m365/spo/commands/app/app-retract.js +32 -51
  27. package/dist/m365/spo/commands/app/app-teamspackage-download.js +35 -54
  28. package/dist/m365/spo/commands/app/app-uninstall.js +21 -44
  29. package/dist/m365/spo/commands/app/app-upgrade.js +20 -41
  30. package/dist/m365/spo/commands/feature/feature-disable.js +20 -50
  31. package/dist/m365/spo/commands/feature/feature-enable.js +22 -50
  32. package/dist/m365/spo/commands/feature/feature-list.js +11 -36
  33. package/dist/m365/spo/commands/field/field-add.js +33 -62
  34. package/dist/m365/spo/commands/field/field-get.js +30 -57
  35. package/dist/m365/spo/commands/field/field-list.js +21 -46
  36. package/dist/m365/spo/commands/field/field-remove.js +32 -63
  37. package/dist/m365/spo/commands/field/field-set.js +34 -66
  38. package/dist/m365/spo/commands/file/file-archive.js +1 -1
  39. package/dist/m365/spo/commands/file/file-get.js +4 -3
  40. package/dist/m365/spo/commands/file/file-remove.js +5 -5
  41. package/dist/m365/spo/commands/file/file-unarchive.js +1 -1
  42. package/dist/m365/spo/commands/folder/folder-archive.js +1 -1
  43. package/dist/m365/spo/commands/folder/folder-remove.js +5 -5
  44. package/dist/m365/spo/commands/folder/folder-unarchive.js +90 -0
  45. package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-get.js +5 -0
  46. package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-set.js +8 -26
  47. package/dist/m365/spo/commands/homesite/homesite-list.js +5 -0
  48. package/dist/m365/spo/commands/hubsite/hubsite-connect.js +38 -63
  49. package/dist/m365/spo/commands/hubsite/hubsite-data-get.js +11 -27
  50. package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +25 -47
  51. package/dist/m365/spo/commands/hubsite/hubsite-get.js +25 -37
  52. package/dist/m365/spo/commands/hubsite/hubsite-list.js +12 -24
  53. package/dist/m365/spo/commands/hubsite/hubsite-register.js +10 -18
  54. package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +14 -32
  55. package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +12 -29
  56. package/dist/m365/spo/commands/hubsite/hubsite-set.js +19 -46
  57. package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +11 -27
  58. package/dist/m365/spo/commands/list/list-remove.js +4 -4
  59. package/dist/m365/spo/commands/listitem/listitem-batch-remove.js +5 -4
  60. package/dist/m365/spo/commands/listitem/listitem-get.js +1 -12
  61. package/dist/m365/spo/commands/listitem/listitem-remove.js +8 -5
  62. package/dist/m365/spo/commands/navigation/navigation-node-list.js +6 -4
  63. package/dist/m365/spo/commands/page/page-remove.js +7 -7
  64. package/dist/m365/spo/commands/site/site-remove.js +7 -7
  65. package/dist/m365/spo/commands/spo-get.js +5 -0
  66. package/dist/m365/spo/commands/spo-set.js +10 -21
  67. package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +1 -1
  68. package/dist/m365/spo/commands/user/user-ensure.js +24 -60
  69. package/dist/m365/spo/commands/user/user-get.js +25 -65
  70. package/dist/m365/spo/commands/user/user-list.js +10 -18
  71. package/dist/m365/spo/commands/user/user-remove.js +26 -68
  72. package/dist/m365/spo/commands/userprofile/userprofile-get.js +10 -23
  73. package/dist/m365/spo/commands/userprofile/userprofile-set.js +10 -19
  74. package/dist/m365/spo/commands/web/web-add.js +20 -55
  75. package/dist/m365/spo/commands/web/web-clientsidewebpart-list.js +10 -18
  76. package/dist/m365/spo/commands/web/web-get.js +12 -30
  77. package/dist/m365/spo/commands/web/web-installedlanguage-list.js +10 -18
  78. package/dist/m365/spo/commands/web/web-list.js +10 -18
  79. package/dist/m365/spo/commands/web/web-reindex.js +10 -18
  80. package/dist/m365/spo/commands/web/web-remove.js +11 -27
  81. package/dist/m365/spo/commands/web/web-retentionlabel-list.js +10 -18
  82. package/dist/m365/spo/commands/web/web-roleassignment-add.js +40 -64
  83. package/dist/m365/spo/commands/web/web-roleassignment-remove.js +31 -58
  84. package/dist/m365/spo/commands/web/web-roleinheritance-break.js +12 -36
  85. package/dist/m365/spo/commands/web/web-roleinheritance-reset.js +11 -29
  86. package/dist/m365/spo/commands/web/web-rule-get.js +47 -0
  87. package/dist/m365/spo/commands/web/web-rule-list.js +6 -4
  88. package/dist/m365/spo/commands/web/web-rule-remove.js +0 -3
  89. package/dist/m365/spo/commands/web/web-set.js +26 -96
  90. package/dist/m365/spo/commands.js +3 -3
  91. package/dist/m365/teams/commands/channel/channel-add.js +46 -57
  92. package/dist/m365/teams/commands/channel/channel-get.js +41 -48
  93. package/dist/m365/teams/commands/channel/channel-list.js +28 -42
  94. package/dist/m365/teams/commands/channel/channel-member-add.js +53 -54
  95. package/dist/m365/teams/commands/channel/channel-member-list.js +47 -55
  96. package/dist/m365/teams/commands/channel/channel-member-remove.js +62 -62
  97. package/dist/m365/teams/commands/channel/channel-member-set.js +61 -65
  98. package/dist/m365/teams/commands/channel/channel-remove.js +47 -49
  99. package/dist/m365/teams/commands/channel/channel-set.js +47 -54
  100. package/dist/m365/teams/commands/chat/chat-get.js +30 -45
  101. package/dist/m365/teams/commands/chat/chat-list.js +22 -42
  102. package/dist/m365/teams/commands/chat/chat-member-add.js +43 -64
  103. package/dist/m365/teams/commands/chat/chat-member-list.js +10 -23
  104. package/dist/m365/teams/commands/chat/chat-member-remove.js +28 -50
  105. package/dist/m365/teams/commands/chat/chat-message-send.js +32 -55
  106. package/dist/m365/util/commands/accesstoken/accesstoken-get.js +10 -28
  107. package/dist/telemetry.js +7 -11
  108. package/dist/utils/spo.js +1 -3
  109. package/dist/utils/urlUtil.js +2 -2
  110. package/docs/docs/cmd/entra/m365group/m365group-remove.mdx +4 -4
  111. package/docs/docs/cmd/spe/container/container-remove.mdx +5 -5
  112. package/docs/docs/cmd/spo/file/file-archive.mdx +9 -1
  113. package/docs/docs/cmd/spo/file/file-checkin.mdx +2 -2
  114. package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +1 -1
  115. package/docs/docs/cmd/spo/file/file-checkout.mdx +2 -2
  116. package/docs/docs/cmd/spo/file/file-copy.mdx +2 -2
  117. package/docs/docs/cmd/spo/file/file-get.mdx +6 -6
  118. package/docs/docs/cmd/spo/file/file-remove.mdx +4 -4
  119. package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +1 -1
  120. package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +1 -1
  121. package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +1 -1
  122. package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +1 -1
  123. package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +3 -3
  124. package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +2 -2
  125. package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +2 -2
  126. package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +22 -1
  127. package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +24 -1
  128. package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +22 -1
  129. package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +22 -1
  130. package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +24 -1
  131. package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +22 -1
  132. package/docs/docs/cmd/spo/file/file-unarchive.mdx +9 -1
  133. package/docs/docs/cmd/spo/file/file-version-clear.mdx +1 -1
  134. package/docs/docs/cmd/spo/file/file-version-get.mdx +1 -1
  135. package/docs/docs/cmd/spo/file/file-version-keep.mdx +1 -1
  136. package/docs/docs/cmd/spo/file/file-version-list.mdx +1 -1
  137. package/docs/docs/cmd/spo/file/file-version-remove.mdx +1 -1
  138. package/docs/docs/cmd/spo/file/file-version-restore.mdx +1 -1
  139. package/docs/docs/cmd/spo/folder/folder-archive.mdx +7 -1
  140. package/docs/docs/cmd/spo/folder/folder-copy.mdx +1 -1
  141. package/docs/docs/cmd/spo/folder/folder-get.mdx +2 -2
  142. package/docs/docs/cmd/spo/folder/folder-remove.mdx +4 -4
  143. package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +1 -1
  144. package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +1 -1
  145. package/docs/docs/cmd/spo/folder/folder-sharinglink-add.mdx +22 -1
  146. package/docs/docs/cmd/spo/folder/folder-sharinglink-clear.mdx +23 -0
  147. package/docs/docs/cmd/spo/folder/folder-sharinglink-get.mdx +21 -0
  148. package/docs/docs/cmd/spo/folder/folder-sharinglink-list.mdx +22 -1
  149. package/docs/docs/cmd/spo/folder/folder-sharinglink-remove.mdx +24 -1
  150. package/docs/docs/cmd/spo/folder/folder-sharinglink-set.mdx +21 -0
  151. package/docs/docs/cmd/spo/folder/folder-unarchive.mdx +76 -0
  152. package/docs/docs/cmd/spo/list/list-remove.mdx +4 -4
  153. package/docs/docs/cmd/spo/listitem/listitem-batch-remove.mdx +8 -2
  154. package/docs/docs/cmd/spo/listitem/listitem-get.mdx +0 -6
  155. package/docs/docs/cmd/spo/listitem/listitem-remove.mdx +8 -2
  156. package/docs/docs/cmd/spo/navigation/navigation-node-list.mdx +37 -27
  157. package/docs/docs/cmd/spo/page/page-remove.mdx +4 -4
  158. package/docs/docs/cmd/spo/site/site-apppermission-add.mdx +52 -21
  159. package/docs/docs/cmd/spo/site/site-remove.mdx +3 -3
  160. package/docs/docs/cmd/spo/web/web-rule-get.mdx +108 -0
  161. package/docs/docs/cmd/spo/web/web-rule-list.mdx +8 -12
  162. package/docs/docs/cmd/spo/web/web-rule-remove.mdx +0 -6
  163. package/docs/docs/cmd/spp/model/model-get.mdx +1 -1
  164. package/docs/docs/cmd/spp/model/model-remove.mdx +1 -1
  165. package/docs/docs/cmd/teams/app/app-install.mdx +21 -0
  166. package/docs/docs/cmd/teams/app/app-list.mdx +19 -0
  167. package/docs/docs/cmd/teams/app/app-publish.mdx +17 -0
  168. package/docs/docs/cmd/teams/app/app-remove.mdx +19 -0
  169. package/docs/docs/cmd/teams/app/app-uninstall.mdx +21 -0
  170. package/docs/docs/cmd/teams/app/app-update.mdx +19 -0
  171. package/docs/docs/cmd/tenant/people/people-profilecardproperty-add.mdx +19 -0
  172. package/docs/docs/cmd/tenant/people/people-profilecardproperty-get.mdx +19 -0
  173. package/docs/docs/cmd/tenant/people/people-profilecardproperty-list.mdx +19 -0
  174. package/docs/docs/cmd/tenant/people/people-profilecardproperty-remove.mdx +19 -0
  175. package/docs/docs/cmd/tenant/people/people-profilecardproperty-set.mdx +19 -0
  176. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.mdx +19 -0
  177. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-list.mdx +19 -0
  178. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-get.mdx +19 -0
  179. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-list.mdx +19 -0
  180. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-get.mdx +19 -0
  181. package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-list.mdx +19 -0
  182. package/docs/docs/cmd/viva/engage/engage-message-add.mdx +17 -0
  183. package/docs/docs/cmd/viva/engage/engage-message-get.mdx +17 -0
  184. package/docs/docs/cmd/viva/engage/engage-message-list.mdx +17 -0
  185. package/docs/docs/cmd/viva/engage/engage-message-remove.mdx +19 -0
  186. package/npm-shrinkwrap.json +1120 -3216
  187. package/package.json +24 -38
  188. package/dist/appInsights.js +0 -43
@@ -0,0 +1,76 @@
1
+ import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo folder unarchive
6
+
7
+ Unarchives a folder
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo folder unarchive [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-u, --webUrl <webUrl>`
19
+ : The URL of the site where the folder is located.
20
+
21
+ `--url [url]`
22
+ : The server- or site-relative decoded URL of the folder to unarchive. Specify either `url` or `id`, but not both.
23
+
24
+ `-i, --id [id]`
25
+ : The unique ID (GUID) of the folder to unarchive. Specify either `url` or `id`, but not both.
26
+
27
+ `-f, --force`
28
+ : Don't prompt for confirmation.
29
+ ```
30
+
31
+ <Global />
32
+
33
+ ## Remarks
34
+
35
+ :::warning
36
+
37
+ Reactivation could take up to 24 hours. Folders that are reactivated cannot be archived again for **120 days**.
38
+
39
+ :::
40
+
41
+ ## Permissions
42
+
43
+ <Tabs>
44
+ <TabItem value="Delegated">
45
+
46
+ | Resource | Permissions |
47
+ |------------|----------------|
48
+ | SharePoint | AllSites.Write |
49
+
50
+ </TabItem>
51
+ <TabItem value="Application">
52
+
53
+ | Resource | Permissions |
54
+ |------------|---------------------|
55
+ | SharePoint | Sites.ReadWrite.All |
56
+
57
+ </TabItem>
58
+ </Tabs>
59
+
60
+ ## Examples
61
+
62
+ Unarchive a folder without prompting for confirmation
63
+
64
+ ```sh
65
+ m365 spo folder unarchive --webUrl https://contoso.sharepoint.com/sites/Marketing --id 7a8c9207-7745-4cda-b0e2-be2618ee3030 --force
66
+ ```
67
+
68
+ Unarchive a folder by URL with prompting for confirmation
69
+
70
+ ```sh
71
+ m365 spo folder unarchive --webUrl https://contoso.sharepoint.com/sites/Marketing --url '/sites/Marketing/documents/general'
72
+ ```
73
+
74
+ ## Response
75
+
76
+ The command won't return a response on success.
@@ -24,8 +24,8 @@ m365 spo list remove [options]
24
24
  `-t, --title [title]`
25
25
  : Title of the list to remove. Specify either `id` or `title` but not both.
26
26
 
27
- `--recycle`
28
- : Instead of permanently deleting, send the list to the recycle bin.
27
+ `--permanent`
28
+ : Permanently delete the list instead of moving it to the recycle bin.
29
29
 
30
30
  `-f, --force`
31
31
  : Don't prompt for confirming removing the list.
@@ -66,10 +66,10 @@ Remove the list with a specific title located in a specific site.
66
66
  m365 spo list remove --webUrl https://contoso.sharepoint.com/sites/project-x --title 'List 1'
67
67
  ```
68
68
 
69
- Remove a list specified by id by sending it to the recycle bin instead of permanently removing it
69
+ Permanently remove a list specified by ID.
70
70
 
71
71
  ```sh
72
- m365 spo list remove --webUrl https://contoso.sharepoint.com/sites/project-x --id 0cd891ef-afce-4e55-b836-fce03286cccf --recycle
72
+ m365 spo list remove --webUrl https://contoso.sharepoint.com/sites/project-x --id 0cd891ef-afce-4e55-b836-fce03286cccf --permanent
73
73
  ```
74
74
 
75
75
  ## Response
@@ -31,8 +31,8 @@ m365 spo listitem batch remove [options]
31
31
  `-i, --ids [ids]`
32
32
  : Comma separated list of list item IDs. Specify `filePath` or `ids`, but not both.
33
33
 
34
- `-r, --recycle`
35
- : Recycle the list items. Otherwise, they will be permanently deleted.
34
+ `--permanent`
35
+ : Permanently delete the list items instead of moving them to the recycle bin.
36
36
 
37
37
  `-f, --force`
38
38
  : Don't prompt for confirmation.
@@ -65,6 +65,12 @@ Remove a list of IDs from a list by specifying the IDs
65
65
  m365 spo listitem batch remove --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle "Demo List" --ids "123,234,345"
66
66
  ```
67
67
 
68
+ Permanently remove a list of IDs from a list.
69
+
70
+ ```sh
71
+ m365 spo listitem batch remove --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle "Demo List" --ids "123,234,345" --permanent
72
+ ```
73
+
68
74
  ## Response
69
75
 
70
76
  The command won't return a response on success.
@@ -44,12 +44,6 @@ m365 spo listitem get [options]
44
44
 
45
45
  ## Remarks
46
46
 
47
- :::note
48
-
49
- The `--properties` option has been renamed to `--fields`. If you use `--properties`, the command still works but shows a deprecation warning.
50
-
51
- :::
52
-
53
47
  If you want to specify a lookup type in the `fields` option, define which columns from the related list should be returned.
54
48
 
55
49
  ## Examples
@@ -28,8 +28,8 @@ m365 spo listitem remove [options]
28
28
  `--listUrl [listUrl]`
29
29
  : Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`
30
30
 
31
- `--recycle`
32
- : Recycle the list item
31
+ `--permanent`
32
+ : Permanently delete the list item instead of moving it to the recycle bin.
33
33
 
34
34
  `-f, --force`
35
35
  : Don't prompt for confirming removing the list item
@@ -57,6 +57,12 @@ Remove the list item located in a given site based on the server-relative list u
57
57
  m365 spo listitem remove --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl /sites/project-x/lists/TestList --id 1
58
58
  ```
59
59
 
60
+ Permanently remove a list item.
61
+
62
+ ```sh
63
+ m365 spo listitem remove --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle 'List 1' --id 1 --permanent
64
+ ```
65
+
60
66
  ## Response
61
67
 
62
68
  The command won't return a response on success.
@@ -69,27 +69,35 @@ m365 spo navigation node list --webUrl https://contoso.sharepoint.com/sites/Mark
69
69
  "5786b8e8-c495-4734-b345-756733960730"
70
70
  ],
71
71
  "CurrentLCID": 1033,
72
- "Id": 2032,
73
- "IsDocLib": true,
74
- "IsExternal": true,
75
- "IsVisible": true,
76
- "ListTemplateType": 0,
77
- "Title": "Navigation Link",
78
- "Url": "https://contoso.sharepoint.com",
79
- "Children": [
72
+ "CustomProperties": [],
73
+ "FriendlyUrlSegment": "",
74
+ "IsDeleted": false,
75
+ "IsHidden": false,
76
+ "IsTitleForExistingLanguage": false,
77
+ "Key": "2032",
78
+ "Nodes": [
80
79
  {
81
- "AudienceIds": null,
80
+ "AudienceIds": [],
82
81
  "CurrentLCID": 1033,
83
- "Id": 2033,
84
- "IsDocLib": true,
85
- "IsExternal": true,
86
- "IsVisible": true,
87
- "ListTemplateType": 0,
82
+ "CustomProperties": [],
83
+ "FriendlyUrlSegment": "",
84
+ "IsDeleted": false,
85
+ "IsHidden": false,
86
+ "IsTitleForExistingLanguage": false,
87
+ "Key": "2033",
88
+ "Nodes": [],
89
+ "NodeType": 0,
90
+ "OpenInNewWindow": true,
91
+ "SimpleUrl": "https://microsoft365.com",
88
92
  "Title": "Microsoft 365",
89
- "Url": "https://microsoft365.com",
90
- "Children": []
93
+ "Translations": []
91
94
  }
92
- ]
95
+ ],
96
+ "NodeType": 0,
97
+ "OpenInNewWindow": false,
98
+ "SimpleUrl": "https://contoso.sharepoint.com",
99
+ "Title": "Navigation Link",
100
+ "Translations": []
93
101
  }
94
102
  ]
95
103
  ```
@@ -98,7 +106,7 @@ m365 spo navigation node list --webUrl https://contoso.sharepoint.com/sites/Mark
98
106
  <TabItem value="Text">
99
107
 
100
108
  ```text
101
- Id Title Url
109
+ Key Title SimpleUrl
102
110
  ---- --------------- ------------------------------
103
111
  2032 Navigation Link https://contoso.sharepoint.com
104
112
  ```
@@ -107,8 +115,8 @@ m365 spo navigation node list --webUrl https://contoso.sharepoint.com/sites/Mark
107
115
  <TabItem value="CSV">
108
116
 
109
117
  ```csv
110
- Id,Title,Url
111
- 2032,Navigation Link,https://contoso.sharepoint.com
118
+ CurrentLCID,FriendlyUrlSegment,IsDeleted,IsHidden,IsTitleForExistingLanguage,Key,NodeType,OpenInNewWindow,SimpleUrl,Title
119
+ 1033,,0,0,0,2032,0,0,https://contoso.sharepoint.com,Navigation Link
112
120
  ```
113
121
 
114
122
  </TabItem>
@@ -119,18 +127,20 @@ m365 spo navigation node list --webUrl https://contoso.sharepoint.com/sites/Mark
119
127
 
120
128
  Date: 27/1/2023
121
129
 
122
- ## Home (1031)
130
+ ## Navigation Link
123
131
 
124
132
  Property | Value
125
133
  ---------|-------
126
134
  CurrentLCID | 1033
127
- Id | 2032
128
- IsDocLib | true
129
- IsExternal | false
130
- IsVisible | true
131
- ListTemplateType | 0
135
+ FriendlyUrlSegment |
136
+ IsDeleted | false
137
+ IsHidden | false
138
+ IsTitleForExistingLanguage | false
139
+ Key | 2032
140
+ NodeType | 0
141
+ OpenInNewWindow | false
142
+ SimpleUrl | https://contoso.sharepoint.com
132
143
  Title | Navigation Link
133
- Url | https://contoso.sharepoint.com
134
144
  ```
135
145
 
136
146
  </TabItem>
@@ -19,8 +19,8 @@ m365 spo page remove [options]
19
19
  `-n, --name <name>`
20
20
  : Name of the page.
21
21
 
22
- `--recycle`
23
- : Send the page to the recycle bin instead of permanently deleting it.
22
+ `--permanent`
23
+ : Permanently delete the page instead of moving it to the recycle bin.
24
24
 
25
25
  `--bypassSharedLock`
26
26
  : Remove the page even if it is locked for shared use.
@@ -45,10 +45,10 @@ Remove a modern page without a confirmation prompt
45
45
  m365 spo page remove --name HR.aspx --webUrl https://contoso.sharepoint.com/sites/Marketing --force
46
46
  ```
47
47
 
48
- Send a page to the recycle bin
48
+ Permanently remove a page
49
49
 
50
50
  ```sh
51
- m365 spo page remove --name HR.aspx --webUrl https://contoso.sharepoint.com/sites/Marketing --recycle
51
+ m365 spo page remove --name HR.aspx --webUrl https://contoso.sharepoint.com/sites/Marketing --permanent
52
52
  ```
53
53
 
54
54
  Remove a page that is locked
@@ -34,14 +34,45 @@ m365 spo site apppermission add [options]
34
34
 
35
35
  To set permissions, specify at minimum either `appId` or `appDisplayName`. For best performance specify both values to avoid extra lookup.
36
36
 
37
- ## Example
37
+ ## Permissions
38
38
 
39
- Grants the specified app the _read_ permission to site _https://contoso.sharepoint.com/sites/project-x_
39
+ <Tabs>
40
+ <TabItem value="Delegated">
41
+
42
+ | Resource | Permissions |
43
+ |-----------------|---------------------------------------------|
44
+ | Microsoft Graph | Sites.FullControl.All, Application.Read.All |
45
+
46
+ </TabItem>
47
+ <TabItem value="Application">
48
+
49
+ | Resource | Permissions |
50
+ |-----------------|---------------------------------------------|
51
+ | Microsoft Graph | Sites.FullControl.All, Application.Read.All |
52
+
53
+ </TabItem>
54
+ </Tabs>
55
+
56
+ ## Examples
57
+
58
+ Grants the app with the specified display name the _read_ permission to a specific site
40
59
 
41
60
  ```sh
42
61
  m365 spo site apppermission add --siteUrl https://contoso.sharepoint.com/sites/project-x --permission read --appDisplayName Foo
43
62
  ```
44
63
 
64
+ Grants the app with the specified ID the _write_ permission to a specific site
65
+
66
+ ```sh
67
+ m365 spo site apppermission add --siteUrl https://contoso.sharepoint.com/sites/project-x --permission write --appId 5c89fbbf-670e-48e7-a0bc-fa8942c895a2
68
+ ```
69
+
70
+ Grants the app with the specified ID and display name the _manage_ permission to a specific site
71
+
72
+ ```sh
73
+ m365 spo site apppermission add --siteUrl https://contoso.sharepoint.com/sites/project-x --permission manage --appId 5c89fbbf-670e-48e7-a0bc-fa8942c895a2 --appDisplayName Foo
74
+ ```
75
+
45
76
  ## Response
46
77
 
47
78
  <Tabs>
@@ -49,27 +80,27 @@ m365 spo site apppermission add --siteUrl https://contoso.sharepoint.com/sites/p
49
80
 
50
81
  ```json
51
82
  {
52
- "id": "aTowaS50fG1zLnNwLmV4dHw1Yzg5ZmJiZi02NzBlLTQ4ZTctYTBiYy1mYTg5NDJjODk1YTJAMWU4NTJiNDktYmY0Yi00YmE1LWJjZDQtYThjNDcwNmM4ZWQ0",
53
- "roles": [
54
- "read"
55
- ],
56
- "grantedToIdentitiesV2": [
57
- {
58
- "application": {
59
- "displayName": "Foo",
60
- "id": "5c89fbbf-670e-48e7-a0bc-fa8942c895a2"
83
+ "id": "aTowaS50fG1zLnNwLmV4dHw1Yzg5ZmJiZi02NzBlLTQ4ZTctYTBiYy1mYTg5NDJjODk1YTJAMWU4NTJiNDktYmY0Yi00YmE1LWJjZDQtYThjNDcwNmM4ZWQ0",
84
+ "roles": [
85
+ "read"
86
+ ],
87
+ "grantedToIdentitiesV2": [
88
+ {
89
+ "application": {
90
+ "displayName": "Foo",
91
+ "id": "5c89fbbf-670e-48e7-a0bc-fa8942c895a2"
92
+ }
61
93
  }
62
- }
63
- ],
64
- "grantedToIdentities": [
65
- {
66
- "application": {
67
- "displayName": "Foo",
68
- "id": "5c89fbbf-670e-48e7-a0bc-fa8942c895a2"
94
+ ],
95
+ "grantedToIdentities": [
96
+ {
97
+ "application": {
98
+ "displayName": "Foo",
99
+ "id": "5c89fbbf-670e-48e7-a0bc-fa8942c895a2"
100
+ }
69
101
  }
70
- }
71
- ]
72
- }
102
+ ]
103
+ }
73
104
  ```
74
105
 
75
106
  </TabItem>
@@ -16,8 +16,8 @@ m365 spo site remove [options]
16
16
  `-u, --url <url>`
17
17
  : URL of the site.
18
18
 
19
- `--skipRecycleBin`
20
- : Set to directly remove the site without moving it to the recycle bin.
19
+ `--permanent`
20
+ : Permanently remove the site without leaving it in the recycle bin.
21
21
 
22
22
  `--fromRecycleBin`
23
23
  : Set to remove the site from the recycle bin.
@@ -49,7 +49,7 @@ m365 spo site remove --url https://contoso.sharepoint.com/sites/demosite
49
49
  Remove the site without moving it to the recycle bin.
50
50
 
51
51
  ```sh
52
- m365 spo site remove --url https://contoso.sharepoint.com/sites/demosite --skipRecycleBin
52
+ m365 spo site remove --url https://contoso.sharepoint.com/sites/demosite --permanent
53
53
  ```
54
54
 
55
55
  Remove the previously deleted site from the recycle bin.
@@ -0,0 +1,108 @@
1
+ import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo web rule get
6
+
7
+ Retrieves information about a specific alert from a SharePoint list
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo web rule get [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-u, --webUrl <webUrl>`
19
+ : The URL of the SharePoint site.
20
+
21
+ `--id <id>`
22
+ : The ID of the rule.
23
+ ```
24
+
25
+ <Global />
26
+
27
+ ## Permissions
28
+
29
+ <Tabs>
30
+ <TabItem value="Delegated">
31
+
32
+ | Resource | Permissions |
33
+ |-----------------|----------------------|
34
+ | SharePoint | AllSites.FullControl |
35
+ | Microsoft Graph | User.ReadBasic.All |
36
+
37
+ </TabItem>
38
+ <TabItem value="Application">
39
+
40
+ | Resource | Permissions |
41
+ |-----------------|-----------------------|
42
+ | SharePoint | Sites.FullControl.All |
43
+ | Microsoft Graph | User.ReadBasic.All |
44
+
45
+ </TabItem>
46
+ </Tabs>
47
+
48
+ ## Examples
49
+
50
+ Retrieve a rule by ID
51
+
52
+ ```sh
53
+ m365 spo web rule get --webUrl https://contoso.sharepoint.com/sites/Marketing --id 7cbb4c8d-8e4d-4d2e-9c6f-3f1d8b2e6a0e
54
+ ```
55
+
56
+ ## Response
57
+
58
+ <Tabs>
59
+ <TabItem value="JSON">
60
+
61
+ ```json
62
+ {
63
+ "AlertFrequency": 0,
64
+ "AlertTemplateName": "SPAlertTemplateType.DocumentLibrary",
65
+ "AlertType": 0,
66
+ "AlwaysNotify": false,
67
+ "DeliveryChannels": 1,
68
+ "EventType": -1,
69
+ "Filter": "",
70
+ "ID": "7cbb4c8d-8e4d-4d2e-9c6f-3f1d8b2e6a0e",
71
+ "Status": 0,
72
+ "Title": "Marketing documents",
73
+ "UserId": 8,
74
+ "List": {
75
+ "Id": "39d9e102-9e8f-4e74-8f17-84a92f972fcf",
76
+ "Title": "Documents",
77
+ "RootFolder": {
78
+ "ServerRelativeUrl": "/sites/Marketing/Shared Documents"
79
+ }
80
+ },
81
+ "User": {
82
+ "Id": 8,
83
+ "UserPrincipalName": "jane.doe@contoso.com"
84
+ }
85
+ }
86
+ ```
87
+
88
+ </TabItem>
89
+ <TabItem value="Text">
90
+
91
+ ```text
92
+ AlertFrequency : 0
93
+ AlertTemplateName: SPAlertTemplateType.DocumentLibrary
94
+ AlertType : 0
95
+ AlwaysNotify : false
96
+ DeliveryChannels : 1
97
+ EventType : -1
98
+ Filter :
99
+ ID : 7cbb4c8d-8e4d-4d2e-9c6f-3f1d8b2e6a0e
100
+ Status : 0
101
+ Title : Marketing documents
102
+ UserId : 8
103
+ List : {"Id":"39d9e102-9e8f-4e74-8f17-84a92f972fcf","Title":"Documents","RootFolder":{"ServerRelativeUrl":"/sites/Marketing/Shared Documents"}}
104
+ User : {"Id":8,"UserPrincipalName":"jane.doe@contoso.com"}
105
+ ```
106
+
107
+ </TabItem>
108
+ </Tabs>
@@ -12,12 +12,6 @@ Lists all SharePoint list alerts
12
12
  m365 spo web rule list [options]
13
13
  ```
14
14
 
15
- ## Alias
16
-
17
- ```sh
18
- m365 spo web alert list
19
- ```
20
-
21
15
  ## Options
22
16
 
23
17
  ```md definition-list
@@ -47,16 +41,18 @@ m365 spo web alert list
47
41
  <Tabs>
48
42
  <TabItem value="Delegated">
49
43
 
50
- | Resource | Permissions |
51
- |------------|----------------------|
52
- | SharePoint | AllSites.FullControl |
44
+ | Resource | Permissions |
45
+ |-----------------|----------------------|
46
+ | SharePoint | AllSites.FullControl |
47
+ | Microsoft Graph | User.ReadBasic.All |
53
48
 
54
49
  </TabItem>
55
50
  <TabItem value="Application">
56
51
 
57
- | Resource | Permissions |
58
- |------------|-----------------------|
59
- | SharePoint | Sites.FullControl.All |
52
+ | Resource | Permissions |
53
+ |-----------------|-----------------------|
54
+ | SharePoint | Sites.FullControl.All |
55
+ | Microsoft Graph | User.ReadBasic.All |
60
56
 
61
57
  </TabItem>
62
58
  </Tabs>
@@ -12,12 +12,6 @@ Removes an alert from a SharePoint list
12
12
  m365 spo web rule remove [options]
13
13
  ```
14
14
 
15
- ## Alias
16
-
17
- ```sh
18
- m365 spo web alert remove
19
- ```
20
-
21
15
  ## Options
22
16
 
23
17
  ```md definition-list
@@ -32,7 +32,7 @@ m365 spp model get [options]
32
32
 
33
33
  ## Examples
34
34
 
35
- Retrieve information about a SharePoint Premium document understanding model, using model UniqueId.
35
+ Retrieve information about a SharePoint Premium document understanding model, using model unique ID.
36
36
 
37
37
  ```sh
38
38
  m365 spp model get --siteUrl "https://contoso.sharepoint.com/sites/ContentCenter" --id "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc"
@@ -40,7 +40,7 @@ The model must be removed from all libraries before it can be deleted.
40
40
 
41
41
  ## Examples
42
42
 
43
- Delete a SharePoint Premium document understanding model using the model’s UniqueId.
43
+ Delete a SharePoint Premium document understanding model using the model’s unique ID.
44
44
 
45
45
  ```sh
46
46
  m365 spp model remove --siteUrl "https://contoso.sharepoint.com/sites/ContentCenter" --id "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc"
@@ -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
  # teams app install
4
6
 
@@ -35,6 +37,25 @@ m365 teams app install [options]
35
37
 
36
38
  The `id` has to be the ID of the app from the Microsoft Teams App Catalog. Do not use the ID from the manifest of the zip app package. Use the [teams app list](./app-list.mdx) command to get this ID instead.
37
39
 
40
+ ## Permissions
41
+
42
+ <Tabs>
43
+ <TabItem value="Delegated">
44
+
45
+ | Resource | Permissions |
46
+ |-----------------|---------------------------------------------------------------------------------------------------------------------|
47
+ | Microsoft Graph | AppCatalog.Submit, TeamsAppInstallation.ReadWriteForTeam, TeamsAppInstallation.ReadWriteForUser, User.ReadBasic.All |
48
+
49
+ </TabItem>
50
+ <TabItem value="Application">
51
+
52
+ | Resource | Permissions |
53
+ |-----------------|--------------------------------------------------------------------------------------------------------------------------|
54
+ | Microsoft Graph | AppCatalog.Read.All, TeamsAppInstallation.ReadWriteForTeam.All, TeamsAppInstallation.ReadWriteForUser.All, User.Read.All |
55
+
56
+ </TabItem>
57
+ </Tabs>
58
+
38
59
  ## Examples
39
60
 
40
61
  Install an app from the catalog in a Microsoft Teams team
@@ -21,6 +21,25 @@ m365 teams app list [options]
21
21
 
22
22
  <Global />
23
23
 
24
+ ## Permissions
25
+
26
+ <Tabs>
27
+ <TabItem value="Delegated">
28
+
29
+ | Resource | Permissions |
30
+ |-----------------|-------------------|
31
+ | Microsoft Graph | AppCatalog.Submit |
32
+
33
+ </TabItem>
34
+ <TabItem value="Application">
35
+
36
+ | Resource | Permissions |
37
+ |-----------------|---------------------|
38
+ | Microsoft Graph | AppCatalog.Read.All |
39
+
40
+ </TabItem>
41
+ </Tabs>
42
+
24
43
  ## Examples
25
44
 
26
45
  List all apps from the Microsoft Teams app catalog
@@ -29,6 +29,23 @@ To use this command you must be a Global administrator.
29
29
 
30
30
  :::
31
31
 
32
+ ## Permissions
33
+
34
+ <Tabs>
35
+ <TabItem value="Delegated">
36
+
37
+ | Resource | Permissions |
38
+ |-----------------|--------------------------|
39
+ | Microsoft Graph | AppCatalog.ReadWrite.All |
40
+
41
+ </TabItem>
42
+ <TabItem value="Application">
43
+
44
+ This command does not support application permissions.
45
+
46
+ </TabItem>
47
+ </Tabs>
48
+
32
49
  ## Examples
33
50
 
34
51
  Add the _teams-manifest.zip_ file to the organization's app catalog