Removes a user from a specified tenant.
The Remove-CIPPUser function deletes a user identified by their UserID from a specified tenant identified by the CustomerTenantID. It sends a request to the '/api/RemoveUser' endpoint to perform the deletion.
The ID of the tenant from which the user will be removed. This parameter is mandatory.
The unique identifier (GUID) or UserPrincipalName(UPN) of the user to be removed. This parameter is mandatory.
PS > Remove-CIPPUser -CustomerTenantID "tenant123.domain.com" -UserID "e7402930-efc9-4ba8-a959-ae7fc6c15021"
PS > Remove-CIPPUser -CustomerTenantID "3939eb14-06b3-4287-aea7-defe129c6741" -UserID "[email protected]"