def METHOD_NAME(self, user_id: str, content_document_id: str):
    # Call the Connect API to set our user photo.
    try:
        self.sf.restful(
            f"connect/user-profiles/{user_id}/photo",
            data=json.dumps({"fileId": content_document_id}),
            method="POST",
        )
    except SalesforceMalformedRequest as e:
        # Rollback ContentDocument, and raise an easier to digest exception.
        self.logger.error(
            "An error occured assigning the ContentDocument as the users's profile photo."
        )
        self.logger.error(f"Deleting ContentDocument {content_document_id}")
        self._delete_content_document(content_document_id)
        self._raise_cumulusci_exception(e)