Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.7 KB

Get-CIPPOneDriveList.md

File metadata and controls

38 lines (30 loc) · 1.7 KB

Get-CIPPOneDriveList

SYNOPSIS

Retrieves a list of OneDrive sites for a specified customer tenant.

DESCRIPTION

The Get-CIPPOneDriveList function retrieves a list of OneDrive sites for a specified customer tenant. It uses the Invoke-CIPPRestMethod function to make a REST API call to retrieve the sites.

PARAMETERS

-CustomerTenantID

Foo Foo
The ID of the customer tenant for which to retrieve the OneDrive sites.

-urlonly

Foo Foo Foo
Specifies whether to return only the URLs of the OneDrive sites. If this switch is used, only the URLs will be returned.

-UserUPN

Foo Foo
The user's UPN (User Principal Name) for which to retrieve the OneDrive sites. This parameter is optional.

EXAMPLE 1

PS>Get-CIPPOneDriveList -CustomerTenantID "example.com"

Retrieves a list of OneDrive sites for the customer tenant with the ID "example.com".

EXAMPLE 2

PS>Get-CIPPOneDriveList -CustomerTenantID "example.com" -urlonly

Retrieves a list of OneDrive site URLs for the customer tenant with the ID "example.com".

EXAMPLE 3

PS>Get-CIPPOneDriveList -CustomerTenantID "example.com" -UserUPN "user@example.com"

Retrieves a list of OneDrive sites for the customer tenant with the ID "example.com" and the specified user's UPN "user@example.com".