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

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 (75) hide show
  1. package/.devproxy/api-specs/sharepoint.yaml +166 -0
  2. package/allCommands.json +1 -1
  3. package/allCommandsFull.json +1 -1
  4. package/dist/m365/cli/commands/app/app-reconsent.js +8 -0
  5. package/dist/m365/cli/commands/cli-consent.js +8 -31
  6. package/dist/m365/cli/commands/cli-doctor.js +6 -1
  7. package/dist/m365/cli/commands/cli-issue.js +8 -36
  8. package/dist/m365/cli/commands/completion/completion-clink-update.js +8 -0
  9. package/dist/m365/cli/commands/completion/completion-pwsh-setup.js +8 -16
  10. package/dist/m365/cli/commands/completion/completion-pwsh-update.js +8 -0
  11. package/dist/m365/cli/commands/completion/completion-sh-setup.js +8 -0
  12. package/dist/m365/cli/commands/completion/completion-sh-update.js +8 -0
  13. package/dist/m365/cli/commands/config/config-get.js +9 -32
  14. package/dist/m365/cli/commands/config/config-list.js +8 -0
  15. package/dist/m365/cli/commands/config/config-reset.js +9 -34
  16. package/dist/m365/cli/commands/config/config-set.js +86 -70
  17. package/dist/m365/commands/request.js +26 -60
  18. package/dist/m365/commands/search.js +59 -77
  19. package/dist/m365/commands/setup.js +16 -31
  20. package/dist/m365/commands/version.js +6 -0
  21. package/dist/m365/connection/commands/connection-remove.js +9 -29
  22. package/dist/m365/connection/commands/connection-use.js +8 -26
  23. package/dist/m365/context/commands/context-init.js +6 -0
  24. package/dist/m365/context/commands/option/option-set.js +9 -18
  25. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-add.js +32 -63
  26. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-get.js +21 -45
  27. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-list.js +32 -53
  28. package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-remove.js +34 -74
  29. package/dist/m365/entra/commands/administrativeunit/administrativeunit-roleassignment-add.js +37 -57
  30. package/dist/m365/entra/commands/multitenant/multitenant-get.js +8 -1
  31. package/dist/m365/entra/commands/multitenant/multitenant-remove.js +8 -22
  32. package/dist/m365/entra/commands/multitenant/multitenant-set.js +15 -36
  33. package/dist/m365/entra/commands/oauth2grant/oauth2grant-add.js +10 -31
  34. package/dist/m365/entra/commands/oauth2grant/oauth2grant-list.js +8 -24
  35. package/dist/m365/entra/commands/oauth2grant/oauth2grant-remove.js +9 -17
  36. package/dist/m365/entra/commands/oauth2grant/oauth2grant-set.js +9 -17
  37. package/dist/m365/outlook/commands/calendar/calendar-get.js +1 -1
  38. package/dist/m365/spe/commands/container/container-get.js +54 -26
  39. package/dist/m365/spe/commands/container/container-permission-list.js +43 -4
  40. package/dist/m365/spe/commands/container/container-set.js +77 -0
  41. package/dist/m365/spe/commands.js +1 -0
  42. package/dist/m365/spo/commands/file/file-unarchive.js +83 -0
  43. package/dist/m365/spo/commands/folder/folder-archive.js +89 -0
  44. package/dist/m365/spo/commands/list/list-sensitivitylabel-remove.js +83 -0
  45. package/dist/m365/spo/commands.js +3 -0
  46. package/dist/m365/viva/commands/engage/engage-role-member-add.js +79 -0
  47. package/dist/m365/viva/commands.js +1 -0
  48. package/docs/docs/cmd/outlook/calendar/calendar-get.mdx +7 -7
  49. package/docs/docs/cmd/spe/container/container-get.mdx +24 -3
  50. package/docs/docs/cmd/spe/container/container-permission-list.mdx +24 -3
  51. package/docs/docs/cmd/spe/container/container-set.mdx +160 -0
  52. package/docs/docs/cmd/spo/app/app-add.mdx +19 -0
  53. package/docs/docs/cmd/spo/app/app-deploy.mdx +21 -0
  54. package/docs/docs/cmd/spo/app/app-get.mdx +19 -0
  55. package/docs/docs/cmd/spo/app/app-install.mdx +21 -0
  56. package/docs/docs/cmd/spo/app/app-instance-list.mdx +19 -0
  57. package/docs/docs/cmd/spo/app/app-list.mdx +19 -0
  58. package/docs/docs/cmd/spo/app/app-remove.mdx +21 -0
  59. package/docs/docs/cmd/spo/app/app-retract.mdx +21 -0
  60. package/docs/docs/cmd/spo/app/app-teamspackage-download.mdx +21 -0
  61. package/docs/docs/cmd/spo/app/app-uninstall.mdx +21 -0
  62. package/docs/docs/cmd/spo/app/app-upgrade.mdx +21 -0
  63. package/docs/docs/cmd/spo/apppage/apppage-add.mdx +19 -1
  64. package/docs/docs/cmd/spo/apppage/apppage-set.mdx +21 -0
  65. package/docs/docs/cmd/spo/commandset/commandset-add.mdx +19 -0
  66. package/docs/docs/cmd/spo/commandset/commandset-get.mdx +19 -0
  67. package/docs/docs/cmd/spo/commandset/commandset-list.mdx +19 -0
  68. package/docs/docs/cmd/spo/commandset/commandset-remove.mdx +21 -0
  69. package/docs/docs/cmd/spo/commandset/commandset-set.mdx +21 -0
  70. package/docs/docs/cmd/spo/file/file-unarchive.mdx +68 -0
  71. package/docs/docs/cmd/spo/folder/folder-archive.mdx +73 -0
  72. package/docs/docs/cmd/spo/list/list-sensitivitylabel-remove.mdx +77 -0
  73. package/docs/docs/cmd/viva/engage/engage-role-member-add.mdx +76 -0
  74. package/npm-shrinkwrap.json +273 -128
  75. package/package.json +18 -18
@@ -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.
@@ -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 uninstall
4
6
 
@@ -32,6 +34,25 @@ m365 spo app uninstall [options]
32
34
 
33
35
  If the app with the specified ID doesn't exist in the app catalog, the command will fail with an error.
34
36
 
37
+ ## Permissions
38
+
39
+ <Tabs>
40
+ <TabItem value="Delegated">
41
+
42
+ | Resource | Permissions |
43
+ |------------|----------------------|
44
+ | SharePoint | AllSites.FullControl |
45
+
46
+ </TabItem>
47
+ <TabItem value="Application">
48
+
49
+ | Resource | Permissions |
50
+ |------------|-----------------------|
51
+ | SharePoint | Sites.FullControl.All |
52
+
53
+ </TabItem>
54
+ </Tabs>
55
+
35
56
  ## Examples
36
57
 
37
58
  Uninstall the app with the specified ID from the specified site.
@@ -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 upgrade
4
6
 
@@ -29,6 +31,25 @@ m365 spo app upgrade [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.
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
  Upgrade the app with the specified ID in the specified site.
@@ -34,6 +34,25 @@ m365 spo apppage add [options]
34
34
 
35
35
  If you want to add the single-part app page to quick launch, use the addToQuickLaunch flag.
36
36
 
37
+ ## Permissions
38
+
39
+ <Tabs>
40
+ <TabItem value="Delegated">
41
+
42
+ | Resource | Permissions |
43
+ |------------|----------------|
44
+ | SharePoint | AllSites.Write |
45
+
46
+ </TabItem>
47
+ <TabItem value="Application">
48
+
49
+ | Resource | Permissions |
50
+ |------------|---------------------|
51
+ | SharePoint | Sites.ReadWrite.All |
52
+
53
+ </TabItem>
54
+ </Tabs>
55
+
37
56
  ## Examples
38
57
 
39
58
  Create a single-part app page in the specified site, webpart data is stored in the `$webPartData` variable
@@ -42,7 +61,6 @@ Create a single-part app page in the specified site, webpart data is stored in t
42
61
  m365 spo apppage add --title "Contoso" --webUrl "https://contoso.sharepoint.com" --webPartData $webPartData --addToQuickLaunch
43
62
  ```
44
63
 
45
-
46
64
  ## Response
47
65
 
48
66
  <Tabs>
@@ -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 apppage set
4
6
 
@@ -25,6 +27,25 @@ m365 spo apppage set [options]
25
27
 
26
28
  <Global />
27
29
 
30
+ ## Permissions
31
+
32
+ <Tabs>
33
+ <TabItem value="Delegated">
34
+
35
+ | Resource | Permissions |
36
+ |------------|----------------|
37
+ | SharePoint | AllSites.Write |
38
+
39
+ </TabItem>
40
+ <TabItem value="Application">
41
+
42
+ | Resource | Permissions |
43
+ |------------|---------------------|
44
+ | SharePoint | Sites.ReadWrite.All |
45
+
46
+ </TabItem>
47
+ </Tabs>
48
+
28
49
  ## Examples
29
50
 
30
51
  Updates the single-part app page located in a specified site. Web part data is stored in the `$webPartData` variable.
@@ -60,6 +60,25 @@ When using the `--clientSideComponentProperties` option it's possible to enter a
60
60
 
61
61
  This command can be used for configuring ListView Command Sets on a specific site. To configure a ListView Command Set tenant-wide, view our dedicated [spo tenant commandset add](../tenant/tenant-commandset-add.mdx) command.
62
62
 
63
+ ## Permissions
64
+
65
+ <Tabs>
66
+ <TabItem value="Delegated">
67
+
68
+ | Resource | Permissions |
69
+ |------------|----------------------|
70
+ | SharePoint | AllSites.FullControl |
71
+
72
+ </TabItem>
73
+ <TabItem value="Application">
74
+
75
+ | Resource | Permissions |
76
+ |------------|-----------------------|
77
+ | SharePoint | Sites.FullControl.All |
78
+
79
+ </TabItem>
80
+ </Tabs>
81
+
63
82
  ## Examples
64
83
 
65
84
  Adds a ListView Command Set to lists on the sales site.
@@ -42,6 +42,25 @@ If the command finds multiple command sets with the specified title, it will pro
42
42
 
43
43
  This command can be used for retrieving a ListView Command Set from a specific site. To retrieve a ListView Command Set that's installed tenant-wide, view our dedicated [spo tenant commandset get](../tenant/tenant-commandset-get.mdx) command.
44
44
 
45
+ ## Permissions
46
+
47
+ <Tabs>
48
+ <TabItem value="Delegated">
49
+
50
+ | Resource | Permissions |
51
+ |------------|---------------|
52
+ | SharePoint | AllSites.Read |
53
+
54
+ </TabItem>
55
+ <TabItem value="Application">
56
+
57
+ | Resource | Permissions |
58
+ |------------|----------------|
59
+ | SharePoint | Sites.Read.All |
60
+
61
+ </TabItem>
62
+ </Tabs>
63
+
45
64
  ## Examples
46
65
 
47
66
  Retrieves a ListView Command Set by title.
@@ -28,6 +28,25 @@ m365 spo commandset list [options]
28
28
 
29
29
  This command can be used for retrieving a list of ListView Command Sets from a specific site. To retrieve a list of ListView Command Sets that are installed tenant-wide, view our dedicated [spo tenant commandset list](../tenant/tenant-commandset-list.mdx) command.
30
30
 
31
+ ## Permissions
32
+
33
+ <Tabs>
34
+ <TabItem value="Delegated">
35
+
36
+ | Resource | Permissions |
37
+ |------------|---------------|
38
+ | SharePoint | AllSites.Read |
39
+
40
+ </TabItem>
41
+ <TabItem value="Application">
42
+
43
+ | Resource | Permissions |
44
+ |------------|----------------|
45
+ | SharePoint | Sites.Read.All |
46
+
47
+ </TabItem>
48
+ </Tabs>
49
+
31
50
  ## Examples
32
51
 
33
52
  Retrieves a list of ListView Command Sets.
@@ -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 commandset remove
4
6
 
@@ -38,6 +40,25 @@ m365 spo commandset remove [options]
38
40
 
39
41
  This command can be used for removing a ListView Command Set from a specific site. To remove a ListView Command Set that's installed tenant-wide, view our dedicated [spo tenant commandset remove](../tenant/tenant-commandset-remove.mdx) command.
40
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
+
41
62
  ## Examples
42
63
 
43
64
  Remove a ListView Command Set by title.
@@ -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 commandset set
4
6
 
@@ -67,6 +69,25 @@ When using the `--clientSideComponentProperties` option it's possible to enter a
67
69
 
68
70
  This command can be used for updating a ListView Command Set on a specific site. To update a ListView Command Set that's installed tenant-wide, view our dedicated [spo tenant commandset set](../tenant/tenant-commandset-set.mdx) command.
69
71
 
72
+ ## Permissions
73
+
74
+ <Tabs>
75
+ <TabItem value="Delegated">
76
+
77
+ | Resource | Permissions |
78
+ |------------|----------------------|
79
+ | SharePoint | AllSites.FullControl |
80
+
81
+ </TabItem>
82
+ <TabItem value="Application">
83
+
84
+ | Resource | Permissions |
85
+ |------------|-----------------------|
86
+ | SharePoint | Sites.FullControl.All |
87
+
88
+ </TabItem>
89
+ </Tabs>
90
+
70
91
  ## Examples
71
92
 
72
93
  Updates the title and location of a ListView Command Set on the sales site.
@@ -0,0 +1,68 @@
1
+ import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo file unarchive
6
+
7
+ Unarchives a file
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo file unarchive [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-u, --webUrl <webUrl>`
19
+ : The URL of the site where the file is located.
20
+
21
+ `--url [url]`
22
+ : The server- or site-relative decoded URL of the file to unarchive. Specify either `url` or `id`, but not both.
23
+
24
+ `-i, --id [id]`
25
+ : The UniqueId (GUID) of the file 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
+ ## Permissions
34
+
35
+ <Tabs>
36
+ <TabItem value="Delegated">
37
+
38
+ | Resource | Permissions |
39
+ |------------|----------------|
40
+ | SharePoint | AllSites.Write |
41
+
42
+ </TabItem>
43
+ <TabItem value="Application">
44
+
45
+ | Resource | Permissions |
46
+ |------------|---------------------|
47
+ | SharePoint | Sites.ReadWrite.All |
48
+
49
+ </TabItem>
50
+ </Tabs>
51
+
52
+ ## Examples
53
+
54
+ Unarchive a file by id without prompting for confirmation
55
+
56
+ ```sh
57
+ m365 spo file unarchive --webUrl https://contoso.sharepoint.com/sites/Marketing --id 7a8c9207-7745-4cda-b0e2-be2618ee3030 --force
58
+ ```
59
+
60
+ Unarchive a file by URL with prompting for confirmation
61
+
62
+ ```sh
63
+ m365 spo file unarchive --webUrl https://contoso.sharepoint.com/sites/Marketing --url '/sites/Marketing/shared documents/document.docx'
64
+ ```
65
+
66
+ ## Response
67
+
68
+ The command won't return a response on success.
@@ -0,0 +1,73 @@
1
+ import Global from '../../_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo folder archive
6
+
7
+ Archives a folder
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo folder archive [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 archive. Specify either `url` or `id`, but not both.
23
+
24
+ `-i, --id [id]`
25
+ : The UniqueId (GUID) of the folder to archive. 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
+ Folder archival can take some time to complete, as the status might not be reflected immediately.
36
+
37
+
38
+ ## Permissions
39
+
40
+ <Tabs>
41
+ <TabItem value="Delegated">
42
+
43
+ | Resource | Permissions |
44
+ |------------|----------------|
45
+ | SharePoint | AllSites.Write |
46
+
47
+ </TabItem>
48
+ <TabItem value="Application">
49
+
50
+ | Resource | Permissions |
51
+ |------------|---------------------|
52
+ | SharePoint | Sites.ReadWrite.All |
53
+
54
+ </TabItem>
55
+ </Tabs>
56
+
57
+ ## Examples
58
+
59
+ Archive a folder by id without prompting for confirmation
60
+
61
+ ```sh
62
+ m365 spo folder archive --webUrl https://contoso.sharepoint.com/sites/Marketing --id 7a8c9207-7745-4cda-b0e2-be2618ee3030 --force
63
+ ```
64
+
65
+ Archive a folder by URL with prompting for confirmation
66
+
67
+ ```sh
68
+ m365 spo folder archive --webUrl https://contoso.sharepoint.com/sites/Marketing --url '/sites/Marketing/shared documents/folder'
69
+ ```
70
+
71
+ ## Response
72
+
73
+ The command won't return a response on success.
@@ -0,0 +1,77 @@
1
+ import Global from '../../_global.mdx';
2
+ import TabItem from '@theme/TabItem';
3
+ import Tabs from '@theme/Tabs';
4
+
5
+ # spo list sensitivitylabel remove
6
+
7
+ Clears a default sensitivity label from a document library
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo list sensitivitylabel remove [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-u, --webUrl <webUrl>`
19
+ : The URL of the site where the list is located.
20
+
21
+ `-t, --listTitle [listTitle]`
22
+ : The title of the library on which to remove the label. Specify either `listTitle`, `listId`, or `listUrl` but not multiple.
23
+
24
+ `-l, --listId [listId]`
25
+ : The ID of the library on which to remove the label. Specify either `listTitle`, `listId`, or `listUrl` but not multiple.
26
+
27
+ `--listUrl [listUrl]`
28
+ : Server- or web-relative URL of the library on which to remove the label. Specify either `listTitle`, `listId`, or `listUrl` but not multiple.
29
+
30
+ `-f, --force`
31
+ : Don't prompt for confirmation.
32
+ ```
33
+
34
+ <Global />
35
+
36
+ ## Permissions
37
+
38
+ <Tabs>
39
+ <TabItem value="Delegated">
40
+
41
+ | Resource | Permissions |
42
+ |------------|----------------|
43
+ | SharePoint | AllSites.Write |
44
+
45
+ </TabItem>
46
+ <TabItem value="Application">
47
+
48
+ | Resource | Permissions |
49
+ |------------|---------------------|
50
+ | SharePoint | Sites.ReadWrite.All |
51
+
52
+ </TabItem>
53
+ </Tabs>
54
+
55
+ ## Examples
56
+
57
+ Removes a sensitivity label from a document library based on the list title.
58
+
59
+ ```sh
60
+ m365 spo list sensitivitylabel remove --webUrl 'https://contoso.sharepoint.com' --listTitle 'Shared Documents'
61
+ ```
62
+
63
+ Removes a sensitivity label from a document library based on the list url.
64
+
65
+ ```sh
66
+ m365 spo list sensitivitylabel remove --webUrl 'https://contoso.sharepoint.com' --listUrl '/Shared Documents'
67
+ ```
68
+
69
+ Removes a sensitivity label from a document library based on the list id without prompting for confirmation.
70
+
71
+ ```sh
72
+ m365 spo list sensitivitylabel remove --webUrl 'https://contoso.sharepoint.com' --listId 'b4cfa0d9-b3d7-49ae-a0f0-f14ffdd005f7' --force
73
+ ```
74
+
75
+ ## Response
76
+
77
+ The command won't return a response on success.