Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.75 KB

Set-CIPPSharePointSiteMembers.md

File metadata and controls

36 lines (28 loc) · 1.75 KB

Set-CIPPSharePointSiteMembers

SYNOPSIS

Sets SharePoint site members with specified permissions.

DESCRIPTION

The Set-CIPPSharePointSiteMembers function is used to set SharePoint site members with specified permissions. It sends a request to the CIPP API to execute the operation.

PARAMETERS

-CustomerTenantID

Foo Foo
Specifies the ID of the customer's tenant.

-SharePointType

Foo Foo
Specifies the type of SharePoint site.

-SiteUrl

Foo Foo
Specifies the URL of the SharePoint site.

-AddPermission

Foo Foo Foo
Specifies whether to add or remove permissions for the user.

-GroupUPN

Foo Foo
Specifies the UPN (User Principal Name) of the site group.

-UserToGiveAccessUPN

Foo Foo
Specifies the UPN of the user to give access to.

EXAMPLE 1

PS > Set-CIPPSharePointSiteMembers -CustomerTenantID "contoso.onmicrosoft.com" -SharePointType "Group" -SiteUrl "https://contoso.sharepoint.com/sites/TeamSite" -AddPermission $true -GroupUPN "group@contoso.com" -UserToGiveAccessUPN "user@contoso.com"