# View user details

You can use API operations described below to view the following user-related information:

- A list of users belonging to the public key of the current user.
- A list of user roles defined in the current domain.


## Get current user

You can use the [List users belonging to the same public key](/products/custody/v1.26/api/reference/openapi/users/getme) API operation to return information about the current user.

No additional data is required in the form of a request body, as the information is derived from the JWT passed in the authentication header.

This returns an array of users and domains, as in the following example:


```json
{
    "publicKey": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE7ItVC+y2KpbztcRjPLDs8QmDVz7yI7ElQA70Sz+cLcBI6041aObPvcNqps8eTYe2jhc2Kb5qgNgoACB3SqpYIA==",
    "domains": [
        {
            "id": "67241e7d-f345-459e-9293-475693c45d85",
            "alias": "My root domain",
            "userReference": {
                "id": "61aaa805-f9b8-11eb-b158-dcfb48cfb3cb",
                "alias": "op1@ripple.com"
            }
        }
    ]
}
```

As users are identified by their keys, the same physical user with the same key pair can belong to multiple domains.

## Get a list of roles

To obtain a list of user roles available in the domain, call the [Get known user roles](/products/custody/v1.26/api/reference/openapi/users/getknownuserroles) operation.