---
title: "Get current user details"
method: GET
path: "/v1/users/me"
tags: ["Users"]
---

# Get current user details

`GET /v1/users/me`

## Request

- Base URL: `https://api.tetrascience.com`
- URL: `https://api.tetrascience.com/v1/users/me`
- Auth: API key in header `ts-auth-token` and API key in header `x-org-slug`

## Response `200`

Responding with user details and their effective RBAC rules

- object
  - `authType` AuthType (unresolved $ref)
  - `email` Email (unresolved $ref)
  - `firstName` string
  - `lastName` string
  - `id` Id (unresolved $ref)
  - `lastActivity` string
  - `status` 'active' | 'inactive'
  - `systemRole` string
  - `roles` object[]
    - `id` Id (unresolved $ref)
    - `orgSlug` Schema (unresolved $ref)
    - `organizationId` Id (unresolved $ref)
    - `role` string
    - `roleId` Id (unresolved $ref)
    - `status` Status (unresolved $ref)
    - `userId` Id (unresolved $ref)
    - `orgName` string
  - `tokens` object[]
    - `id` Id (unresolved $ref)
    - `userId` Id (unresolved $ref)
    - `token` string: Truncated token value
    - `expiresAt` CreatedAt (unresolved $ref)
    - `createdAt` CreatedAt (unresolved $ref)
    - `createdBy` object
      - `id` Id (unresolved $ref)
      - `firstName` string, John
      - `lastName` string, Snow
  - `password_history` object[]
  - `athenaCredentialsUpdatedAt` CreatedAt (unresolved $ref)
  - `preferences` Preferences (unresolved $ref)
  - `rowPreferences` Preferences (unresolved $ref)
  - `permissions` object[]: Effective RBAC rules of the user in the org the request is scoped to
    - `resource` 'search' | 'sqlQueries' | 'sqlCredentials' | 'projects' | 'pipelines' | 'artifacts' | 'idsArtifacts' | 'dataRetention' | 'dataSources' | 'healthMonitoring' | 'jobsMonitoring' | 'attributeManagement' | 'myAccount' | 'administration' | 'auditTrail' | 'dataApp' | 'dataAppProvider' | 'inference' | 'aiArtifacts' | 'artifactVersionManager' | 'tenantManagement' | 'connectorLogs' | 'observability' | 'mockApi' | 'roleDirectory' | 'certificates' | 'dataPackages' | 'platformEvents' | 'integrationHealth' | 'dataAppWorkspace' | 'artifactReadme' | 'artifactFiles' | 'fileMetadata' | 'lakehouseConfig' | 'workflowRuns' | 'fileLinkIntegrations' | 'bulkActions' | 'sqlAccess' | 'microFileUpload' | 'microFileDelete' | 'microBulkActionsLabel' | 'microPipelinePages' | 'microAgentInstall' | 'microSharedSettings', required
    - `action` 'view' | 'create' | 'edit' | 'full', required

## Other responses

- `401`: Invalid token
- `403`: Caller is not authorized to perform this action
- `404`: User not found

---

[API](https://skmtc.dev/tetrascience/apis/administration.md) - [All operations](https://skmtc.dev/tetrascience/apis/administration/llms.txt) - [OpenAPI document](https://skmtc.dev/tetrascience/apis/administration/revisions/c1c829febcc5?raw)
