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

# PATCH /v4/users/{usersId}

`PATCH /v4/users/{usersId}`

## Request

- Base URL: `https://displayvideo.googleapis.com`
- URL: `https://displayvideo.googleapis.com/v4/users/{usersId}`
- 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`

Updates an existing user. Returns the updated user if successful. 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
- `updateMask` string, google-fieldmask

## Request body

- User: A single user in Display & Video 360.
  - `assignedUserRoles` AssignedUserRole[]: The assigned user roles. Required in CreateUser. Output only in UpdateUser. Can only be updated through BulkEditAssignedUserRoles.
    - `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.
  - `displayName` string: Required. The display name of the user. Must be UTF-8 encoded with a maximum size of 240 bytes.
  - `email` string: Required. Immutable. The email address used to identify the user.
  - `lastLoginTime` string, google-datetime: Output only. The timestamp when the user last logged in DV360 UI.
  - `name` string: Output only. The resource name of the user.
  - `userId` string, int64: Output only. The unique ID of the user. Assigned by the system.

## Response `200`

Successful response

- User: A single user in Display & Video 360.
  - `assignedUserRoles` AssignedUserRole[]: The assigned user roles. Required in CreateUser. Output only in UpdateUser. Can only be updated through BulkEditAssignedUserRoles.
    - `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.
  - `displayName` string: Required. The display name of the user. Must be UTF-8 encoded with a maximum size of 240 bytes.
  - `email` string: Required. Immutable. The email address used to identify the user.
  - `lastLoginTime` string, google-datetime: Output only. The timestamp when the user last logged in DV360 UI.
  - `name` string: Output only. The resource name of the user.
  - `userId` string, int64: Output only. The unique ID of the user. Assigned by the system.

---

[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)
