# Admin: Get User Details
## Endpoint
`/api/admin/users/get`
## Method
GET
## Description
Returns a user account profile details.
## Authentication
Required. Token must be provided via the `token` parameter.
## Permissions
Administration: View
## Parameters
| `token` | string | Yes | No | The session token generated by the `login` or the `createToken` call. |
| `node` | string | No | No | The node domain name for which the API call is intended. When unspecified, the current node is used. Can only be used when Clustering is initialized. |
| `user` | string | Yes | No | The username for the user account. |
| `includeGroups` | boolean | No | No | Set `true` to include a list of all available groups in the response. |
## Response Fields
| `displayName` | string | The display name of the user. |
| `username` | string | The username of the user account. |
| `totpEnabled` | boolean | Whether 2FA (TOTP) is enabled for this account. |
| `disabled` | boolean | Whether the user account is disabled. |
| `previousSessionLoggedOn` | string (datetime) | ISO 8601 timestamp of the previous session login. |
| `previousSessionRemoteAddress` | string | IP address from the previous session login. |
| `recentSessionLoggedOn` | string (datetime) | ISO 8601 timestamp of the most recent session login. |
| `recentSessionRemoteAddress` | string | IP address from the most recent session login. |
| `sessionTimeoutSeconds` | integer | The session timeout value in seconds for this user. |
| `memberOfGroups` | array of strings | List of group names that this user is a member of. |
| `sessions` | array | List of active session objects for this user. |
| `sessions[].username` | string | The username associated with the session. |
| `sessions[].isCurrentSession` | boolean | Whether this is the session making the current request. |
| `sessions[].partialToken` | string | A partial (truncated) token identifying the session. |
| `sessions[].type` | string | Session type: `Standard` or `ApiToken`. |
| `sessions[].tokenName` | string or null | Name of the API token, or null for standard sessions. |
| `sessions[].lastSeen` | string (datetime) | ISO 8601 timestamp of last activity. |
| `sessions[].lastSeenRemoteAddress` | string | IP address of last activity. |
| `sessions[].lastSeenUserAgent` | string | User-Agent string of last activity. |
| `groups` | array of strings | List of all available group names (only present when `includeGroups=true`). |
## Conditional Logic Notes
- The `groups` field is only present in the response when `includeGroups` is set to `true`.
- The `node` parameter is only functional when Clustering is initialized.
## Edge Cases
- The `memberOfGroups` field shows groups the user belongs to, while the `groups` field (when requested) shows all groups that exist in the system.
- The `isCurrentSession` flag within the sessions array is relative to the token used to make this API call, not the user being queried.