Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 1.46 KB

Get-CIPPSharePointSites.md

File metadata and controls

32 lines (27 loc) · 1.46 KB

Get-CIPPSharePointSites

SYNOPSIS

Retrieves SharePoint sites for a specified customer tenant.

DESCRIPTION

The Get-CIPPSharePointSites function retrieves SharePoint 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 SharePoint sites. This parameter is mandatory.

-urlonly

Foo Foo Foo
Specifies whether to retrieve only the URLs of the SharePoint sites. By default, this parameter is not specified.

-UserUPN

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

EXAMPLE 1

PS > Get-CIPPSharePointSites -CustomerTenantID "contoso.onmicrosoft.com"

EXAMPLE 2

PS > Get-CIPPSharePointSites -CustomerTenantID "contoso.onmicrosoft.com" -urlonly

EXAMPLE 3

PS > Get-CIPPSharePointSites -CustomerTenantID "contoso.onmicrosoft.com" -UserUPN "user@contoso.com"