Retrieves the spam filter settings for a specified customer tenant ID.
The Get-CIPPSpamFilter function retrieves the spam filter settings for a specified customer tenant ID using the CIPP API. It sends a request to the "/api/listspamfilter" endpoint with the provided tenant ID as a filter parameter.
The customer tenant ID for which to retrieve the spam filter settings. This parameter is mandatory.
PS > Get-CIPPSpamFilter -CustomerTenantID "contoso.onmicrosoft.com"