Skip to content

Commit

Permalink
Merge pull request #4414 from reshmee011/addcsvsample
Browse files Browse the repository at this point in the history
csvsample to Remove-PnPTenantRestrictedSearchAllowedList and add-PnPTenantRestrictedSearchAllowedList doc
  • Loading branch information
KoenZomers authored Oct 11, 2024
2 parents dd23d32 + 0eab66c commit 9d2aa94
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions documentation/Add-PnPTenantRestrictedSearchAllowedList.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,29 @@ Add-PnPTenantRestrictedSearchAllowedList -SitesListFileUrl "C:\temp\sitelist.csv

Adds site URLs to the allowed list from a CSV file. The first line, which is assumed to be a header, is skipped.

Sample CSV file content with Header

SiteUrl
https://contoso.sharepoint.com/sites/Company311
https://contoso.sharepoint.com/sites/contosoportal

### EXAMPLE 2
```powershell
Add-PnPTenantRestrictedSearchAllowedList -SitesListFileUrl "C:\temp\sitelist.csv"
```

Adds site URLs to the allowed list from a CSV file.

Sample CSV file content without Header

https://contoso.sharepoint.com/sites/Company311
https://contoso.sharepoint.com/sites/contosoportal

### EXAMPLE 3
```powershell
Add-PnPTenantRestrictedSearchAllowedList -SitesList @("https://contoso.sharepoint.com/sites/Company311","https://contoso.sharepoint.com/sites/contosoportal")
```

Adds the specified sites to the allowed list.

## PARAMETERS
Expand Down
12 changes: 12 additions & 0 deletions documentation/Remove-PnPTenantRestrictedSearchAllowedList.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,25 @@ Remove-PnPTenantRestrictedSearchAllowedList -SitesListFileUrl "C:\temp\sitelist.

Removes site URLs from the allowed list from a CSV file. The first line, which is assumed to be a header, is skipped.

Sample CSV file content with Header

SiteUrl
https://contoso.sharepoint.com/sites/Company311
https://contoso.sharepoint.com/sites/contosoportal

### EXAMPLE 2
```powershell
Remove-PnPTenantRestrictedSearchAllowedList -SitesListFileUrl "C:\temp\sitelist.csv"
```

Removes site URLs from the allowed list from a CSV file.

Sample CSV file content without Header

https://contoso.sharepoint.com/sites/Company311
https://contoso.sharepoint.com/sites/contosoportal


### EXAMPLE 3
```powershell
Remove-PnPTenantRestrictedSearchAllowedList -SitesList @("https://contoso.sharepoint.com/sites/Company311","https://contoso.sharepoint.com/sites/contosoportal")
Expand Down

0 comments on commit 9d2aa94

Please sign in to comment.