Skip to content

Commit

Permalink
updated csv section end of cmdlet
Browse files Browse the repository at this point in the history
  • Loading branch information
reshmee011 committed Oct 10, 2024
1 parent 6df31d6 commit 7ac7547
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 30 deletions.
31 changes: 17 additions & 14 deletions documentation/Add-PnPTenantRestrictedSearchAllowedList.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,6 @@ 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:

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

### EXAMPLE 2
```powershell
Expand All @@ -46,13 +39,6 @@ Add-PnPTenantRestrictedSearchAllowedList -SitesListFileUrl "C:\temp\sitelist.csv

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

Sample CSV file content:

```csv
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")
Expand Down Expand Up @@ -119,6 +105,23 @@ Accept pipeline input: False
Accept wildcard characters: False
```
## Sample CSV file content
### With Header
```csv
SiteUrl
https://contoso.sharepoint.com/sites/Company311
https://contoso.sharepoint.com/sites/contosoportal
```

### With No Header

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

## RELATED LINKS

[How does Restricted SharePoint Search work?](https://learn.microsoft.com/sharepoint/restricted-sharepoint-search)
Expand Down
33 changes: 17 additions & 16 deletions documentation/Remove-PnPTenantRestrictedSearchAllowedList.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,13 @@ 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:

```csv
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:

```csv
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 Expand Up @@ -119,6 +103,23 @@ Accept pipeline input: False
Accept wildcard characters: False
```
## Sample CSV file content
### With Header
```csv
SiteUrl
https://contoso.sharepoint.com/sites/Company311
https://contoso.sharepoint.com/sites/contosoportal
```

### With No Header

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

## RELATED LINKS

[How does Restricted SharePoint Search work?](https://learn.microsoft.com/sharepoint/restricted-sharepoint-search)
Expand Down

0 comments on commit 7ac7547

Please sign in to comment.