---
type: api
title: User authentication information
description: Provides authentication information about a user, including elevated permission status and TOTP device availability.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/cloud-enterprise/v4/operation/operation-get-authentication-info
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/cloud-enterprise/v4/operation/operation-get-authentication-info
products:
  - Elastic Cloud Enterprise
---

# User authentication information

## Paths

- `GET` `/users/auth`

## Description

Provides authentication information about a user, including elevated permission status and TOTP device availability.

## Authentication

- Basic: `Authorization: Basic <credentials>`
- Api key: `Authorization: <value>`

## Response

User authentication information response

`application/json`

- `has_totp_device` (boolean)
  Deprecated: True if the user has an available TOTP device
- `totp_device_source` (string)
  Deprecated: The TOTP device source
- `has_elevated_permissions` (boolean)
  Deprecated: True if the user has elevated permissions
- `elevated_permissions_expire_at` (string · format: date-time)
  Deprecated: The UTC time when elevated permissions will expire, if the user has elevated permissions
- `totp_device_source_enable_mfa_href` (string)
  Deprecated: URL for configuring an MFA TOTP device.  Does not apply when totp_device_source is 'native'.
- `refresh_token_url` (string)
  The API to be used when refreshing the current user's JWT
- `expires_at` (string · format: date-time)
  The UTC time when current authentication will expire. Applies to only token based authentication
## Code examples

#### curl

```curl
curl -X GET "${API_URL}/users/auth" \
  -u "${USERNAME}:${PASSWORD}"
```

