> ## 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.

# TenantUser

> Describes a user's membership in a tenant, as `inviteUserToTenant` and `resendInvitation` return it.



**Kind**: `object`

## Fields

**`lastLoginDate`**: `DateTime`

When the user last signed in to the tenant. Null until their first sign-in.

---

**`permissions`**: `PermissionsConnection`

Permissions the user has in the 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 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.

---

**`signInDetails`**: `SignInDetails!`

Whether the user has signed in before, to Occtoo and to this tenant.

---

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

Whether the user has signed in to the tenant yet: `ACTIVE` once `lastLoginDate` is set. See `UserInTenantStatus`.

---

**`tenant`**: `Tenant`

Tenant of the membership.

---

**`tenantId`**: `UUID!`

Raw id (UUID) of the tenant. The global one is `Tenant.id`.

---

**`userId`**: `UUID!`

Raw id (UUID) of the user. The global one is `UserV2.id`.



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