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

# currentUser

> Returns the currently logged in user



**query** `currentUser: User!`

## Returns

`User!`

**`department`**: `Department`

User selected department

---

**`email`**: `String`

User email

---

**`id`**: `UUID!`

Unique identifier for the entity

---

**`lastSeenAt`**: `DateTime`

Last time the user logged in

---

**`memberships`**: `[Member!]!`

Environments this user is a member of

---

**`name`**: `String`

User first and last name

---

**`profileImageUrl`**: `String`

Link to the profile image

---

**`supportChatToken`**: `String`

support chat user identity token

## Examples

```graphql Query
query CurrentUser {
  currentUser {
    department
    email
    id
    lastSeenAt
    memberships {
      accessRoles {
        accountRole
        nonProductionRole
        productionRole
      }
      account {
        accessMethod
        accountEmailDomain
        accountStatus
        defaultSSORoles {
          __typename
        }
        displayName
        emailDomains {
          __typename
        }
      }
      createdAt
      cubejsToken
      customerToken
      email
    }
    name
  }
}
```

```json Response
{
  "data": {
    "currentUser": {
      "department": "CEO_OR_FOUNDER",
      "email": "string",
      "id": "value",
      "lastSeenAt": "value",
      "memberships": [
        {
          "accessRoles": {
            "accountRole": "MEMBER",
            "nonProductionRole": "ADMIN",
            "productionRole": "ADMIN"
          },
          "account": {
            "accessMethod": "AUTHORIZED_DOMAIN",
            "accountEmailDomain": "string",
            "accountStatus": "ACTIVE",
            "defaultSSORoles": {
              "__typename": "AccessRoles"
            },
            "displayName": "string",
            "emailDomains": [
              {
                "__typename": "AccountEmailDomain"
              }
            ]
          },
          "createdAt": "value",
          "cubejsToken": "string",
          "customerToken": "string",
          "email": "string"
        }
      ],
      "name": "string"
    }
  }
}
```


## Related topics

- [User](https://docs.stigg.io/graphql-reference/types/User.md)
- [Snowflake](https://docs.stigg.io/documentation/importing-and-exporting-data/export/snowflake.md)
- [Pricing table](https://docs.stigg.io/documentation/snap-in-widgets/pricing-table.md)
- [Agent Skills](https://docs.stigg.io/api-and-sdks/agent-skills.md)
- [Upgrading your data export](https://docs.stigg.io/documentation/importing-and-exporting-data/export/migration-guide.md)


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