> For the complete documentation index, see [llms.txt](https://developer.perculus.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.perculus.com/v2-en/services/user-management/user-detail.md).

# Selecting a User

**Example payload:**

{% tabs %}
{% tab title="CURL" %}

```bash
curl --location --request GET 'https://<DOMAIN>/api/groups/xapi/user/:USER_GUID' \
--header 'Content-Type: x-www-form-urlencoded'
```

{% endtab %}

{% tab title="Python" %}

```python
#get user by user_id
client.users.get_user_by_id("C9FE6854-8147-4D55-AE55-C5F2A1D65855");

#get user by name
client.users.get_user_by_username("John");
```

{% endtab %}
{% endtabs %}

Example response:

A successful operation will return `200 OK` with the following body:

```json
{
    "user_guid": "C9FE6854-8147-4D55-AE55-C5F2A1D65855",
    "name": "John",
    "surname": "Doe",
    "username": "johndoe",
    "email": "johndoe@constructor.tech",
    "role": "u",
    "mobile": "",
    "login_allowed": true,
    "status": 1,
    "lang": "en-US",
    "timezone": "Europe/Istanbul",
    "expires_at": null,
    "creation_date": "2024-06-04T11:48:52.285253+03:00",
    "updating_date": "2025-01-20T10:59:33.080894+03:00"
}
```
