---
title: "Get user info"
method: GET
path: "/public/users/self"
tags: ["user"]
---

# Get user info

`GET /public/users/self`

Get info for current user

## Response `200`

User response

- object
  - `data` UserData — User Data
    - `spec` UserSpec — User specification
      - `email` string, email, required — The email of the user
      - `first_name` string, nullable — The first name associated with the user
      - `last_name` string, nullable — The last name associated with the user
      - `company_name` string, nullable — Company name associated with the user
      - `country_code` string, nullable — Two letter country code as defined in ISO 3166
      - `marketing_consent` boolean, nullable — Marketing consent of the user
    - `info` UserInfo — User Information
      - `id` string, uuid, required — The UUID of the user
      - `state` 'ACTIVE' | 'PROVISIONED' | 'INACTIVE', required — Which state the user is in
      - `role_list` UserAccountRoleData[], nullable — List of roles associated with the user
        - `account_id` string, uuid, required
        - `role_ids` string[], required — Role Ids
      - `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)
      - `login_types` LoginTypeEnum[] — List of login types associated with the user

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