> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# user

> Gets the signed-in user, as a user of the current tenant.



**query** `user: UserV2!`

## Returns

`UserV2!`

**`appSettings`**: `[AppSetting!]!`

The user's own settings in one app's namespace within the current tenant. Only readable by that user.

**Arguments:**

- `appKey`: `SettingsAppKey!`
- `keys`: `[String!]`

---

**`createdAt`**: `DateTime!`

When the user was added.

---

**`email`**: `String!`

Email address of the user.

---

**`firstName`**: `String!`

First name of the user.

---

**`id`**: `ID!`

Global id of the user. `userById` and the user mutations take it. `TenantUser.userId` holds the raw UUID.

---

**`image`**: `String`

URL of the user's profile picture. Null if there is none.

---

**`lastLoggedIn`**: `DateTime`

When the user last signed in. Null if they never have.

---

**`lastName`**: `String!`

Last name of the user.

---

**`permissions`**: `PermissionsConnection`

Permissions the user has in the current tenant, from their roles and granted directly.

**Arguments:**

- `after`: `String` — Returns the elements in the list that come after the specified cursor.
- `before`: `String` — Returns the elements in the list that come before the specified cursor.
- `first`: `Int` — Returns the first _n_ elements from the list.
- `last`: `Int` — Returns the last _n_ elements from the list.

---

**`roles`**: `RolesConnection`

Roles the user has in the current tenant.

**Arguments:**

- `after`: `String` — Returns the elements in the list that come after the specified cursor.
- `before`: `String` — Returns the elements in the list that come before the specified cursor.
- `first`: `Int` — Returns the first _n_ elements from the list.
- `last`: `Int` — Returns the last _n_ elements from the list.

---

**`status`**: `UserInTenantStatus!`

Whether the user has signed in to the current tenant yet. See `UserInTenantStatus`.

## Examples

```graphql Query
query User {
  user {
    createdAt
    email
    firstName
    id
    image
    lastLoggedIn
  }
}
```

```json Response
{
  "data": {
    "user": {
      "createdAt": "value",
      "email": "string",
      "firstName": "string",
      "id": "id",
      "image": "string",
      "lastLoggedIn": "value"
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.