Skip to content

Commit e135d60

Browse files
authored
clarified example
1 parent 70cf629 commit e135d60

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ This example removes an existing setting from the allow list.
7070
```powershell
7171
Set-SPOTenantPreAuthSettings -IsDisabled $true
7272
73-
Set-SPOTenantPreAuthSettings -Add -Type Allow -AppIds "00000000-0000-0000-0000-000000000000" -Features "Download"
73+
Set-SPOTenantPreAuthSettings -Add -Type Allow -AppIds "00000000-0000-0000-0000-000000000000" -Features "All"
7474
75-
Set-SPOTenantPreAuthSettings -Add -Type Deny -AppIds "00000000-0000-0000-0000-000000000000,11111111-1111-1111-1111-111111111111" -Features "All"
75+
Set-SPOTenantPreAuthSettings -Add -Type Deny -AppIds "00000000-0000-0000-0000-000000000000" -Features "Download,Embed"
7676
```
77-
This example disables pre auth for the tenant overall, allows app id 00000000-0000-0000-0000-000000000000 to continue using pre auth for the Download feature, and denies apps with ids 00000000-0000-0000-0000-000000000000 and 11111111-1111-1111-1111-111111111111 from using pre auth for all features.
77+
This example disables pre auth for the tenant overall and allows app id 00000000-0000-0000-0000-000000000000 to continue using pre auth for all features apart from the Download and Embed features.
7878

79-
In this case, the app with id 00000000-0000-0000-0000-000000000000 will not be allowed to use pre auth for the Download feature even though we have already allow listed the app to use the feature. This happens because there is also a setting that explicitly denies the same app from using pre auth for all features in the deny list, which takes precedence over the allow list (see the note in the description).
79+
In this case, the app with id 00000000-0000-0000-0000-000000000000 will not be allowed to use pre auth for the Download and Embed features, but it can use pre auth for all other features. This happens because the deny list takes precedence over the allow list, so for any overlapping settings between the two lists, the deny list will win (see the first note in the description).
8080

8181
### Example 4
8282
```powershell
@@ -88,7 +88,9 @@ Set-SPOTenantPreAuthSettings -Add -Type Allow -AppIds "11111111-1111-1111-1111-1
8888
```
8989
This example disables pre auth for the tenant overall, but it has overlapping settings in the allow list. The first setting says that none of the apps are allowed to use pre auth for the Download and Embed features. The second setting says that the app with id 11111111-1111-1111-1111-111111111111 is allowed to use pre auth for all features.
9090

91-
In this case, pre auth will still be allowed in the Download and Embed features for the app with id 11111111-1111-1111-1111-111111111111 even though we said that no apps can use preauth for those features. This is because the second allow list setting overwrites the first allow list setting (see the note in the description).
91+
In this case, pre auth will be allowed for all features including Download and Embed for the app with id 11111111-1111-1111-1111-111111111111 even though we said that no apps can use preauth for those two features. This happens because the second allow list setting overwrites the first allow list setting (see the second note in the description).
92+
93+
If you swapped the order of the allow list settings, pre auth will no longer be allowed for the Download and Embed features for the app with id 11111111-1111-1111-1111-111111111111. But all other features should still be allowed to continue using pre auth for that app.
9294

9395
## PARAMETERS
9496

0 commit comments

Comments
 (0)