---
title: dots.v2.databases.byDatabase_cluster_uuid().users.byUsername().get()
description: Retrieve an Existing Database User
product: Reference
url: https://docs.digitalocean.com/reference/dots/reference/databases/databases-get-user/
last_updated: "2026-11-18"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# dots.v2.databases.byDatabase_cluster_uuid().users.byUsername().get()

Generated on 18 Nov 2026 from DoTs version [`v1.25.0`](https://github.com/digitalocean/dots/releases/tag/v1.25.0)

## Usage

```typescript
client.v2.databases.byDatabase_cluster_uuid(database_cluster_uuid).users.byUsername(username).get(requestConfiguration?: RequestConfiguration<object>): Promise<undefined | WithUsernameGetResponse>
```

## Description

To show information about an existing database user, send a GET request to [`/v2/databases/{database_cluster_uuid}/users/{username}`](https://docs.digitalocean.com/reference/api/reference/databases/index.html.md#databases_get_user).

Note: User management is not supported for Caching or Valkey clusters.

The response will be a JSON object with a `user` key. This will be set to an object containing the standard database user attributes. The user’s password will not show up unless the `database:view_credentials` scope is present.

For MySQL clusters, additional options will be contained in the `mysql_settings` object.

For PostgreSQL clusters, additional options will be contained in the `settings` object (for example, `pg_allow_replication`).

For Kafka clusters, additional options will be contained in the `settings` object.

For MongoDB clusters, additional information will be contained in the mongo_user_settings object

## Parameters

`database_cluster_uuid` string required

Example: `9cc10173-e9ea-4176-9dbc-a4cee4c4ff30`

A unique identifier for a database cluster.

`username` string required

Example: `app-01`

The name of the database user.

## Request Sample

## Show Request Sample

```typescript
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.databases
    .byDatabase_cluster_uuid("9cc10173-e9ea-4176-9dbc-a4cee4c4ff30").users
    .byUsername("app-01").get();
```

## Response Example

## Show Response Example

```json
{
  "user": {
    "name": "app-01",
    "role": "normal",
    "password": "example_password"
  }
}
```

## More Information

See [`/v2/databases/{database_cluster_uuid}/users/{username}`](https://docs.digitalocean.com/reference/api/reference/databases/index.html.md#databases_get_user) in the API reference for additional detail on responses, headers, parameters, and more.