---
title: "PATCH /v1/{+name}"
method: PATCH
path: "/v1/{+name}"
tags: ["projects"]
---

# PATCH /v1/{+name}

`PATCH /v1/{+name}`

Updates the parameters of a single User.

## Path parameters

- `name` string, required

## Query parameters

- `allowMissing` boolean
- `requestId` string
- `updateMask` string
- `validateOnly` boolean

## Request body

- User — Message describing User object.
  - `name` string — Output only. Name of the resource in the form of projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.
  - `keepExtraRoles` boolean — Input only. If the user already exists and it has additional roles, keep them granted.
  - `databaseRoles` string[] — Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
  - `userType` 'USER_TYPE_UNSPECIFIED' | 'ALLOYDB_BUILT_IN' | 'ALLOYDB_IAM_USER' — Optional. Type of this user.
  - `password` string — Input only. Password for the user.

## Response `200`

Successful response

---

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