Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update restricted-sharepoint-search-admin-scripts.md #4169

Open
wants to merge 1 commit into
base: public
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Applies to: SharePoint Online
```powershell
Set-SPOTenantRestrictedSearchMode 
[-Mode] {Disabled | Enabled}
 [<CommonParameters>]
[<CommonParameters>]
```

**Example 1**
Expand All @@ -102,7 +102,7 @@ Example 1 sets or enables the Restricted Tenant Search mode for the tenant.
**Example 2**

```powershell
Set-SPOTenantRestrictedSearchMode Mode Disabled  
Set-SPOTenantRestrictedSearchMode -Mode Disabled  
```

Example 2 disables the Restricted Tenant Search mode for the tenant.
Expand Down Expand Up @@ -157,7 +157,7 @@ This example lets the admin add the sites to the allowed list.
Add-SPOTenantRestrictedSearchAllowedList  -SitesListFileUrl C:\Users\admin\Downloads\UrlList.csv
```

This example lets the admin add the sites to the allowed list by giving a CSV file. Add the list of site URLs in URL column.
This example lets the admin add the sites to the allowed list by giving a CSV file. Add the list of site URLs in URL column.

**Parameters**

Expand Down Expand Up @@ -238,7 +238,7 @@ Example 2 lets the admin add the sites to the allowed list by giving a CSV file.

**-SitesListFileURL**

File that has list of sites that can be removed from an allowed list when the tenant is set to Restricted Tenant Search Mode.
File that has list of sites that can be removed from an allowed list when the tenant is set to Restricted Tenant Search Mode.

| Type   | String   |
|------------------------------|----------|
Expand All @@ -261,13 +261,13 @@ You can get the existing list of URLs in the allowed list by running the followi
**Syntax**

```powershell
Get-SPOTenantRestrictedSearchAllowedList
```  
Get-SPOTenantRestrictedSearchAllowedList
```

**Example**

```powershell
Get-SPOTenantRestrictedSearchAllowedList
Get-SPOTenantRestrictedSearchAllowedList
```

This example lets the admin get the existing allowed list in the tenant.