def _get_user_id(resource_list, identity):
    """
    Return the UUID of a user regardless of whether the email or UUID is passed.
    """
    for resource in resource_list.items:
        if identity in (resource.properties.email, resource.id):
            return resource.id
    return None