Skip to content

Commit b96d8d7

Browse files
author
Jake Wilson
committed
Merge remote-tracking branch 'MainRepo/main' into syntex-settings-support to resolve merge conflicts
2 parents 1c50a57 + e4260fb commit b96d8d7

File tree

4 files changed

+198
-0
lines changed

4 files changed

+198
-0
lines changed
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
external help file:
3+
Module Name: Microsoft.Online.SharePoint.PowerShell
4+
online version: https://learn.microsoft.com/powershell/module/sharepoint-online/add-spocontentsecuritypolicy
5+
applicable: SharePoint Online
6+
title: Add-SPOContentSecurityPolicy
7+
schema: 2.0.0
8+
author: jaobrie
9+
ms.author: jaobrie
10+
manager: ryannak
11+
ms.reviewer:
12+
---
13+
14+
# Add-SPOContentSecurityPolicy
15+
16+
## SYNOPSIS
17+
18+
Adds an entry to the **Content Security Policy** configuration.
19+
20+
## SYNTAX
21+
22+
### Default
23+
24+
```powershell
25+
Add-SPOContentSecurityPolicy [-Url] <String> [-Directive] <String>
26+
```
27+
28+
## DESCRIPTION
29+
30+
Adds an entry to the **Content Security Policy** configuration.
31+
The url in each entry will be added to the corresponding directive during construction of the Content-Security-Policy header.
32+
In multi-geo environments **Content Security Policy** entries are unique to each geo.
33+
Entries with a "*" directive will be applied to all directives.
34+
35+
## PARAMETERS
36+
37+
### -Url
38+
39+
Url to allow as part of this **Content Security Policy** entry.
40+
41+
```yaml
42+
Type: String
43+
Parameter Sets: (All)
44+
Aliases:
45+
Applicable: SharePoint Online
46+
47+
Required: True
48+
Position: Named
49+
Default value: None
50+
Accept pipeline input: False
51+
Accept wildcard characters: False
52+
```
53+
54+
### -Directive
55+
56+
Directive to allow as part of this **Content Security Policy** entry.
57+
Currently allowed values are "*", "script-src" and "worker-src".
58+
59+
```yaml
60+
Type: String
61+
Parameter Sets: (All)
62+
Aliases:
63+
Applicable: SharePoint Online
64+
65+
Required: True
66+
Position: Named
67+
Default value: None
68+
Accept pipeline input: False
69+
Accept wildcard characters: False
70+
```
71+
72+
## RELATED LINKS
73+
74+
[Get-SPOContentSecurityPolicy](Get-SPOContentSecurityPolicy.md)
75+
76+
[Remove-SPOContentSecurityPolicy](Remove-SPOContentSecurityPolicy.md)
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
external help file:
3+
Module Name: Microsoft.Online.SharePoint.PowerShell
4+
online version: https://learn.microsoft.com/powershell/module/sharepoint-online/get-spocontentsecuritypolicy
5+
applicable: SharePoint Online
6+
title: Get-SPOContentSecurityPolicy
7+
schema: 2.0.0
8+
author: jaobrie
9+
ms.author: jaobrie
10+
manager: ryannak
11+
ms.reviewer:
12+
---
13+
14+
# Get-SPOContentSecurityPolicy
15+
16+
## SYNOPSIS
17+
18+
Returns all entries in the current **Content Security Policy** configuration.
19+
20+
## SYNTAX
21+
22+
### Default
23+
24+
```powershell
25+
Get-SPOContentSecurityPolicy
26+
```
27+
28+
## DESCRIPTION
29+
30+
Returns all entries in the current **Content Security Policy** configuration.
31+
The url in each entry will be added to the corresponding directive during construction of the `Content-Security-Policy` header.
32+
33+
## RELATED LINKS
34+
35+
[Add-SPOContentSecurityPolicy](Add-SPOContentSecurityPolicy.md)
36+
37+
[Remove-SPOContentSecurityPolicy](Remove-SPOContentSecurityPolicy.md)
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
external help file:
3+
Module Name: Microsoft.Online.SharePoint.PowerShell
4+
online version: https://learn.microsoft.com/powershell/module/sharepoint-online/remove-spocontentsecuritypolicy
5+
applicable: SharePoint Online
6+
title: Remove-SPOContentSecurityPolicy
7+
schema: 2.0.0
8+
author: jaobrie
9+
ms.author: jaobrie
10+
manager: ryannak
11+
ms.reviewer:
12+
---
13+
14+
# Remove-SPOContentSecurityPolicy
15+
16+
## SYNOPSIS
17+
18+
Removes entries from the **Content Security Policy** configuration.
19+
20+
## SYNTAX
21+
22+
### Default
23+
24+
```powershell
25+
Remove-SPOContentSecurityPolicy [-Url] <String>
26+
```
27+
28+
## DESCRIPTION
29+
30+
Removes all entries associated with the given url from the **Content Security Policy** configuration.
31+
In multi-geo environments, **Content Security Policy** entries are unique to each geo.
32+
33+
## PARAMETERS
34+
35+
### -Url
36+
37+
Url of the **Content Security Policy** entries to be removed.
38+
39+
```yaml
40+
Type: String
41+
Parameter Sets: (All)
42+
Aliases:
43+
Applicable: SharePoint Online
44+
45+
Required: True
46+
Position: 0
47+
Default value: None
48+
Accept pipeline input: False
49+
Accept wildcard characters: False
50+
```
51+
52+
## RELATED LINKS
53+
54+
[Get-SPOContentSecurityPolicy](Get-SPOContentSecurityPolicy.md)
55+
56+
[Add-SPOContentSecurityPolicy](Add-SPOContentSecurityPolicy.md)

sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ Set-SPOTenant
156156
[-CoreDefaultLinkToExistingAccess <Boolean>]
157157
[-SelfServiceSiteCreationDisabled <Boolean>]
158158
[-SyncAadB2BManagementPolicy <Boolean>]
159+
[-ContentSecurityPolicyConfigSynced <Boolean>]
159160
[-DocumentUnderstandingModelScope <SyntexFeatureScopeValue>]
160161
[-DocumentUnderstandingModelSelectedSitesList [String[]]]
161162
[-DocumentUnderstandingModelSelectedSitesListOperation <SelectedSitesListOperations>]
@@ -3007,6 +3008,24 @@ Accept pipeline input: False
30073008
Accept wildcard characters: False
30083009
```
30093010

3011+
### -ResyncContentSecurityPolicyConfigurationEntries
3012+
3013+
When set to `True`, forces a sync of **Content Security Policy** entries for SharePoint framework component in the tenant application catalog.
3014+
New entries will be added to the configuration, if not already present, based on the `cdnBasedPath` property under a solution's `.config/write-manifests.json` if present.
3015+
The sync may take up to 24 hours to complete.
3016+
In multi-geo environments, **Content Security Policy** entries are unique to each geo.
3017+
3018+
```yaml
3019+
Type: Boolean
3020+
Parameter Sets: (All)
3021+
Applicable: SharePoint Online
3022+
Required: False
3023+
Position: Named
3024+
Default value: False
3025+
Accept pipeline input: False
3026+
Accept wildcard characters: False
3027+
```
3028+
30103029
### -DocumentUnderstandingModelScope
30113030

30123031
This parameter allows administrators to limit which SharePoint sites the document understanding model and [unstructurted document processesing](/microsoft-365/syntex/document-understanding-overview) premium feature is available on.
@@ -3024,6 +3043,7 @@ The valid values are:
30243043
```yaml
30253044
Type: SyntexFeatureScopeValue
30263045
Parameter Sets: (All)
3046+
Applicable: SharePoint Online
30273047
Required: False
30283048
Position: Named
30293049
Default value: None
@@ -3041,6 +3061,7 @@ This parameter allows administrators to pass a list of SharePoint site URLs to m
30413061
```yaml
30423062
Type: String[]
30433063
Parameter Sets: (All)
3064+
Applicable: SharePoint Online
30443065
Required: False
30453066
Position: Named
30463067
Default value: None
@@ -3065,6 +3086,7 @@ The valid values are:
30653086
```yaml
30663087
Type: SelectedSitesListOperations
30673088
Parameter Sets: (All)
3089+
Applicable: SharePoint Online
30683090
Required: False
30693091
Position: Named
30703092
Default value: Overwrite
@@ -3089,6 +3111,7 @@ The valid values are:
30893111
```yaml
30903112
Type: SyntexFeatureScopeValue
30913113
Parameter Sets: (All)
3114+
Applicable: SharePoint Online
30923115
Required: False
30933116
Position: Named
30943117
Default value: None
@@ -3106,6 +3129,7 @@ This parameter allows administrators to pass a list of SharePoint site URLs to m
31063129
```yaml
31073130
Type: String[]
31083131
Parameter Sets: (All)
3132+
Applicable: SharePoint Online
31093133
Required: False
31103134
Position: Named
31113135
Default value: None
@@ -3130,6 +3154,7 @@ The valid values are:
31303154
```yaml
31313155
Type: SelectedSitesListOperations
31323156
Parameter Sets: (All)
3157+
Applicable: SharePoint Online
31333158
Required: False
31343159
Position: Named
31353160
Default value: Overwrite
@@ -3147,6 +3172,7 @@ This parameter allows administrators to choose whether or not the AI builder mod
31473172
```yaml
31483173
Type: Boolean
31493174
Parameter Sets: (All)
3175+
Applicable: SharePoint Online
31503176
Required: False
31513177
Position: Named
31523178
Default value: None
@@ -3171,6 +3197,7 @@ The valid values are:
31713197
```yaml
31723198
Type: SyntexFeatureScopeValue
31733199
Parameter Sets: (All)
3200+
Applicable: SharePoint Online
31743201
Required: False
31753202
Position: Named
31763203
Default value: None
@@ -3188,6 +3215,7 @@ This parameter allows administrators to pass a list of SharePoint site URLs to m
31883215
```yaml
31893216
Type: String[]
31903217
Parameter Sets: (All)
3218+
Applicable: SharePoint Online
31913219
Required: False
31923220
Position: Named
31933221
Default value: None
@@ -3212,6 +3240,7 @@ The valid values are:
32123240
```yaml
32133241
Type: SelectedSitesListOperations
32143242
Parameter Sets: (All)
3243+
Applicable: SharePoint Online
32153244
Required: False
32163245
Position: Named
32173246
Default value: Overwrite

0 commit comments

Comments
 (0)