def revoke_role_from_user(role_db, user_db):
 role_assignment_db = UserRoleAssignment.get(user=user_db.name, role=role_db.name)
 result = UserRoleAssignment.delete(role_assignment_db)
 return result

def revoke_role_from_user ( role_db , user_db ) : role_assignment_db = UserRoleAssignment . get ( user = user_db . name , role = role_db . name ) result = UserRoleAssignment . delete ( role_assignment_db ) return result
revoke role from a user .