---
title: "Get user attribute names"
method: GET
path: "/api/v2/user-attributes/{projectKey}/{environmentKey}"
tags: ["Users (beta)"]
deprecated: true
---

# Get user attribute names

`GET /api/v2/user-attributes/{projectKey}/{environmentKey}`

> **Deprecated.**

> ### Use contexts instead
>
> After you have upgraded your LaunchDarkly SDK to use contexts instead of users, you should use [Get context attribute names
](https://launchdarkly.com/docs/api/contexts/get-context-attribute-names) instead of this endpoint.

Get all in-use user attributes in the specified environment. The set of in-use attributes typically consists of all attributes seen within the past 30 days.

## Path parameters

- `projectKey` string, string, required — The project key
- `environmentKey` string, string, required — The environment key

## Response `200`

User attribute names response

- UserAttributeNamesRep
  - `private` string[] — private attributes
  - `custom` string[] — custom attributes
  - `standard` string[] — standard attributes

## Other responses

- `400` — Invalid request
- `401` — Invalid access token
- `403` — Forbidden
- `404` — Invalid resource identifier

---

[API](https://skmtc.dev/launchdarkly/apis/launchdarkly-rest-api.md) · [All operations](https://skmtc.dev/launchdarkly/apis/launchdarkly-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/launchdarkly/launchdarkly-rest-api/revisions/69c5c9aafe78/schema)
