Retrieves a list of CIPP tenants.
The Get-CIPPTenants function retrieves a list of CIPP tenants based on the specified parameters. It makes a REST API call to the "/api/listtenants" endpoint and returns the result.
Specifies the ID of the customer tenant. This parameter is optional.
Indicates whether to clear the cache before retrieving the tenants. This parameter is optional.
Indicates whether to trigger a refresh before retrieving the tenants. This parameter is optional.
PS > Get-CIPPTenants -CustomerTenantID "contoso.onmicrosoft.com" -ClearCache