---
title: "Retrieve User Information for a Kubernetes Cluster"
method: GET
path: "/v2/kubernetes/clusters/{cluster_id}/user"
tags: ["DigitalOcean-public.v2-new_Kubernetes"]
---

# Retrieve User Information for a Kubernetes Cluster

`GET /v2/kubernetes/clusters/{cluster_id}/user`

To show information the user associated with a Kubernetes cluster, send a GET
request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/user`.

## Path parameters

- `cluster_id` string, uuid, required

## Response `200`

The response will be a JSON object with a key called `kubernetes_cluster_user`
containing the username and in-cluster groups that it belongs to.

- User
  - `kubernetes_cluster_user` object
    - `username` string, email — The username for the cluster admin user.
    - `groups` string[] — A list of in-cluster groups that the user belongs to.

## Other responses

- `401` — Authentication failed due to invalid credentials.
- `404` — The resource was not found.
- `429` — The API rate limit has been exceeded.
- `500` — There was a server error.
- `default` — There was an unexpected error.

---

[API](https://skmtc.net/digitalocean/apis/digitalocean-api.md) · [All operations](https://skmtc.net/digitalocean/apis/digitalocean-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/digitalocean/digitalocean-api/revisions/cb3bf9b21459/schema)
