---
type: api
title: Available authentication methods
description: Provides information about available authentication methods.
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/cloud-enterprise/v4/operation/operation-methods
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/cloud-enterprise/v4/operation/operation-methods
products:
  - Elastic Cloud Enterprise
---

# Available authentication methods

Authentication: required

## Paths

- `GET` `/users/auth/methods`

## Description

Provides information about available authentication methods.

## Response

Available authentication methods response

`application/json`

- `password` (boolean)
  Indicates that username and password authentication is available.
- `saml` (boolean)
  Indicates that SAML single sign-on authentication is available.
- `openid` (boolean)
  > WARNING
> This endpoint is deprecated and scheduled to be removed in the next major version. This field is no longer used and will always be false.
- `sso_methods` (object[])
  Lists details for the available single sign-on methods.
  - `sso_type` (enum)
    Indicates the protocol of the single sign-on method.
    Values: `saml`
  - `name` (string)
    The friendly name of the single sign-on method.
  - `url` (string)
    The URL to initiate the single sign-on login.
## Code examples

#### curl

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

## Response examples

#### 200

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "password": false,
  "saml": false,
  "openid": false,
  "sso_methods": [
    {
      "sso_type": "saml",
      "name": "string",
      "url": "string"
    }
  ]
}
```

