---
title: "Get account information for the user"
method: GET
path: "/public/users/self/accounts"
tags: ["user"]
---

# Get account information for the user

`GET /public/users/self/accounts`

Get a list of accounts associated with the current user

## Response `200`

User Account List response

- object
  - `data` UserAccountListInfo
    - `owned_accounts` AccountData[], nullable — List of admin accounts associated with the user
      - `spec` AccountSpec — Account Specification
        - `name` string, required — The account name
      - `info` AccountInfo — Account Info
        - `id` string, uuid, required — The UUID of the account
        - `owner_id` string, uuid, required — UUID of the owner user of the account
        - `roles` RoleData[], required
          - `id` string, uuid, required — The UUID of the RBAC role
          - `name` string, required — Name of the RBAC role
          - `description` string, required — Description of the RBAC role
        - `metadata` EntityMetadata — Common metadata for entities
          - `created_on` string, nullable — Timestamp when the entity was created (UTC)
          - `updated_on` string, nullable — Timestamp when the entity was last updated (UTC)
    - `admin_accounts` AccountData[], nullable — List of admin accounts associated with the user
      - `spec` AccountSpec — Account Specification
        - `name` string, required — The account name
      - `info` AccountInfo — Account Info
        - `id` string, uuid, required — The UUID of the account
        - `owner_id` string, uuid, required — UUID of the owner user of the account
        - `roles` RoleData[], required
          - `id` string, uuid, required — The UUID of the RBAC role
          - `name` string, required — Name of the RBAC role
          - `description` string, required — Description of the RBAC role
        - `metadata` EntityMetadata — Common metadata for entities
          - `created_on` string, nullable — Timestamp when the entity was created (UTC)
          - `updated_on` string, nullable — Timestamp when the entity was last updated (UTC)
    - `linked_accounts` AccountData[], nullable — List of all accounts associated with the user
      - `spec` AccountSpec — Account Specification
        - `name` string, required — The account name
      - `info` AccountInfo — Account Info
        - `id` string, uuid, required — The UUID of the account
        - `owner_id` string, uuid, required — UUID of the owner user of the account
        - `roles` RoleData[], required
          - `id` string, uuid, required — The UUID of the RBAC role
          - `name` string, required — Name of the RBAC role
          - `description` string, required — Description of the RBAC role
        - `metadata` EntityMetadata — Common metadata for entities
          - `created_on` string, nullable — Timestamp when the entity was created (UTC)
          - `updated_on` string, nullable — Timestamp when the entity was last updated (UTC)
    - `accounts` AccountData[], nullable — List of all accounts associated with the user
      - `spec` AccountSpec — Account Specification
        - `name` string, required — The account name
      - `info` AccountInfo — Account Info
        - `id` string, uuid, required — The UUID of the account
        - `owner_id` string, uuid, required — UUID of the owner user of the account
        - `roles` RoleData[], required
          - `id` string, uuid, required — The UUID of the RBAC role
          - `name` string, required — Name of the RBAC role
          - `description` string, required — Description of the RBAC role
        - `metadata` EntityMetadata — Common metadata for entities
          - `created_on` string, nullable — Timestamp when the entity was created (UTC)
          - `updated_on` string, nullable — Timestamp when the entity was last updated (UTC)

## Other responses

- `400` — API Error
- `500` — API Error

## Changes

- **2022-06-13** `7856cb3301b2` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/yugabyte/apis/yugabyte-cloud/changes/public/users/self/accounts/get.md)

---

[API](https://skmtc.dev/yugabyte/apis/yugabyte-cloud.md) · [All operations](https://skmtc.dev/yugabyte/apis/yugabyte-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/yugabyte/apis/yugabyte-cloud/revisions/f8f0303db4f2?raw)
