@pnp/cli-microsoft365 11.7.0-beta.bd906c5 → 11.7.0
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.
- package/.devproxy/api-specs/sharepoint.yaml +53 -0
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/m365/context/commands/option/option-list.js +6 -1
- package/dist/m365/entra/commands/resourcenamespace/resourcenamespace-list.js +6 -0
- package/dist/m365/external/commands/connection/connection-list.js +6 -0
- package/dist/m365/outlook/commands/calendar/calendar-set.js +132 -0
- package/dist/m365/outlook/commands/calendargroup/calendargroup-get.js +114 -0
- package/dist/m365/outlook/commands.js +2 -0
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-add.js +13 -1
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.js +24 -3
- package/dist/m365/spo/commands/brandcenter/brandcenter-colors-list.js +59 -0
- package/dist/m365/spo/commands/file/file-archive.js +83 -0
- package/dist/m365/spo/commands/propertybag/propertybag-set.js +3 -9
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-add.js +20 -0
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-set.js +27 -2
- package/dist/m365/spo/commands/tenant/tenant-settings-set.js +5 -1
- package/dist/m365/spo/commands.js +2 -0
- package/dist/request.js +0 -16
- package/docs/docs/cmd/entra/m365group/m365group-user-add.mdx +21 -0
- package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +19 -0
- package/docs/docs/cmd/entra/m365group/m365group-user-remove.mdx +21 -0
- package/docs/docs/cmd/entra/m365group/m365group-user-set.mdx +21 -0
- package/docs/docs/cmd/entra/roledefinition/roledefinition-add.mdx +19 -0
- package/docs/docs/cmd/entra/roledefinition/roledefinition-get.mdx +19 -0
- package/docs/docs/cmd/entra/roledefinition/roledefinition-list.mdx +19 -0
- package/docs/docs/cmd/entra/roledefinition/roledefinition-remove.mdx +21 -0
- package/docs/docs/cmd/entra/roledefinition/roledefinition-set.mdx +21 -0
- package/docs/docs/cmd/entra/siteclassification/siteclassification-disable.mdx +21 -0
- package/docs/docs/cmd/entra/siteclassification/siteclassification-enable.mdx +21 -0
- package/docs/docs/cmd/entra/siteclassification/siteclassification-get.mdx +19 -0
- package/docs/docs/cmd/entra/siteclassification/siteclassification-set.mdx +20 -0
- package/docs/docs/cmd/external/connection/connection-add.mdx +21 -0
- package/docs/docs/cmd/external/connection/connection-doctor.mdx +19 -0
- package/docs/docs/cmd/external/connection/connection-get.mdx +19 -0
- package/docs/docs/cmd/external/connection/connection-list.mdx +19 -0
- package/docs/docs/cmd/external/connection/connection-remove.mdx +21 -0
- package/docs/docs/cmd/external/connection/connection-schema-add.mdx +21 -0
- package/docs/docs/cmd/external/connection/connection-urltoitemresolver-add.mdx +21 -0
- package/docs/docs/cmd/external/item/item-add.mdx +19 -0
- package/docs/docs/cmd/outlook/calendar/calendar-set.mdx +178 -0
- package/docs/docs/cmd/outlook/calendargroup/calendargroup-get.mdx +125 -0
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +14 -11
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +9 -6
- package/docs/docs/cmd/spo/brandcenter/brandcenter-colors-list.mdx +115 -0
- package/docs/docs/cmd/spo/file/file-archive.mdx +68 -0
- package/docs/docs/cmd/spo/propertybag/propertybag-set.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +13 -10
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +7 -4
- package/docs/docs/cmd/spo/tenant/tenant-settings-set.mdx +3 -0
- package/package.json +2 -2
|
@@ -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 archive
|
|
6
|
+
|
|
7
|
+
Archives a file
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 spo file archive [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 archive. Specify either `url` or `id`, but not both.
|
|
23
|
+
|
|
24
|
+
`-i, --id [id]`
|
|
25
|
+
: The UniqueId (GUID) of the file 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
|
+
## 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
|
+
Archive a file by id without prompting for confirmation
|
|
55
|
+
|
|
56
|
+
```sh
|
|
57
|
+
m365 spo file archive --webUrl https://contoso.sharepoint.com/sites/Marketing --id 7a8c9207-7745-4cda-b0e2-be2618ee3030 --force
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Archive a file by URL with prompting for confirmation
|
|
61
|
+
|
|
62
|
+
```sh
|
|
63
|
+
m365 spo file archive --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.
|
|
@@ -30,7 +30,7 @@ m365 spo propertybag set [options]
|
|
|
30
30
|
|
|
31
31
|
## Remarks
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
If a site has NoScript enabled, setting property bag values may result in an _Access is denied_ error. To resolve this, you can configure a tenant-wide property to allow property bag updates on NoScript sites.
|
|
34
34
|
|
|
35
35
|
## Examples
|
|
36
36
|
|
|
@@ -2,7 +2,7 @@ import Global from '../../_global.mdx';
|
|
|
2
2
|
|
|
3
3
|
# spo tenant applicationcustomizer add
|
|
4
4
|
|
|
5
|
-
Add an
|
|
5
|
+
Add an Application Customizer as a tenant-wide extension
|
|
6
6
|
|
|
7
7
|
## Usage
|
|
8
8
|
|
|
@@ -17,13 +17,16 @@ m365 spo tenant applicationcustomizer add [options]
|
|
|
17
17
|
: The title of the Application Customizer.
|
|
18
18
|
|
|
19
19
|
`-i, --clientSideComponentId <clientSideComponentId>`
|
|
20
|
-
: The Client Side Component Id (GUID) of the
|
|
20
|
+
: The Client Side Component Id (GUID) of the Application Customizer.
|
|
21
21
|
|
|
22
22
|
`-p, --clientSideComponentProperties [clientSideComponentProperties]`
|
|
23
|
-
: The Client Side Component properties of the
|
|
23
|
+
: The Client Side Component properties of the Application Customizer.
|
|
24
|
+
|
|
25
|
+
`--hostProperties [hostProperties]`
|
|
26
|
+
: Set the host properties of the Application Customizer.
|
|
24
27
|
|
|
25
28
|
`-w, --webTemplate [webTemplate]`
|
|
26
|
-
: Optionally add a web template (e.g. STS#3, SITEPAGEPUBLISHING#0, etc) as a filter for what kind of sites the
|
|
29
|
+
: Optionally add a web template (e.g. STS#3, SITEPAGEPUBLISHING#0, etc) as a filter for what kind of sites the Application Customizer is registered on.
|
|
27
30
|
```
|
|
28
31
|
|
|
29
32
|
<Global />
|
|
@@ -40,7 +43,7 @@ Note, how the clientSideComponentProperties option has escaped double quotes `'{
|
|
|
40
43
|
|
|
41
44
|
:::warning[Escaping JSON in PowerShell]
|
|
42
45
|
|
|
43
|
-
When using the `--clientSideComponentProperties`
|
|
46
|
+
When using the `--clientSideComponentProperties` or `--hostProperties` options it's possible to enter a JSON string. In PowerShell 5 to 7.2 [specific escaping rules](./../../../user-guide/using-cli.mdx#escaping-double-quotes-in-powershell) apply due to an issue. Remember that you can also use [file tokens](./../../../user-guide/using-cli.mdx#passing-complex-content-into-cli-options) instead.
|
|
44
47
|
|
|
45
48
|
:::
|
|
46
49
|
|
|
@@ -50,20 +53,20 @@ To use this command, you need to be a SharePoint Admin.
|
|
|
50
53
|
|
|
51
54
|
:::
|
|
52
55
|
|
|
53
|
-
This command can be used for configuring a tenant-wide
|
|
56
|
+
This command can be used for configuring a tenant-wide Application Customizer. To configure an Application Customizer on a specific site, view our dedicated [spo applicationcustomizer add](../applicationcustomizer/applicationcustomizer-add.mdx) command.
|
|
54
57
|
|
|
55
58
|
## Examples
|
|
56
59
|
|
|
57
|
-
Adds an
|
|
60
|
+
Adds an Application Customizer that's deployed tenant wide
|
|
58
61
|
|
|
59
62
|
```sh
|
|
60
|
-
m365 spo tenant applicationcustomizer add --title "Some customizer" --clientSideComponentId
|
|
63
|
+
m365 spo tenant applicationcustomizer add --title "Some customizer" --clientSideComponentId 799883f5-7962-4384-a10a-105adaec6ffc
|
|
61
64
|
```
|
|
62
65
|
|
|
63
|
-
Adds an
|
|
66
|
+
Adds an Application Customizer that is configured for all communication sites.
|
|
64
67
|
|
|
65
68
|
```sh
|
|
66
|
-
m365 spo tenant applicationcustomizer add --title "Some customizer" --clientSideComponentId
|
|
69
|
+
m365 spo tenant applicationcustomizer add --title "Some customizer" --clientSideComponentId 799883f5-7962-4384-a10a-105adaec6ffc --webTemplate "SITEPAGEPUBLISHING#0"
|
|
67
70
|
```
|
|
68
71
|
|
|
69
72
|
## Response
|
|
@@ -31,25 +31,28 @@ m365 spo tenant applicationcustomizer set [options]
|
|
|
31
31
|
`-p, --clientSideComponentProperties [clientSideComponentProperties]`
|
|
32
32
|
: The Client Side Component properties of the Application Customizer.
|
|
33
33
|
|
|
34
|
+
`--hostProperties [hostProperties]`
|
|
35
|
+
: Set the host properties of the Application Customizer. Set to an empty string to clear the value.
|
|
36
|
+
|
|
34
37
|
`-w, --webTemplate [webTemplate]`
|
|
35
|
-
: Optionally add a web template (e.g. STS#3, SITEPAGEPUBLISHING#0, etc) as a filter for what kind of sites the
|
|
38
|
+
: Optionally add a web template (e.g. STS#3, SITEPAGEPUBLISHING#0, etc) as a filter for what kind of sites the Application Customizer is registered on.
|
|
36
39
|
```
|
|
37
40
|
|
|
38
41
|
<Global />
|
|
39
42
|
|
|
40
43
|
## Remarks
|
|
41
44
|
|
|
42
|
-
Running this command from the Windows Command Shell (cmd.exe) or PowerShell for Windows OS XP, 7, 8, 8.1 without bash installed might require additional formatting for clientSideComponentProperties
|
|
45
|
+
Running this command from the Windows Command Shell (cmd.exe) or PowerShell for Windows OS XP, 7, 8, 8.1 without bash installed might require additional formatting for `clientSideComponentProperties` and `hostProperties` options that have JSON values because the command shell treats quotes differently. For example, this is how Application Customizer can be updated from the Windows cmd.exe:
|
|
43
46
|
|
|
44
47
|
```sh
|
|
45
48
|
m365 spo tenant applicationcustomizer set --id 3 --clientSideComponentProperties '{\"someProperty\":\"Some value\"}'
|
|
46
49
|
```
|
|
47
50
|
|
|
48
|
-
Note, how the clientSideComponentProperties option
|
|
51
|
+
Note, how the `--clientSideComponentProperties` option has escaped double quotes `'{\"someProperty\":\"Some value\"}'` compared to execution from bash `'{"someProperty": "Some value"}'`.
|
|
49
52
|
|
|
50
53
|
:::warning[Escaping JSON in PowerShell]
|
|
51
54
|
|
|
52
|
-
When using the `--clientSideComponentProperties`
|
|
55
|
+
When using the `--clientSideComponentProperties` or `--hostProperties` options it's possible to enter a JSON string. In PowerShell 5 to 7.2 [specific escaping rules](./../../../user-guide/using-cli.mdx#escaping-double-quotes-in-powershell) apply due to an issue. Remember that you can also use [file tokens](./../../../user-guide/using-cli.mdx#passing-complex-content-into-cli-options) instead.
|
|
53
56
|
|
|
54
57
|
:::
|
|
55
58
|
|
|
@@ -267,6 +267,9 @@ m365 spo tenant settings set [options]
|
|
|
267
267
|
|
|
268
268
|
`--SyncAadB2BManagementPolicy [SyncAadB2BManagementPolicy]`
|
|
269
269
|
: Syncs Azure B2B Management Policies. Allowed values `true`, `false`. For more information, see [SharePoint and OneDrive integration with Microsoft Entra B2B](https://aka.ms/spo-b2b-integration).
|
|
270
|
+
|
|
271
|
+
`--AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled [AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled]`
|
|
272
|
+
: Enables or disables web property bag updates when DenyAddAndCustomizePages is enabled. Allowed values `true`, `false`.
|
|
270
273
|
```
|
|
271
274
|
|
|
272
275
|
<Global />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365",
|
|
3
|
-
"version": "11.7.0
|
|
3
|
+
"version": "11.7.0",
|
|
4
4
|
"description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/api.js",
|
|
@@ -341,4 +341,4 @@
|
|
|
341
341
|
"source-map-support": "^0.5.21",
|
|
342
342
|
"tsc-watch": "^7.2.0"
|
|
343
343
|
}
|
|
344
|
-
}
|
|
344
|
+
}
|