## Resource: User

Message describing User object.

| JSON representation |
|---|
| ``` { "name": string, "password": string, "databaseRoles": [ string ], "userType": enum (`https://docs.cloud.google.com/alloydb/docs/reference/rest/v1beta/projects.locations.clusters.users#UserType`), "keepExtraRoles": boolean } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. Name of the resource in the form of projects/{project}/locations/{location}/cluster/{cluster}/users/{user}. |
| `password` | `string` Input only. Password for the user. |
| `databaseRoles[]` | `string` Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions. |
| `userType` | ``enum (`https://docs.cloud.google.com/alloydb/docs/reference/rest/v1beta/projects.locations.clusters.users#UserType`)`` Optional. Type of this user. |
| `keepExtraRoles` | `boolean` Input only. If the user already exists and it has additional roles, keep them granted. |

## UserType

Enum that details the user type.

| Enums ||
|---|---|
| `USER_TYPE_UNSPECIFIED` | Unspecified user type. |
| `ALLOYDB_BUILT_IN` | The default user type that authenticates via password-based authentication. |
| `ALLOYDB_IAM_USER` | Database user that can authenticate via IAM-Based authentication. |
| `ALLOYDB_IAM_GROUP` | Database user that represents an IAM group whose members can authenticate via IAM group-based authentication. |
| `ALLOYDB_IAM_GROUP_USER` | Represents a user that belongs to an IAM group. |
| `ALLOYDB_IAM_GROUP_SERVICE_ACCOUNT` | Represents a service account that belongs to an IAM group. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/alloydb/docs/reference/rest/v1beta/projects.locations.clusters.users/create` | Creates a new User in a given project, location, and cluster. |
| ### `https://docs.cloud.google.com/alloydb/docs/reference/rest/v1beta/projects.locations.clusters.users/delete` | Deletes a single User. |
| ### `https://docs.cloud.google.com/alloydb/docs/reference/rest/v1beta/projects.locations.clusters.users/get` | Gets details of a single User. |
| ### `https://docs.cloud.google.com/alloydb/docs/reference/rest/v1beta/projects.locations.clusters.users/list` | Lists Users in a given project and location. |
| ### `https://docs.cloud.google.com/alloydb/docs/reference/rest/v1beta/projects.locations.clusters.users/patch` | Updates the parameters of a single User. |