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

# POST /v4/users/{usersId}:bulkEditAssignedUserRoles

`POST /v4/users/{usersId}:bulkEditAssignedUserRoles`

## Request

- Base URL: `https://displayvideo.googleapis.com`
- URL: `https://displayvideo.googleapis.com/v4/users/{usersId}:bulkEditAssignedUserRoles`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/display-video-user-management`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/display-video-user-management`

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

- `usersId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string

## Request body

- BulkEditAssignedUserRolesRequest: Request message for BulkEditAssignedUserRoles.
  - `createdAssignedUserRoles` AssignedUserRole[]: The assigned user roles to create in batch, specified as a list of AssignedUserRoles.
    - `advertiserId` string, int64: The ID of the advertiser that the assigend user role applies to.
    - `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.
    - `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

- BulkEditAssignedUserRolesResponse
  - `createdAssignedUserRoles` AssignedUserRole[]: The list of assigned user roles that have been successfully created. This list will be absent if empty.
    - `advertiserId` string, int64: The ID of the advertiser that the assigend user role applies to.
    - `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.
    - `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.

---

[API](https://skmtc.dev/google/apis/displayvideo.md) - [All operations](https://skmtc.dev/google/apis/displayvideo/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/displayvideo/revisions/c4f5eaed2791?raw)
