@pnp/cli-microsoft365 11.7.0-beta.b9f508d → 11.7.0-beta.ba78c1f
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/calendargroup/calendargroup-set.js +115 -0
- package/dist/m365/outlook/commands.js +3 -0
- package/dist/m365/spfx/commands/SpfxCompatibilityMatrix.js +21 -6
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.23.0-rc.0.js +19 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002021_DEVDEP_rushstack_eslint_config.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002032_DEVDEP_typescript_eslint_parser.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015008_FILE_eslintrc_js.js +1 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015016_FILE_eslint_config_js.js +10 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.23.0-rc.0.js +84 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +12 -11
- 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/entra/user/user-groupmembership-list.mdx +19 -0
- package/docs/docs/cmd/entra/user/user-guest-add.mdx +19 -0
- package/docs/docs/cmd/entra/user/user-password-validate.mdx +12 -0
- package/docs/docs/cmd/entra/user/user-recyclebinitem-clear.mdx +21 -0
- package/docs/docs/cmd/entra/user/user-recyclebinitem-list.mdx +19 -0
- package/docs/docs/cmd/entra/user/user-recyclebinitem-remove.mdx +21 -0
- package/docs/docs/cmd/entra/user/user-recyclebinitem-restore.mdx +19 -0
- package/docs/docs/cmd/entra/user/user-registrationdetails-list.mdx +19 -0
- package/docs/docs/cmd/entra/user/user-session-revoke.mdx +21 -0
- package/docs/docs/cmd/entra/user/user-signin-list.mdx +19 -0
- package/docs/docs/cmd/exo/approleassignment/approleassignment-add.mdx +19 -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/file/convert/convert-pdf.mdx +21 -0
- package/docs/docs/cmd/file/file-add.mdx +21 -0
- package/docs/docs/cmd/file/file-copy.mdx +21 -0
- package/docs/docs/cmd/file/file-list.mdx +19 -0
- package/docs/docs/cmd/file/file-move.mdx +21 -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/outlook/calendargroup/calendargroup-set.mdx +83 -0
- package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
- 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 +1 -1
|
@@ -2,7 +2,7 @@ import Global from '../../_global.mdx';
|
|
|
2
2
|
|
|
3
3
|
# spo applicationcustomizer add
|
|
4
4
|
|
|
5
|
-
Add an
|
|
5
|
+
Add an Application Customizer to a site
|
|
6
6
|
|
|
7
7
|
## Usage
|
|
8
8
|
|
|
@@ -14,29 +14,32 @@ m365 spo applicationcustomizer add [options]
|
|
|
14
14
|
|
|
15
15
|
```md definition-list
|
|
16
16
|
`-t, --title <title>`
|
|
17
|
-
: The title of the
|
|
17
|
+
: The title of the Application Customizer.
|
|
18
18
|
|
|
19
19
|
`-u, --webUrl <webUrl>`
|
|
20
20
|
: URL of the site.
|
|
21
21
|
|
|
22
22
|
`-i, --clientSideComponentId <clientSideComponentId>`
|
|
23
|
-
: Client-side component ID of the
|
|
23
|
+
: Client-side component ID of the Application Customizer (GUID).
|
|
24
24
|
|
|
25
25
|
`--description [description]`
|
|
26
|
-
: Description of the
|
|
26
|
+
: Description of the Application Customizer.
|
|
27
27
|
|
|
28
28
|
`--clientSideComponentProperties [clientSideComponentProperties]`
|
|
29
|
-
: JSON string with
|
|
29
|
+
: JSON string with Application Customizer properties.
|
|
30
|
+
|
|
31
|
+
`--hostProperties [hostProperties]`
|
|
32
|
+
: Set the host properties of the Application Customizer.
|
|
30
33
|
|
|
31
34
|
`-s, --scope [scope]`
|
|
32
|
-
: Scope of the
|
|
35
|
+
: Scope of the Application Customizer. Allowed values: `Site`, `Web`. Defaults to `Site`.
|
|
33
36
|
```
|
|
34
37
|
|
|
35
38
|
<Global />
|
|
36
39
|
|
|
37
40
|
## Remarks
|
|
38
41
|
|
|
39
|
-
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 command options that have JSON, XML or JavaScript values because the command shell treats quotes differently. For example, this is how an
|
|
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 command options that have JSON, XML or JavaScript values because the command shell treats quotes differently. For example, this is how an Application Customizer can be created from the Windows cmd.exe:
|
|
40
43
|
|
|
41
44
|
```sh
|
|
42
45
|
m365 spo applicationcustomizer add --webUrl https://contoso.sharepoint.com/sites/test --title "YourAppCustomizer" --clientSideComponentId b41916e7-e69d-467f-b37f-ff8ecf8f99f2 --clientSideComponentProperties '{\"testMessage\":\"Test message\"}'
|
|
@@ -46,21 +49,21 @@ Note, how the clientSideComponentProperties option has escaped double quotes `'{
|
|
|
46
49
|
|
|
47
50
|
:::warning[Escaping JSON in PowerShell]
|
|
48
51
|
|
|
49
|
-
When using the `--clientSideComponentProperties`
|
|
52
|
+
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.
|
|
50
53
|
|
|
51
54
|
:::
|
|
52
55
|
|
|
53
|
-
This command can be used for configuring an
|
|
56
|
+
This command can be used for configuring an Application Customizer on a specific site. To configure an Application Customizer tenant-wide, view our dedicated [spo tenant applicationcustomizer add](../tenant/tenant-applicationcustomizer-add.mdx) command.
|
|
54
57
|
|
|
55
58
|
## Examples
|
|
56
59
|
|
|
57
|
-
Adds an
|
|
60
|
+
Adds an Application Customizer to the sales site.
|
|
58
61
|
|
|
59
62
|
```sh
|
|
60
63
|
m365 spo applicationcustomizer add --title 'Some customizer' --clientSideComponentId 799883f5-7962-4384-a10a-105adaec6ffc --webUrl https://contoso.sharepoint.com/sites/sales
|
|
61
64
|
```
|
|
62
65
|
|
|
63
|
-
Adds an
|
|
66
|
+
Adds an Application Customizer to the sales site with some properties.
|
|
64
67
|
|
|
65
68
|
```sh
|
|
66
69
|
m365 spo applicationcustomizer add --title 'Some customizer' --clientSideComponentId 799883f5-7962-4384-a10a-105adaec6ffc --clientSideComponentProperties '{ "someProperty": "Some value" }' --webUrl https://contoso.sharepoint.com/sites/sales --scope 'Site'
|
|
@@ -29,11 +29,14 @@ m365 spo applicationcustomizer set [options]
|
|
|
29
29
|
: The new title of the Application Customizer.
|
|
30
30
|
|
|
31
31
|
`--description [description]`
|
|
32
|
-
: Description of the
|
|
32
|
+
: Description of the Application Customizer. Specify an empty string to clear.
|
|
33
33
|
|
|
34
34
|
`-p, --clientSideComponentProperties [clientSideComponentProperties]`
|
|
35
35
|
: The Client Side Component properties of the Application Customizer.
|
|
36
36
|
|
|
37
|
+
`--hostProperties [hostProperties]`
|
|
38
|
+
: Set the host properties for the Application Customizer. Set to an empty string to clear the value.
|
|
39
|
+
|
|
37
40
|
`-s, --scope [scope]`
|
|
38
41
|
: The scope where to lookup the Application Customizer. Allowed values: `Site`, `Web`, and `All`. Defaults to `All`.
|
|
39
42
|
```
|
|
@@ -42,7 +45,7 @@ m365 spo applicationcustomizer set [options]
|
|
|
42
45
|
|
|
43
46
|
## Remarks
|
|
44
47
|
|
|
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
|
|
48
|
+
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 value because the command shell treats quotes differently. For example, this is how Application Customizer can be updated from the Windows cmd.exe:
|
|
46
49
|
|
|
47
50
|
```sh
|
|
48
51
|
m365 spo applicationcustomizer set --webUrl https://contoso.sharepoint.com/sites/sales --id b41916e7-e69d-467f-b37f-ff8ecf8f99f2 --newTitle "Some customizer" --clientSideComponentProperties '{\"testMessage\":\"Test message\"}'
|
|
@@ -52,21 +55,21 @@ Note, how the clientSideComponentProperties option (--clientSideComponentPropert
|
|
|
52
55
|
|
|
53
56
|
:::warning[Escaping JSON in PowerShell]
|
|
54
57
|
|
|
55
|
-
When using the `--clientSideComponentProperties`
|
|
58
|
+
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.
|
|
56
59
|
|
|
57
60
|
:::
|
|
58
61
|
|
|
59
|
-
This command can be used for updating an
|
|
62
|
+
This command can be used for updating an Application Customizer on a specific site. To update an Application Customizer that's installed tenant-wide, view our dedicated [spo tenant applicationcustomizer set](../tenant/tenant-applicationcustomizer-set.mdx) command.
|
|
60
63
|
|
|
61
64
|
## Examples
|
|
62
65
|
|
|
63
|
-
Updates the title of an
|
|
66
|
+
Updates the title of an Application Customizer on the sales site.
|
|
64
67
|
|
|
65
68
|
```sh
|
|
66
69
|
m365 spo applicationcustomizer set --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --newTitle "Some customizer" --webUrl https://contoso.sharepoint.com/sites/sales
|
|
67
70
|
```
|
|
68
71
|
|
|
69
|
-
Updates the properties of an
|
|
72
|
+
Updates the properties of an Application Customizer on the sales site.
|
|
70
73
|
|
|
71
74
|
```sh
|
|
72
75
|
m365 spo applicationcustomizer set --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --clientSideComponentProperties '{ "testMessage": "Test message" }' --webUrl https://contoso.sharepoint.com/sites/sales
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import Global from '../../_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# spo brandcenter colors list
|
|
6
|
+
|
|
7
|
+
Lists the brand center colors
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 spo brandcenter colors list [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
<Global />
|
|
18
|
+
|
|
19
|
+
## Permissions
|
|
20
|
+
|
|
21
|
+
<Tabs>
|
|
22
|
+
<TabItem value="Delegated">
|
|
23
|
+
|
|
24
|
+
| Resource | Permissions |
|
|
25
|
+
|------------|---------------|
|
|
26
|
+
| SharePoint | AllSites.Read |
|
|
27
|
+
|
|
28
|
+
</TabItem>
|
|
29
|
+
<TabItem value="Application">
|
|
30
|
+
|
|
31
|
+
| Resource | Permissions |
|
|
32
|
+
|------------|----------------|
|
|
33
|
+
| SharePoint | Sites.Read.All |
|
|
34
|
+
|
|
35
|
+
</TabItem>
|
|
36
|
+
</Tabs>
|
|
37
|
+
|
|
38
|
+
## Remarks
|
|
39
|
+
|
|
40
|
+
If the brand colors list has not been created yet in the Brand Center, the command will return an empty array.
|
|
41
|
+
|
|
42
|
+
## Examples
|
|
43
|
+
|
|
44
|
+
List all brand center colors
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 spo brandcenter colors list
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Response
|
|
51
|
+
|
|
52
|
+
<Tabs>
|
|
53
|
+
<TabItem value="JSON">
|
|
54
|
+
|
|
55
|
+
```json
|
|
56
|
+
[
|
|
57
|
+
{
|
|
58
|
+
"Title": "Primary",
|
|
59
|
+
"ColorCode": "#0078D4",
|
|
60
|
+
"IsVisible": true
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"Title": "Secondary",
|
|
64
|
+
"ColorCode": "#FF4500",
|
|
65
|
+
"IsVisible": false
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
</TabItem>
|
|
71
|
+
<TabItem value="Text">
|
|
72
|
+
|
|
73
|
+
```txt
|
|
74
|
+
Title ColorCode IsVisible
|
|
75
|
+
--------- --------- ---------
|
|
76
|
+
Primary #0078D4 true
|
|
77
|
+
Secondary #FF4500 false
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
</TabItem>
|
|
81
|
+
<TabItem value="CSV">
|
|
82
|
+
|
|
83
|
+
```csv
|
|
84
|
+
Title,ColorCode,IsVisible
|
|
85
|
+
Primary,#0078D4,true
|
|
86
|
+
Secondary,#FF4500,false
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
</TabItem>
|
|
90
|
+
<TabItem value="Markdown">
|
|
91
|
+
|
|
92
|
+
```md
|
|
93
|
+
# spo brandcenter colors list
|
|
94
|
+
|
|
95
|
+
Date: 4/4/2026
|
|
96
|
+
|
|
97
|
+
## Primary
|
|
98
|
+
|
|
99
|
+
Property | Value
|
|
100
|
+
---------|-------
|
|
101
|
+
Title | Primary
|
|
102
|
+
ColorCode | #0078D4
|
|
103
|
+
IsVisible | true
|
|
104
|
+
|
|
105
|
+
## Secondary
|
|
106
|
+
|
|
107
|
+
Property | Value
|
|
108
|
+
---------|-------
|
|
109
|
+
Title | Secondary
|
|
110
|
+
ColorCode | #FF4500
|
|
111
|
+
IsVisible | false
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
</TabItem>
|
|
115
|
+
</Tabs>
|
|
@@ -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