# CurrentUserResponse

Who the caller is (`GET /users/self`): their user, their tenant, and the roles this session or API key is authorised with.

**Kind:** an object, used in responses.

## Fields

Every field is present in a response; empty ones are `null`.

| Field | Type | Description |
|---|---|---|
| `user` | [`User`](https://docs.maitento.com/reference/types/user.md) | The calling user. |
| `tenant` | [`CurrentUserTenant`](https://docs.maitento.com/reference/types/current-user-tenant.md) | The caller's tenant. |
| `roles` | `string[]` | The roles this session or API key is authorised with, such as `Tenant.Admin` or `Tenant.User`. |
| `isSuperAdmin` | `boolean` | Whether this session belongs to one of the platform's own administrators. Always false for an API key. |

## Example

```json
{
  "user": {
    "name": "...",
    "emailAddress": "...",
    "isEnabled": false,
    "roles": [
      "..."
    ],
    "isEmailAddressVerified": false,
    "tenantId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
    "id": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
    "dateCreated": "2026-10-26T12:00:00.0000000Z",
    "dateUpdated": "2026-10-26T12:00:00.0000000Z"
  },
  "tenant": {
    "id": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
    "name": "..."
  },
  "roles": [
    "..."
  ],
  "isSuperAdmin": false
}
```

## Where it's used

- [`users.self`](https://docs.maitento.com/reference/api/users.md) (`GET /users/self`)
