def assign_role_to_user(role_db, user_db, description=None):
 role_assignment_db = UserRoleAssignmentDB(user=user_db.name, role=role_db.name, description=description)
 role_assignment_db = UserRoleAssignment.add_or_update(role_assignment_db)
 return role_assignment_db

def assign_role_to_user ( role_db , user_db , description = None ) : role_assignment_db = UserRoleAssignmentDB ( user = user_db . name , role = role_db . name , description = description ) role_assignment_db = UserRoleAssignment . add_or_update ( role_assignment_db ) return role_assignment_db
assign role to a user .