Retrieves SharePoint sites for a specified customer tenant.
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.
![]()
![]()
The ID of the customer tenant for which to retrieve SharePoint sites. This parameter is mandatory.
![]()
![]()
Specifies whether to retrieve only the URLs of the SharePoint sites. By default, this parameter is not specified.
![]()
![]()
The user's UPN (User Principal Name) for which to retrieve SharePoint sites. This parameter is optional.
PS > Get-CIPPSharePointSites -CustomerTenantID "contoso.onmicrosoft.com"
PS > Get-CIPPSharePointSites -CustomerTenantID "contoso.onmicrosoft.com" -urlonly
PS > Get-CIPPSharePointSites -CustomerTenantID "contoso.onmicrosoft.com" -UserUPN "user@contoso.com"