def METHOD_NAME(email, name):
    """Rename an existing user"""
    foreign_id = "system:aleph" if "default" in email else "password:{}".format(email)
    role = Role.by_foreign_id(foreign_id)
    if role:
        role.update({"name": name})
        db.session.add(role)
        db.session.commit()
        update_role(role)
    return role