def METHOD_NAME(
    user_id: str,
    auth_header: Dict[str, str],
    server_url: str,
    roles: List[str],
) -> requests.Response:
    """
    Update user permissions for a given user.
    """
    request_data = {"id": user_id, "roles": roles}
    set_permissions_path = USER_PERMISSIONS_PATH.format(user_id)
    response = requests.put(
        server_url + set_permissions_path,
        headers=auth_header,
        json=request_data,
    )
    handle_cli_response(response=response, verbose=False)
    return response