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

# PATCH /v4/users/{+userId}

`PATCH /v4/users/{+userId}`

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

- `userId` string, required

## Query parameters

- `updateMask` string

## Request body

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

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