---
title: "Get the user attributes"
method: GET
path: "/_api/user/{user}/attributes"
tags: ["Users"]
---

# Get the user attributes

`GET /_api/user/{user}/attributes`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_api/user/:user/attributes/get.ts> (a function with typed inputs; its response is checked against the schema)

Fetch the list of attributes for the specified user.

## Path parameters

- `user` string, string, required

## Response `200`

Successfully fetched attributes.

- HttpExamplesRc200Attributes
  - `code` integer: HTTP response code.
  - `error` boolean: Flag if there is an error in response. *False* for this response.
  - `result` AttributeValues
    - `key1` string, string: Attribute key-value.
    - `key2` string, string: Attribute key-value.

## Other responses

- `400`: Failed due to missing or malformed data. Verify that all parameters are complete.
- `401`: Failed to validate because you do not have access to the GeoFabric.
- `403`: Failed to validate because you do not have access to the server.
- `404`: Failed to find specified user.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
