Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.64 KB

Set-CIPPOneDriveShortCut.md

File metadata and controls

30 lines (23 loc) · 1.64 KB

Set-CIPPOneDriveShortCut

SYNOPSIS

Creates a OneDrive shortcut for a user to a specified SharePoint URL.

DESCRIPTION

The Set-CIPPOneDriveShortCut function creates a OneDrive shortcut for a specified user to a specified SharePoint URL. It uses the Invoke-CIPPRestMethod function to make a POST request to the "/api/execonedriveshortcut" endpoint.

PARAMETERS

-CustomerTenantID

Foo Foo
The default domain of the customer's tenant.

-Username

Foo Foo
The username of the user for whom the OneDrive shortcut is being created.

-UserID

Foo Foo
The UserID of the user for whom the OneDrive shortcut is being created.

-SharePointURL

Foo Foo
The URL of the SharePoint site to which the OneDrive shortcut will point.

EXAMPLE 1

PS > Set-CIPPOneDriveShortCut -CustomerTenantID "contoso.onmicrosoft.com" -Username "[email protected]" -UserID "98765432-1234-5678-9012-34567890abcd" -SharePointURL "https://contoso.sharepoint.com/sites/finance"

This example creates a OneDrive shortcut for the user "[email protected]" to the SharePoint site located at "https://contoso.sharepoint.com/sites/finance" in the customer's tenant with the ID "contoso.onmicrosoft.com".