code: def add_role_to_user(user, role):
      
      user = _query_to_user(user)
      role = _query_to_role(role)
      if click.confirm(f'Are you sure you want to add {role!r} to {user!r}?'):
          user.roles.append(role)
          user_manager.save(user, commit=True)
          click.echo(f'Successfully added {role!r} to {user!r}')
      else:
          click.echo('Cancelled.')
docs: Add a role to a user.