def METHOD_NAME(self, where: str) -> str:
    # Query for the User removing a "WHERE " prefix from where if exists.
    query = "SELECT Id FROM User WHERE {} LIMIT 2".format(
        re.sub(r"^WHERE ", "", where, flags=re.I)
    )
    self.logger.info(f"Querying User: {query}")
    user_ids = []
    try:
        for record in self.sf.query_all(query)["records"]:
            user_ids.append(record["Id"])
    except SalesforceMalformedRequest as e:
        # Raise an easier to digest exception.
        self._raise_cumulusci_exception(e)
    # Validate only 1 User found.
    if len(user_ids) < 1:
        raise CumulusCIException("No Users found.")
    if 1 < len(user_ids):
        raise CumulusCIException(
            "More than one User found (at least 2): {}".format(", ".join(user_ids))
        )
    # Log and return User ID.
    self.logger.info(f"Uploading profile photo for the User with ID {user_ids[0]}")
    return user_ids[0]