---
title: "POST /v4/users/{+userId}:bulkEditAssignedUserRoles"
method: POST
path: "/v4/users/{+userId}:bulkEditAssignedUserRoles"
tags: ["users"]
---

# POST /v4/users/{+userId}:bulkEditAssignedUserRoles

`POST /v4/users/{+userId}:bulkEditAssignedUserRoles`

Bulk edits user roles for a user. The operation will delete the assigned user roles provided in BulkEditAssignedUserRolesRequest.deletedAssignedUserRoles and then assign the user roles provided in BulkEditAssignedUserRolesRequest.createdAssignedUserRoles. This method has unique authentication requirements. Read the prerequisites in our [Managing Users guide](/display-video/api/guides/users/overview#prerequisites) before using this method. The "Try this method" feature does not work for this method.

## Path parameters

- `userId` string, required

## Request body

- BulkEditAssignedUserRolesRequest — Request message for BulkEditAssignedUserRoles.
  - `createdAssignedUserRoles` AssignedUserRole[] — The assigned user roles to create in batch, specified as a list of AssignedUserRoles.
    - `assignedUserRoleId` string — Output only. The ID of the assigned user role.
    - `partnerId` string, int64 — The ID of the partner that the assigned user role applies to.
    - `advertiserId` string, int64 — The ID of the advertiser that the assigend user role applies to.
    - `userRole` 'USER_ROLE_UNSPECIFIED' | 'ADMIN' | 'ADMIN_PARTNER_CLIENT' | 'STANDARD' | 'STANDARD_PLANNER' | 'STANDARD_PLANNER_LIMITED' | 'STANDARD_PARTNER_CLIENT' | 'READ_ONLY' | 'REPORTING_ONLY' | 'LIMITED_REPORTING_ONLY' | 'CREATIVE' | 'CREATIVE_ADMIN' — Required. The user role to assign to a user for the entity.
  - `deletedAssignedUserRoles` string[] — The assigned user roles to delete in batch, specified as a list of assigned_user_role_ids. The format of assigned_user_role_id is `entityType-entityid`, for example `partner-123`.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/displayvideo.md) · [All operations](https://skmtc.net/google/apis/displayvideo/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/displayvideo/versions/68b64e49eced/schema)
