Skip to content
Merged
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
6 changes: 3 additions & 3 deletions documentation/Add-PnPSiteCollectionAdmin.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Add-PnPSiteCollectionAdmin
```

## DESCRIPTION
This command allows adding one to many users as site collection administrators to the site collection in the current context. It does not replace or remove existing site collection administrators.
This command allows adding one to many users as site collection administrators to the site collection in the current context. It does not replace or remove existing site collection administrators. You must be a Site Collection Admin to run this command. Use `Set-PnPTenantSite -Owners` if you are not an Admin for the site but have the SharePoint admin role.

## EXAMPLES

Expand All @@ -41,7 +41,7 @@ This will add user1@contoso.onmicrosoft.com and user2@contoso.onmicrosoft.com as

### EXAMPLE 3
```powershell
Get-PnPUser | ? Title -Like "*Doe" | Add-PnPSiteCollectionAdmin
Get-PnPUser | Where-Object Title -Like "*Doe" | Add-PnPSiteCollectionAdmin
```

This will add all users with their title ending with "Doe" as additional site collection owners to the site collection in the current context
Expand Down Expand Up @@ -78,4 +78,4 @@ Accept wildcard characters: False

## RELATED LINKS

[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)