Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.58 KB

Set-CIPPOneDrivePerms.md

File metadata and controls

32 lines (26 loc) · 1.58 KB

Set-CIPPOneDrivePerms

SYNOPSIS

Sets permissions for a user on a OneDrive.

DESCRIPTION

The Set-CIPPOneDrivePerms function is used to give or remove access permissions for a specified user on a OneDrive.

PARAMETERS

-CustomerTenantID

Foo Foo
The ID of the customer's tenant.

-OneDriveUserUPN

Foo Foo
The User Principal Name (UPN) of the OneDrive user.

-RemovePermission

Foo Foo Foo
Specifies whether to remove the access permission for the specified user. If set to $true, the permission will be removed. If set to $false, the permission will be granted.

-GiveAccessToUPN

Foo Foo
The User Principal Name (UPN) of the user to whom access is being granted or removed.

EXAMPLE 1

PS > Set-CIPPOneDrivePerms -CustomerTenantID "contoso.onmicrosoft.com" -OneDriveUserUPN "[email protected]" -RemovePermission $false -GiveAccessToUPN "[email protected]"

EXAMPLE 2

PS > Set-CIPPOneDrivePerms -CustomerTenantID "contoso.onmicrosoft.com" -OneDriveUserUPN "[email protected]" -RemovePermission $true -GiveAccessToUPN "[email protected]"