query Tenant {
tenant {
createdAt
deletedAt
displayName
id
isDeleted
roles {
edges {
cursor
node {
__typename
}
}
nodes {
description
id
isDefaultRole
key
name
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
}
}
}{
"data": {
"tenant": {
"createdAt": "value",
"deletedAt": "value",
"displayName": "string",
"id": "id",
"isDeleted": true,
"roles": {
"edges": [
{
"cursor": "string",
"node": {
"__typename": "Role"
}
}
],
"nodes": [
{
"description": "string",
"id": "string",
"isDefaultRole": true,
"key": "string",
"name": "string"
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
}
}
}
}
}tenant
Gets the tenant you’re signed in to.
tenant: Tenant!Returns
Tenant-level settings in one app's namespace; all of them unless keys narrows it down.
When the tenant was created (UTC).
When the tenant was deleted (UTC). Null while it's live.
Name of the tenant shown in Studio, 3 to 50 characters.
Global id of the tenant. node resolves it only for the tenant you're signed in to. TenantUser.tenantId and DataProvider.tenantId hold the raw UUID.
True if the tenant is deleted.
Roles you can give users in the tenant. inviteUserToTenant and replaceUserRoles take them by Role.key.
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Returns the last n elements from the list.
Short name of the tenant, unique across Occtoo: camelCase letters and digits, 3 to 50 characters (e.g. acme). Set when the tenant is created; can't change.
Languages of the tenant and its master language.
List of users assigned to the tenant
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Returns the last n elements from the list.
Plan the tenant is on. Platform administration; not needed for integrations.
Raw id of the tenant's tier (Tier.id holds the global one). Null if it has none. Platform administration; not needed for integrations.
Effective usage limits for the tenant (tier defaults overlaid with per-tenant overrides).
Users with access to the tenant, invited ones that haven't signed in yet included. Filter status: ACTIVE for users who have signed in. Returns all users in one page.
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Returns the last n elements from the list.
query Tenant {
tenant {
createdAt
deletedAt
displayName
id
isDeleted
roles {
edges {
cursor
node {
__typename
}
}
nodes {
description
id
isDefaultRole
key
name
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
}
}
}{
"data": {
"tenant": {
"createdAt": "value",
"deletedAt": "value",
"displayName": "string",
"id": "id",
"isDeleted": true,
"roles": {
"edges": [
{
"cursor": "string",
"node": {
"__typename": "Role"
}
}
],
"nodes": [
{
"description": "string",
"id": "string",
"isDefaultRole": true,
"key": "string",
"name": "string"
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
}
}
}
}
}Was this page helpful?