Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.51 KB

Set-CIPPSharePointSiteAdmin.md

File metadata and controls

32 lines (25 loc) · 1.51 KB

Set-CIPPSharePointSiteAdmin

SYNOPSIS

Sets the SharePoint site admin for a given site.

DESCRIPTION

The Set-CIPPSharePointSiteAdmin function sets the SharePoint site admin for a specified site by making a REST API call to the CIPP API.

PARAMETERS

-CustomerTenantID

Foo Foo
The ID of the customer's tenant.

-CurrentAdminUPN

Foo Foo
The UPN (User Principal Name) of the current site admin.

-SiteUrl

Foo Foo
The URL of the SharePoint site.

-RemovePermission

Foo Foo Foo
Specifies whether to remove the admin permission for the current admin UPN.

-AdditionalAdminUPN

Foo Foo
The UPN of the additional admin to be added.

EXAMPLE 1

PS > Set-CIPPSharePointSiteAdmin -CustomerTenantID "contoso.onmicrosoft.com" -CurrentAdminUPN "admin@contoso.com" -SiteUrl "https://contoso.sharepoint.com/sites/site1" -RemovePermission $true -AdditionalAdminUPN "admin2@contoso.com"