GraphQL reference: user-management
Generated from the schema this service serves, so it cannot fall behind it. The same schema is published as a file for tools and agents.
| Endpoint | https://<your-host>/api/user-management/graphql |
| Auth plane | tenant — The ordinary application plane. Obtain a tenant access token by calling login then selectTenant on user-management, and authorize each call with the capability it names (for example device:write). |
| Authorize with | tenant access token |
| Schema file | /schema/user-management.graphql |
| Described | 336 of 336 elements |
| Note | login and refresh take no token — this is where a tenant access token comes from. Every other field on this schema requires one. |
Queries
functionalAreas · identityMemberships · invitations · me · member · members · mfaStatus · ping · serviceAccount · serviceAccountTokenEndpoint · serviceAccounts · tenant · tenantAuthorities · tenantGovernance · tenantRoles · tenantTokens · tokenMasks
functionalAreas
The names of the functional areas deployed on this instance, so a client can tell a feature that was never deployed from a server that is failing. It reports what the operator enabled, not whether each area is healthy: an area that is enabled but down still appears. Requires only a signed-in caller.
Returns [String!]!
identityMemberships
The identity's tenant memberships as of now, with its roles in each, including any that are disabled or in a tenant that is disabled or being deleted; selectTenant refuses those. It takes the identity token returned by login, so it works before any tenant is selected and needs no Authorization header; use it to refresh a tenant picker after memberships change without logging in again. Fails with "invalid or expired token" if the identity token is expired, malformed, or from a session that has since ended (for example after a password reset or the account being disabled).
Returns [Membership!]!
| Argument | Type | Description |
|---|---|---|
identityToken | String! | The identity token from login. |
invitations
One page of this tenant's invitations, newest first. Requires member:read.
Returns InvitationSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | InvitationSearchCriteria! | Paging. |
me
The user the access token belongs to. Fails with an authentication error if the request carries no valid access token.
Returns CurrentIdentity!
member
One member of this tenant by email. An email that is not a member of this tenant fails with the error code NOT_FOUND, whether or not an account with that email exists. Requires member:read.
Returns Member!
| Argument | Type | Description |
|---|---|---|
email | String! | Email of the member. |
members
One page of this tenant's members, with their roles, scope and status. Requires member:read. Refused (error code FORBIDDEN) for a member whose access is limited to part of the tenant.
Returns MemberSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | MemberSearchCriteria! | Filters and paging. |
mfaStatus
The identity's own second-factor status. It takes the identity token returned by login (or verifyMfa), so it works before any tenant is selected. Fails with "invalid or expired token" if the token is expired, malformed, or from a session that has ended.
Returns MfaStatus!
| Argument | Type | Description |
|---|---|---|
identityToken | String! | The identity token from login. |
ping
Liveness check. Always returns the string "pong". Needs no token.
Returns String!
serviceAccount
One service account of this tenant by token. A token that names no service account of this tenant fails with the error code NOT_FOUND. Requires member:read.
Returns ServiceAccount!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the service account. |
serviceAccountTokenEndpoint
The OAuth token endpoint service accounts obtain their tokens from, or null when this instance has no OAuth issuer configured, in which case service accounts cannot obtain tokens. Requires member:read.
Returns String
serviceAccounts
One page of this tenant's service accounts, ordered by token. Requires member:read. Refused (error code FORBIDDEN) for a member whose access is limited to part of the tenant.
Returns ServiceAccountSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | ServiceAccountSearchCriteria! | Paging. |
tenant
The tenant the caller is currently acting within, as named by their access token. Fails with an authentication error if the request carries no tenant access token. Needs no authority beyond being signed in to the tenant.
Returns Tenant!
tenantAuthorities
The authorities a role defined in this tenant may grant, sorted, including * (every
tenant authority). A role may grant only those of them that the person defining it holds.
Requires role:read. Refused (error code FORBIDDEN) for a member whose access is limited
to part of the tenant.
Returns [String!]!
tenantGovernance
The limits that apply to the tenant of the current request, for the services that enforce them. The tenant comes from the access token, or from the tenant a service names when it calls with a service token. Fails if that tenant does not exist. Requires tenant:read, an instance-level authority that tenant users do not hold.
Returns TenantGovernance!
tenantRoles
The roles that can be assigned in this tenant: the instance roles (owner INSTANCE) and the roles this tenant defined (owner TENANT). Requires role:read.
Returns [TenantRole!]!
tenantTokens
The token of every tenant on the instance. Returns tokens only, not tenant records. Requires tenant:read, which only an instance-level caller holds, so a tenant user, including one with every tenant authority, cannot list tenants.
Returns [String!]!
tokenMasks
The entity token masks as a JSON object serialized to a string: it maps an entity type (or "default") to the mask template used to generate tokens for new entities of that type. A template is literal text plus the placeholders {slug}, {uuid}, {alphanumeric-N} and {numeric-N}. Masks apply to the create forms in the console; the server accepts any token that satisfies the general token format. Requires only a signed-in caller. The same masks are served on the settings API.
Returns String!
Mutations
acceptInvitation · beginSso · beginSsoLink · beginTotpEnrollment · completeSso · confirmTotpEnrollment · createServiceAccount · createTenantRole · deleteServiceAccount · deleteTenantRole · disableTotp · inviteMember · login · logout · refresh · regenerateRecoveryCodes · reissueInvitation · removeMember · revokeInvitation · rotateServiceAccountSecret · selectTenant · setMemberAccess · setMemberEnabled · setMemberRoles · setMemberScope · setServiceAccountAccess · setServiceAccountEnabled · setTenantBasemap · setTenantBranding · setTenantLocale · setTenantLogo · setTenantMfaRequired · updateProfile · updateTenantRole · verifyMfa
acceptInvitation
Accepts an invitation and returns what login returns: an identity token and the tenants
the identity may enter, the new one among them. Needs no token. Give exactly one of:
password, to create the password of a new account the invitation was issued to; or
identityToken, from signing in to an existing account, which must be the account the
invitation was issued to. A tenant that requires single sign-on refuses password with
the error code SSO_REQUIRED: sign in through the identity provider and accept with the
identity token. Every way the code cannot be used (unknown, expired, revoked, already
used, or presented for another account) fails with the one error code
INVALID_INVITATION.
Returns IdentityAuth!
| Argument | Type | Description |
|---|---|---|
code | String! | The invitation code. |
identityToken | String | The identity token of an existing account, from login or completeSso. |
password | String | The password to set on a new account. |
beginSso
Starts a single sign-on through an external identity provider. Give either the person's
email (the connection is the one that speaks for its domain) or a connection token. Returns
where to send the browser, or null when an email's domain has no single sign-on connection
that is enabled and approved, in which case sign in some other way. returnTo must be this instance's own
/login/sso/complete or /dash/sso/complete address. codeChallenge is the SHA-256 of a
random secret you keep in the browser, base64url-encoded without padding (43 characters);
completeSso needs that secret, so only the browser that began the sign-in can finish it.
Needs no token. Fails with "single sign-on is not available" when the instance, or a
connection named by token, is not set up for it, and is rate limited per source address.
Returns SsoBegin
| Argument | Type | Description |
|---|---|---|
codeChallenge | String! | Base64url SHA-256 of the secret only this browser holds. |
connection | String | Token of the connection to use. Give this or email. |
email | String | The person's email address, to find their connection by domain. Give this or connection. |
returnTo | String! | Where the provider's answer sends the browser back to: this instance's own completion page. |
beginSsoLink
Starts linking the signed-in person's own account at an external identity provider to their
identity, so they can sign in through it afterwards. The connection is not named by the
caller: it is the tenant connection whose verified domain is the identity's own email
domain, and it must be enabled and approved. Needs the identity token of a PASSWORD sign-in,
and the provider must report the identity's own email address. Returns where to send the
browser; the provider then returns to returnTo with linked=1, or with error= set to
link_email_mismatch (the provider reported a different address), link_unverified_email
(the provider did not vouch for the address), link_session_ended (the password sign-in
ended first), link_already_linked (the provider account or this identity is already
linked), link_not_allowed, or a sign-in's own idp_error or refused. Each refusal here
carries extensions.code: SSO_LINK_SESSION_REQUIRED (the identity token is invalid or
expired, or its sign-in ended: sign in with the password again), SSO_LINK_PASSWORD_REQUIRED
(the sign-in came through a provider), SSO_LINK_NOT_ALLOWED (the identity holds a system
role), SSO_LINK_NO_CONNECTION (no enabled, approved tenant connection serves the email
domain) or SSO_LINK_ALREADY_LINKED. Rate limited per source address.
Returns SsoBegin!
| Argument | Type | Description |
|---|---|---|
identityToken | String! | The identity token from a password login. |
returnTo | String! | Where the provider's answer sends the browser back to: this instance's own completion page. |
beginTotpEnrollment
Starts setting up an authenticator app. Returns the new shared secret as an otpauth:// URI and as base32, once; nothing changes about how the account signs in until confirmTotpEnrollment proves the app holds it. Starting again replaces an unconfirmed enrolment, which expires after ten minutes. Needs no Authorization header: the identity token is the argument. The password is re-checked, because identity tokens travel; a wrong one fails with "invalid credentials" and changes nothing. Fails with MFA_ALREADY_ENROLLED while an authenticator is active.
Returns TotpEnrollment!
| Argument | Type | Description |
|---|---|---|
identityToken | String! | The identity token from login or verifyMfa. |
password | String! | The account's password, re-checked. |
completeSso
Finishes a single sign-on. After the provider sends the browser back to the returnTo
address with a code in its query, call this with that code and the secret whose hash you
gave to beginSso. Returns what login returns: an identity token and the tenants it may enter
(only the tenants the connection serves), to be chosen with selectTenant. Needs no token. Each
code works once, for one minute; fails with "invalid or expired sign-in code" for a code that
is unknown, used, expired or not matched by the secret.
Returns IdentityAuth!
| Argument | Type | Description |
|---|---|---|
code | String! | The code from the return address. |
codeVerifier | String! | The secret whose SHA-256 you gave to beginSso. |
confirmTotpEnrollment
Finishes setting up the authenticator: proves it holds the secret by presenting its current
code, turns the second factor on, and returns ten recovery codes, once. Turning it on ends
every session the account had, including the one that enrolled (the identity token passed
here stops working); the answer carries a fresh sign-in, with amr recording the code
just presented, so the caller carries on without signing in again. The password is
re-checked. Five wrong codes cancel the pending enrolment.
Returns TotpEnrollmentResult!
| Argument | Type | Description |
|---|---|---|
code | String! | The current six-digit code from the authenticator. |
identityToken | String! | The identity token from login or verifyMfa. |
password | String! | The account's password, re-checked. |
createServiceAccount
Creates a service account in this tenant with its first client secret, which the answer carries and nothing can read again. Requires member:write. Every role must grant only authorities you hold (error code ESCALATION otherwise). A tenant holds at most 200 service accounts. Fails with CONFLICT when the token is taken.
Returns ServiceAccountCredentials!
| Argument | Type | Description |
|---|---|---|
request | ServiceAccountCreateRequest! | The service account to create. |
createTenantRole
Defines a role for this tenant and returns it. Fails with ESCALATION if an authority is not a tenant authority or is one you do not hold, CONFLICT if the token is taken, and INVALID_VALUE for an unknown authority. Requires role:write.
Returns TenantRole!
| Argument | Type | Description |
|---|---|---|
request | TenantRoleCreateRequest! | The role to define. |
deleteServiceAccount
Deletes a service account and all its secrets. Tokens already issued stay valid until they expire, at most 5 minutes. Returns false when there was no such account. Requires member:write and every authority the account holds.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the service account. |
deleteTenantRole
Deletes a role this tenant defined. Returns true if one was deleted and false if there was no such role. Fails with REFERENCE_VIOLATION while a member holds it, READ_ONLY for an instance role, and ESCALATION if it grants an authority you do not hold. Requires role:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the role. |
disableTotp
Turns the second factor off: removes the authenticator, the recovery codes and the stored secret, and ends every session the account has (including this one), so the person signs in again with the password alone. Needs the password AND a code (an authenticator code or a recovery code). Returns true. Fails with MFA_NOT_ENROLLED if two-factor authentication is not set up.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
code | String! | An authenticator code or a recovery code. |
identityToken | String! | The identity token from login or verifyMfa. |
password | String! | The account's password, re-checked. |
inviteMember
Invites a person into this tenant with the given roles and scope, and returns the new member with a one-time invitation code. The membership stays disabled until the code is accepted. The answer is the same whether or not the person already has an account. Fails with the error code CONFLICT if they are already a member, ESCALATION if a role grants an authority you do not hold, NOT_FOUND if a role token is not assignable here, INVALID_VALUE for a scope anchor whose token is not valid, and LIMIT_EXCEEDED for more than 16 scope anchors. Requires member:write.
Returns MemberInvitation!
| Argument | Type | Description |
|---|---|---|
request | InviteMemberRequest! | The person to invite. |
login
Signs in with an email address and password. Returns an identity token and the tenants the identity may enter; call selectTenant next to obtain a tenant-scoped session. Needs no token. Fails with "invalid credentials" for an unknown email, a wrong password or a disabled account, without saying which. Repeated failures for one email are slowed down, and a request that is throttled or exceeds its allowance of password checks is refused without checking the password.
An account with two-factor authentication turned on does not get a token from the password
alone. When its password is right, login fails with the error code MFA_CHALLENGE and carries
challenge (an opaque handle), expiresAt (RFC 3339, five minutes out) and methods
(TOTP, RECOVERY_CODE) in the error's extensions. Send the challenge and a code to
verifyMfa to finish signing in. The error means the password was right; it is the only
thing login reveals about the account, and nothing is issued until the code is accepted.
A client that does not handle it reports an error rather than receiving a token.
Returns IdentityAuth!
| Argument | Type | Description |
|---|---|---|
email | String! | Email address of the account. Case and surrounding whitespace are ignored. |
password | String! | The account's password. |
logout
Signs out: ends the sign-in the token belongs to, and from that moment refuses its exchanges. Refresh tokens minted from this sign-in, in any tenant, no longer refresh; its identity token can no longer select a tenant; and OAuth grants authorized during this sign-in no longer refresh. The MCP authorization page signs in on its own, so a grant made there is not ended by signing out of the console: it ends when that sign-in runs out (7 days by default). Access tokens and identity tokens already issued, including on the admin API, are not recalled and stay valid until they expire, at most 15 minutes by default. Other sign-ins of the same account, on other devices or browsers, are not affected; to end all of them, reset the password or disable the account. Needs no Authorization header. Safe to repeat, and a token that has expired still ends its sign-in. Fails with "invalid or expired token" for a token this instance did not sign or that names no sign-in, and with a retryable error, leaving the sign-in open, if the sign-out could not be recorded.
With returnTo, the answer also says where to send the browser to sign out at the
identity provider, when the sign-in came through single sign-on and its connection is
set to sign people out there too; otherwise that address is null and the sign-out is
complete. The sign-in here has ended either way: the provider is never contacted by
this call, so it cannot make it fail.
Returns SignOut!
| Argument | Type | Description |
|---|---|---|
returnTo | SignOutReturn | The app to come back to after signing out at the identity provider. Leave it out to sign out of this platform only. |
token | String! | A refresh token from selectTenant or refresh, or the identity token from login. |
refresh
Exchanges a refresh token for a new access and refresh pair, and consumes the refresh token: each one can be used once. The roles and authorities in the new tokens are read afresh, so a change to the user's role or membership applies from the next refresh. Needs no Authorization header. Fails with "invalid or expired token" if the refresh token is expired, already used, or belongs to a session that has ended or a membership or tenant that is no longer allowed in. If the tenant has started requiring single sign-on and the session came from a password sign-in, the error carries the code SSO_REQUIRED and the refresh token is consumed: sign in through the identity provider. If the failure is temporary the error says the session could not be refreshed right now and the same refresh token remains usable.
Returns AuthToken!
| Argument | Type | Description |
|---|---|---|
refreshToken | String! | The refresh token from selectTenant or an earlier refresh. |
regenerateRecoveryCodes
Replaces the account's recovery codes with a new set of ten and returns them once. Needs the password AND a code (an authenticator code or an unused recovery code), so a stolen identity token is not enough. Fails with MFA_NOT_ENROLLED if two-factor authentication is not set up.
Returns RecoveryCodes!
| Argument | Type | Description |
|---|---|---|
code | String! | An authenticator code or a recovery code. |
identityToken | String! | The identity token from login or verifyMfa. |
password | String! | The account's password, re-checked. |
reissueInvitation
Revokes a member's open invitation, if any, and issues a new code, valid for 7 days. Fails with NOT_FOUND if the member has already joined. Requires member:write.
Returns MemberInvitation!
| Argument | Type | Description |
|---|---|---|
email | String! | Email of the member. |
removeMember
Removes a member from this tenant, and their open invitation with them; their account is kept. Takes effect at the member's next token refresh, as disabling them does. Returns true. Fails with the same error codes as setMemberRoles. Requires member:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
email | String! | Email of the member. |
revokeInvitation
Revokes a member's open invitation so its code stops working, and returns the member, who stays disabled. Fails with NOT_FOUND if no invitation of theirs is waiting to be accepted. Requires member:write.
Returns Member!
| Argument | Type | Description |
|---|---|---|
email | String! | Email of the member. |
rotateServiceAccountSecret
Creates a new client secret for a service account and returns it, the only time it can
be read. The secret it replaces keeps working for overlapHours (0 to 168, default 24)
so the integration can switch over, then stops; any older secret still working stops at
once. Requires member:write and every authority the account holds.
Returns ServiceAccountCredentials!
| Argument | Type | Description |
|---|---|---|
expiresInDays | Int | Days until the new secret expires: 1 to 730. Defaults to 365. |
overlapHours | Int | Hours the previous secret keeps working: 0 to 168. Defaults to 24. |
token | String! | Token of the service account. |
selectTenant
Exchanges an identity token for a session in one tenant. The identity must have an enabled membership in an enabled tenant; a superuser may enter any tenant. Needs no Authorization header, since the identity token is the argument. Fails with "invalid or expired token" if the identity token is expired or from a session that has ended, and with "invalid credentials" if the identity may not enter that tenant. A member whose tenant requires single sign-on (Membership.ssoRequired) and who signed in with a password is refused with the error code SSO_REQUIRED instead; a non-member never sees that code.
Returns AuthToken!
| Argument | Type | Description |
|---|---|---|
identityToken | String! | The identity token returned by login. |
tenant | String! | Token of the tenant to enter. |
setMemberAccess
Replaces a member's roles and the customers and groups they are limited to in one step, and returns the member: both change or neither does. Use it instead of calling setMemberRoles and setMemberScope in turn, which can leave the roles changed when the scope is refused. The change takes effect at the member's next token refresh, as setMemberRoles describes. Fails with the error codes of setMemberRoles, plus INVALID_VALUE for an anchor whose token is not valid, and LIMIT_EXCEEDED for more than 16 anchors. Requires member:write.
Returns Member!
| Argument | Type | Description |
|---|---|---|
email | String! | Email of the member. |
roleTokens | [String!]! | Tokens of the roles the member should hold. |
scope | [ScopeAnchorInput!]! | The customers and groups to limit the member to; empty for the whole tenant. |
setMemberEnabled
Enables or disables a member and returns the member. Disabling takes effect at the member's next token refresh, which is refused for this tenant (within 15 minutes; 5 for customer-scoped access); their sessions in other tenants are not affected. A member whose invitation is still pending cannot be enabled (error code INVALID_VALUE): reissue or revoke the invitation. Fails with the same error codes as setMemberRoles. Requires member:write.
Returns Member!
| Argument | Type | Description |
|---|---|---|
email | String! | Email of the member. |
enabled | Boolean! | True to enable, false to disable. |
setMemberRoles
Replaces a member's roles with exactly those given and returns the member. The change, adding or taking away authorities, takes effect at the member's next token refresh (within 15 minutes; 5 for customer-scoped access): an access token already issued keeps its old authorities until it expires, and the member's sessions in other tenants are not affected. Fails with ESCALATION (a role grants, or the member holds, an authority you do not hold), SELF_MODIFICATION (your own membership), LAST_ADMIN (it would leave nobody able to manage members), MANAGED_BY_IDP (the identity provider manages it) or NOT_FOUND. Requires member:write.
Returns Member!
| Argument | Type | Description |
|---|---|---|
email | String! | Email of the member. |
roleTokens | [String!]! | Tokens of the roles the member should hold. |
setMemberScope
Replaces the customers and groups a member is limited to and returns the member. An empty list gives them the whole tenant. The change takes effect at the member's next token refresh, as setMemberRoles does. Fails with the same error codes as setMemberRoles, plus INVALID_VALUE for an anchor whose token is not valid, and LIMIT_EXCEEDED for more than 16 anchors. Requires member:write.
Returns Member!
| Argument | Type | Description |
|---|---|---|
email | String! | Email of the member. |
scope | [ScopeAnchorInput!]! | The customers to limit the member to; empty for the whole tenant. |
setServiceAccountAccess
Replaces a service account's roles and scope. Requires member:write, and you must hold every authority the account holds now and every authority of the new roles (error code ESCALATION otherwise). Tokens already issued keep their old access until they expire, at most 5 minutes.
Returns ServiceAccount!
| Argument | Type | Description |
|---|---|---|
roleTokens | [String!]! | The roles the account will hold, replacing its current ones. |
scope | [ScopeAnchorInput!]! | The account's new scope. An empty list means the whole tenant. |
token | String! | Token of the service account. |
setServiceAccountEnabled
Enables or disables a service account. A disabled account cannot obtain tokens; tokens already issued stay valid until they expire, at most 5 minutes. Requires member:write and every authority the account holds.
Returns ServiceAccount!
| Argument | Type | Description |
|---|---|---|
enabled | Boolean! | True to enable, false to disable. |
token | String! | Token of the service account. |
setTenantBasemap
Sets the map basemap of the caller's own tenant and returns the tenant with its resulting basemap. It replaces the whole basemap: any field not sent, or sent as null or a blank string, is cleared and falls back to the instance default. An invalid value rejects the whole request. Requires basemap:write, which is separate from branding:write because the tile URL may embed the tenant's own provider key.
Returns Tenant!
| Argument | Type | Description |
|---|---|---|
input | TenantBasemapInput! | The basemap to apply; replaces the tenant's current basemap. |
setTenantBranding
Sets the white-label theme of the caller's own tenant and returns the tenant with its
resulting branding. It replaces the whole theme: any field not sent, or sent as null, is
cleared and falls back to the instance default. Colors must be #rrggbb, the title at
most 64 characters, and the logo height from 16 to 200 pixels; an invalid value rejects
the whole request. It does not touch the logo; use setTenantLogo. Requires
branding:write.
Returns Tenant!
| Argument | Type | Description |
|---|---|---|
input | TenantBrandingInput! | The theme to apply; replaces the tenant's current theme. |
setTenantLocale
Sets the default console language of the caller's own tenant and returns the tenant.
Null or a blank string clears it, so the tenant falls back to the instance default. The
value must be a BCP-47 language tag of at most 35 characters in the form en, es-MX,
zh-Hans or zh-Hans-CN (a two- or three-letter language, an optional four-letter
script, an optional two-letter or three-digit region); its case is normalized. A
well-formed tag the console has no translation for is stored and takes effect once the
console supports it. Requires locale:write.
Returns Tenant!
| Argument | Type | Description |
|---|---|---|
locale | String | The language tag, such as "en" or "pt-BR". Null clears it. |
setTenantLogo
Sets the logo of the caller's own tenant to an image URL or an inline image, or clears
it, and returns the tenant. The logo must be an https URL of at most 2048 characters, or
a base64 data: URI of a PNG, JPEG or WebP image of at most 256 KiB once decoded; SVG
is accepted only as an https URL. Null or a blank string clears the logo. Uploading an
image file is done with a separate HTTP upload endpoint rather than this mutation, and
setting or clearing the logo here discards any previously uploaded image. Requires
branding:write.
Returns Tenant!
| Argument | Type | Description |
|---|---|---|
logo | String | The logo as an https URL or an inline image data URI. Null clears it. |
setTenantMfaRequired
Requires (or stops requiring) a second factor of the caller's own tenant's password sign-ins, and returns the tenant. While it is on, a member whose sign-in did not use a second factor is refused by selectTenant, refresh and the MCP authorization step (error codes MFA_REQUIRED and MFA_ENROLLMENT_REQUIRED), and password sessions already inside the tenant are refused at their next refresh. A member can always still sign in and set up their own authenticator, so turning it on strands nobody. It cannot turn off a requirement the tenant's tier sets (Tenant.mfaRequiredByTier). Requires member:write and an unscoped caller. Service accounts and single sign-on sessions are not affected.
Returns Tenant!
| Argument | Type | Description |
|---|---|---|
required | Boolean! | True to require a second factor. |
updateProfile
Changes the signed-in user's own first and last name and returns the updated user. The email cannot be changed here. Fields left out of the request keep their stored value. Requires only a signed-in caller.
Returns CurrentIdentity!
| Argument | Type | Description |
|---|---|---|
request | ProfileUpdateRequest! | The name changes to apply. |
updateTenantRole
Changes a role this tenant defined and returns it. Members holding it receive the change at their next token refresh, removing an authority included, as setMemberRoles describes. Fails with READ_ONLY for an instance role, NOT_FOUND for an unknown token, ESCALATION if the resulting set grants an authority you do not hold, and LAST_ADMIN if it would leave nobody able to manage members. Requires role:write.
Returns TenantRole!
| Argument | Type | Description |
|---|---|---|
request | TenantRoleUpdateRequest! | The changes to apply. |
token | String! | Token of the role. |
verifyMfa
Completes a sign-in that login held for its second factor, and returns what login returns:
an identity token and the tenants the identity may enter. Needs no token. challenge is the
handle from login's MFA_CHALLENGE error; code is a code from the authenticator app (six
digits) or one of the account's recovery codes. Every token minted from this sign-in
records how the person proved who they are (the amr claim: pwd, otp and mfa for an
authenticator code, pwd and mfa for a recovery code).
A wrong code, a replayed code and a code refused because the account is locked all fail with the same "invalid code" error. A challenge accepts five attempts and five minutes, and one challenge signs in once; an unknown, expired, used-up or outdated challenge (the password was reset since) fails with MFA_CHALLENGE_EXPIRED: sign in again. Repeated wrong authenticator codes lock the account's authenticator for a while (recovery codes keep working), and attempts are limited per source address. One verification per request.
Returns IdentityAuth!
| Argument | Type | Description |
|---|---|---|
challenge | String! | The challenge from login's MFA_CHALLENGE error. |
code | String! | An authenticator code, or a recovery code. |
Objects
AuthToken · CurrentIdentity · IdentityAuth · Invitation · InvitationSearchResults · Member · MemberInvitation · MemberSearchResults · Membership · MfaStatus · RecoveryCodes · ScopeAnchor · SearchResultsPagination · ServiceAccount · ServiceAccountCredentials · ServiceAccountSearchResults · ServiceAccountSecret · SignOut · SsoBegin · Tenant · TenantBasemap · TenantBranding · TenantGovernance · TenantRole · TotpEnrollment · TotpEnrollmentResult
AuthToken
object
A tenant-scoped session: a short-lived access token paired with a longer-lived refresh token. Returned by selectTenant and refresh.
| Field | Type | Description |
|---|---|---|
accessToken | String! | Signed JWT that authorizes tenant-scoped API requests; send it as Authorization: Bearer <token>. Valid until expiresAt. |
expiresAt | String! | When the access token expires, as an RFC 3339 timestamp in UTC. The refresh token's own, longer expiry is not reported. The lifetimes are operator-configured; the defaults are 15 minutes for the access token and 7 days for the refresh token. |
refreshToken | String! | Signed JWT whose only use is to obtain a new pair through the refresh mutation. It is single-use: refreshing consumes it and returns a new one. |
CurrentIdentity
object
The signed-in user, as shown in the console.
| Field | Type | Description |
|---|---|---|
email | String! | The user's email address, which is their sign-in name and cannot be changed. |
firstName | String | The user's first name. Null when none has been set. |
lastName | String | The user's last name. Null when none has been set. |
scope | [ScopeAnchor!]! | The customers the signed-in member is limited to in the current tenant. Empty when they see the whole tenant. |
IdentityAuth
object
The result of a successful email and password login: an identity token that is not yet tied to any tenant, and the identity's memberships. Pass the identity token and a chosen tenant to selectTenant to obtain a tenant-scoped AuthToken.
| Field | Type | Description |
|---|---|---|
expiresAt | String! | When the identity token expires, as an RFC 3339 timestamp in UTC. It lives as long as a tenant access token (15 minutes by default, operator-configured). |
identityToken | String! | Signed JWT proving who the caller is, valid across the instance rather than within one tenant. It is accepted by selectTenant, identityMemberships and the instance-level administration endpoints, and is not accepted as a tenant access token. |
memberships | [Membership!]! | The identity's tenant memberships as of login, including any that are disabled or in a tenant that is disabled or being deleted; selectTenant refuses those. After a password sign-in, a tenant that requires single sign-on is listed with ssoRequired set, and selectTenant refuses it. Call identityMemberships to re-read them later without logging in again. |
superuser | Boolean! | True when the identity holds the superuser system role, which may enter any tenant with full authority whether or not it has a membership there. |
Invitation
object
An invitation to join this tenant.
| Field | Type | Description |
|---|---|---|
acceptedAt | String | When the invitation was accepted, as an RFC 3339 timestamp. Null until it is. |
createdAt | String! | When the invitation was issued, as an RFC 3339 timestamp. |
email | String! | The email address the invitation was issued to. |
expiresAt | String! | When the invitation stops being usable, as an RFC 3339 timestamp. |
revokedAt | String | When the invitation was revoked, as an RFC 3339 timestamp. Null unless it was. |
state | InvitationState! | Where the invitation is in its life. |
InvitationSearchResults
object
One page of this tenant's invitations, newest first.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [Invitation!]! | The invitations on this page. |
Member
object
A person's membership in this tenant, as the tenant's administrators see it.
| Field | Type | Description |
|---|---|---|
email | String! | The member's email address, which is their sign-in name. |
enabled | Boolean! | False when the membership is disabled, or the member has not accepted their invitation yet. |
firstName | String | The member's first name. Null when none has been set, and always null while the member's invitation is pending. |
invitationPending | Boolean! | True when the member was invited and has not accepted yet. |
lastName | String | The member's last name. Null when none has been set, and always null while the member's invitation is pending. |
managedByIdentityProvider | Boolean! | True when the membership is managed by the tenant's identity provider. Such a membership cannot be changed here. |
mfaEnabled | Boolean! | True when the member has two-factor authentication turned on. Always false while their invitation is pending. |
roles | [TenantRole!]! | The roles the member holds in this tenant. |
scope | [ScopeAnchor!]! | The customers whose devices the member is limited to. Empty when the member sees the whole tenant. |
MemberInvitation
object
The result of inviting a person or reissuing their invitation.
| Field | Type | Description |
|---|---|---|
invitationCode | String! | The one-time invitation code. Give it to the person to accept with acceptInvitation; it is shown only here, is never stored, and cannot be read back later. It is valid for 7 days. |
member | Member! | The member, disabled until they accept. |
MemberSearchResults
object
One page of this tenant's members, ordered by email.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [Member!]! | The members on this page. |
Membership
object
A tenant an identity belongs to, with the roles the identity holds in it.
| Field | Type | Description |
|---|---|---|
mfaRequired | Boolean! | True when the tenant requires a second factor and this password sign-in did not use one, so selectTenant refuses it with the error code MFA_REQUIRED (the identity has a factor: sign in again and enter the code) or MFA_ENROLLMENT_REQUIRED (it has none: set up two-factor authentication first, with beginTotpEnrollment, then sign in again). Always false for a superuser, and for a sign-in that already used a second factor. |
roles | [String!]! | Tokens of the roles this identity holds in the tenant. Empty if it holds none. |
ssoRequired | Boolean! | True when the tenant requires single sign-on and this sign-in used a password, so selectTenant refuses it with the error code SSO_REQUIRED: sign in through the identity provider (beginSso) to enter it. Always false for a superuser, and for a sign-in that came through single sign-on. |
tenant | String! | Token of the tenant, as accepted by selectTenant. |
MfaStatus
object
An identity's own view of its second factor.
| Field | Type | Description |
|---|---|---|
enrolledAt | String | When the factor was confirmed, as an RFC 3339 timestamp. Null when it is not enabled. |
recoveryCodesRemaining | Int! | How many recovery codes are still unused. Zero when the factor is not enabled. |
totpEnabled | Boolean! | True when an authenticator is enrolled and confirmed, so a password sign-in asks for a code. |
RecoveryCodes
object
A set of single-use recovery codes, shown ONCE. Each is stored only as a digest, so a lost set cannot be shown again: regenerateRecoveryCodes replaces it.
| Field | Type | Description |
|---|---|---|
codes | [String!]! | The codes, such as ABCD-EFGH-JKMN-PQRS. Each can sign in once, in place of an authenticator code. |
ScopeAnchor
object
One entry of a member's scope: a customer or group whose devices the member can see.
| Field | Type | Description |
|---|---|---|
kind | ScopeAnchorKind! | What the anchor names. |
token | String! | Token of the customer (or group) the anchor names. |
SearchResultsPagination
object
Where a page of search results sits in the full result set. Positions are 1-based and inclusive.
| Field | Type | Description |
|---|---|---|
pageEnd | Int | Position of the last result on this page within the full result set (1-based, inclusive). |
pageStart | Int | Position of the first result on this page within the full result set (1-based). |
totalRecords | Int | Number of records matching the criteria across all pages. |
ServiceAccount
object
A service account: a non-human principal of this tenant that an integration uses to call the APIs. It obtains short-lived access tokens from the OAuth token endpoint with the client_credentials grant, using its client ID and a client secret, and acts with exactly the authorities of its roles, limited to its scope.
| Field | Type | Description |
|---|---|---|
clientId | String! | The OAuth client ID the account authenticates with. Not a secret. |
createdAt | String! | When the account was created, as an RFC 3339 timestamp. |
createdBy | String | The subject of the administrator who created the account. |
description | String | Free-text description. Null when none was set. |
enabled | Boolean! | False when the account is disabled and cannot obtain tokens. |
name | String | Human-readable name. Null when none was set. |
roles | [TenantRole!]! | The roles the account holds. Its tokens carry exactly these roles' authorities. |
scope | [ScopeAnchor!]! | The customers or groups whose devices the account is limited to. Empty for the whole tenant. |
secrets | [ServiceAccountSecret!]! | The account's secrets, newest first, including expired ones. |
token | String! | Unique identifier of the service account within this tenant. |
ServiceAccountCredentials
object
A service account with a newly created client secret. The secret is shown only here: it is never stored, and cannot be read back later.
| Field | Type | Description |
|---|---|---|
clientId | String! | The client ID to authenticate with. |
clientSecret | String! | The client secret. Store it now; it cannot be shown again. |
serviceAccount | ServiceAccount! | The service account. |
tokenEndpoint | String | The token endpoint to request tokens from. Null when this instance has no OAuth issuer configured. |
ServiceAccountSearchResults
object
One page of this tenant's service accounts, ordered by token.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits within the full result set. |
results | [ServiceAccount!]! | The service accounts on this page. |
ServiceAccountSecret
object
One client secret of a service account. The secret itself is shown only once, when it is created; this record never carries it.
| Field | Type | Description |
|---|---|---|
active | Boolean! | True while the secret can still obtain tokens. |
createdAt | String! | When the secret was created, as an RFC 3339 timestamp. |
expiresAt | String! | When the secret stops working, as an RFC 3339 timestamp. Every secret expires; after a rotation the previous secret's expiry is the end of the overlap. |
hint | String! | The secret's last four characters, to tell secrets apart. |
lastUsedAt | String | When the secret last obtained a token, as an RFC 3339 timestamp. Null if it never has. |
SignOut
object
The outcome of signing out. The sign-in has ended on this platform.
| Field | Type | Description |
|---|---|---|
providerSignOutUrl | String | Where to send the browser to sign out at the identity provider as well, or null when there is nothing more to do: the sign-in did not come through single sign-on, its connection is not set to sign people out at the provider, the provider publishes no sign-out address, or returnTo was not given. The provider sends the browser back to the app named by returnTo. |
SsoBegin
object
The start of a single sign-on: the address of the identity provider's sign-in page. Send the
browser there; the provider sends it back to the returnTo address you gave.
| Field | Type | Description |
|---|---|---|
authorizationUrl | String! | The provider's authorization address, to navigate the browser to. |
Tenant
object
The tenant the caller is acting within, as seen by that tenant's own members. It carries the settings that shape the console: white-label branding, the map basemap and the default language.
| Field | Type | Description |
|---|---|---|
basemap | TenantBasemap! | The map basemap in effect for this tenant: its own overrides laid over the instance-wide default. Always present; a field is null where neither level sets it, and maps with no tile source draw positions on a plain panel. Readable by any member of the tenant. |
basemapOverride | TenantBasemap! | Only the basemap this tenant has set itself, with no instance default folded in: a null field means the tenant inherits it. Use it to show which values are overridden when editing; use basemap to draw maps. Readable by any member of the tenant. |
branding | TenantBranding! | The white-labeling in effect for this tenant: the tenant's own overrides laid over the instance-wide default, field by field, with the tenant's value winning. Always present; a field is null when neither level sets it, and the console then keeps its built-in look for that aspect. Readable by any member of the tenant. |
brandingOverride | TenantBranding! | Only the branding this tenant has set itself, with no instance default folded in: a null field means the tenant inherits that aspect. Use it to show which values are overridden when editing; use branding to apply the look. Readable by any member of the tenant. |
description | String | Free-text description of the tenant. Null when none has been set. |
locale | String | The default language of the console for this tenant, as a BCP-47 language tag such as "en", "es" or "pt-BR": the tenant's own setting if it has one, otherwise the instance default. Null when neither is set. It applies only to members who have not chosen a language themselves, and only when the console ships that language. Readable by any member of the tenant. |
localeOverride | String | Only the default language this tenant has set itself, with no instance default folded in: null means the tenant inherits it. Use it to show whether the value is overridden when editing; use locale for the value in effect. |
mfaRequired | Boolean! | True when the tenant requires a second factor of its password sign-ins: the tenant's own setting or its tier's floor. Single sign-on is governed by its connection's requirements instead. Readable by any member of the tenant. |
mfaRequiredByTier | Boolean! | True when the tenant's tier requires a second factor, which setTenantMfaRequired cannot turn off. Readable by any member of the tenant. |
name | String | Human-readable name of the tenant. Null when none has been set. |
token | String! | Unique identifier of the tenant on this instance. |
TenantBasemap
object
The map tile source a tenant's maps draw on, plus the view they open at when there is nothing to fit to. A null field is unset.
| Field | Type | Description |
|---|---|---|
attribution | String | The credit line the tile provider requires, shown on the map. Plain text, in which links may be written as <a href="https://...">text</a>. Always set together with tileUrl: a tenant that sets its own tileUrl does not inherit the instance default's credit line. |
centerLat | Float | Latitude in degrees, from -90 to 90, of the point maps open centered on when they have nothing of their own to fit to. Set together with centerLon. |
centerLon | Float | Longitude in degrees, from -180 to 180, of the point maps open centered on when they have nothing of their own to fit to. Set together with centerLat. |
tileUrl | String | URL template of the raster tiles, over https, in which {z}, {x} and {y} (or {bbox-epsg-3857}, or {quadkey}) stand for the tile being requested. |
zoom | Float | Zoom level, from 0 (whole world) to 24, that maps open at when they have nothing of their own to fit to. |
TenantBranding
object
White-labeling applied to the console. A null field means the console keeps its built-in look for that aspect.
| Field | Type | Description |
|---|---|---|
accent | String | Accent color as a hex string, #rrggbb. |
background | String | Page background color as a hex string, #rrggbb. |
foreground | String | Text color as a hex string, #rrggbb. |
logo | String | The logo, in a form you can put straight into an image tag: an https URL, a base64 data: URI of a PNG, JPEG or WebP image, or, for an uploaded logo, a path on this API that you fetch with your access token. |
logoMaxHeight | Int | Maximum height, in pixels, at which the logo is drawn, from 16 to 200. |
primary | String | Primary brand color as a hex string, #rrggbb. |
title | String | Product name shown in the browser tab and the console, at most 64 characters. |
updatedAt | String | A version stamp, as an RFC 3339 timestamp, for caching: it changes whenever the branding may have changed. On branding it is the later of the tenant's last modification and the instance default's; on brandingOverride it is the tenant's last modification, which any change to the tenant moves, not only a branding change. Null if never modified. |
TenantGovernance
object
The limits that apply to one tenant, resolved for the services that enforce them: each value is the tenant's own setting if it has one, otherwise the setting of the tenant's tier. A null limit means neither sets it, and the enforcing service then applies its platform default; null never means unlimited. Which of the two supplied a value is not reported.
| Field | Type | Description |
|---|---|---|
aiExternalEnabled | Boolean! | Whether the tenant has agreed to have its data sent to an external AI model provider. False unless the tenant has explicitly opted in; there is no inherited value, and a tenant that never opted in reads as false. |
aiInferenceBurst | Int | How many AI inference requests the tenant may make in a burst above the sustained rate before being throttled. |
aiInferenceRequestsPerMinute | Float | Sustained rate at which the tenant may make AI inference requests, in requests per minute. |
calculatedMetricsPerProfile | Int | The most calculated metrics (metrics computed from a formula over the other metrics of a reading) that one of the tenant's device profiles may publish. Set on the tenant's tier; there is no per-tenant override. When null, the platform default applies, which is 0: calculated metrics are off unless the tier turns them on. |
geoFenceCeiling | Int | The most geofences the tenant may have at one time. When null, the platform default applies. |
geoFencePositionBudget | Int | The most positions (vertices) the tenant's geofences may have in total, summed across every fence. A limit on the combined size of the whole set, independent of geoFencePositionCeiling and geoFenceCeiling. When null, the platform default applies. |
geoFencePositionCeiling | Int | The most positions (vertices) one geofence may have, counted across all of its rings. A limit on the size of a single fence. When null, the platform default applies. |
heldCommandCeiling | Int | The most commands the tenant may have waiting on a device that is known to be offline, in the held state. Beyond it, new commands for absent devices are refused. When null, the command service applies its configured default; there is no unlimited value. |
ingestBurst | Int | How many readings the tenant may submit in a burst above the sustained ingest rate before being throttled. |
ingestReadingsPerSecond | Float | The tenant's effective sustained ingest ceiling, in readings per second: its own override, else its tier's. A reading is one stored value: one measurement value, one location or one alert. Null means neither declares one and the platform default applies — never unlimited. |
integrationsPerTenant | Int | The most inbound integrations (network servers and webhook senders, each authenticated by its own bearer token) the tenant may hold. Set on the tenant's tier; there is no per-tenant override. When null, the platform default applies, which is 5. Zero is a real setting: the tier holds none. |
outboundBurst | Int | How many outbound calls the tenant may make in a burst above the sustained outbound rate before being throttled. |
outboundCallsPerSecond | Float | The tenant's effective sustained outbound ceiling, in connector calls dispatched per second: its own override, else its tier's. Null means neither declares one and the platform default applies — never unlimited. |
provisioningBurst | Int | How many device registrations the tenant may make in a burst above the sustained self-registration rate before being throttled. |
provisioningRegistrationsPerSecond | Float | The tenant's effective sustained self-registration ceiling, in device registrations per second: its own override, else its tier's. Null means neither declares one and the platform default applies — never unlimited. |
purgeState | String! | Where the tenant is in its deletion lifecycle: active for a normal tenant, or purging once the tenant has been deleted and its data is being erased. Never null. |
shedPriority | Int | How strongly the tenant's traffic is protected when the platform is overloaded and has to refuse some ingest: a whole number from 1 to 100, higher meaning more protected. 80 to 100 is never refused, 50 to 79 only under the heaviest load, 20 to 49 under heavy load, and 1 to 19 first. When null, the platform treats the tenant as priority 30. |
tierToken | String! | Token of the tier (the operator-defined packaging level) the tenant belongs to. Every tenant has exactly one. |
TenantRole
object
A role that can be assigned to members of this tenant.
| Field | Type | Description |
|---|---|---|
authorities | [String!]! | The authorities the role grants, such as device:read or alarm:write. * grants every tenant authority. |
description | String | Free-text description of the role. Null when none has been set. |
name | String | Human-readable name of the role. Null when none has been set. |
owner | RoleOwner! | Whether the instance operator or this tenant defined the role. |
token | String! | Token of the role, unique among the roles assignable in this tenant. |
TotpEnrollment
object
What beginTotpEnrollment hands back, once: everything an authenticator app needs to hold the new second factor. Render otpauthUri as a QR code in the browser (it carries the secret) or show secret for typing in by hand. Neither is stored in readable form or returned again.
| Field | Type | Description |
|---|---|---|
expiresAt | String! | When the pending enrolment stops being confirmable, as an RFC 3339 timestamp. Ten minutes after it began. |
otpauthUri | String! | The otpauth:// URI to render as a QR code. |
secret | String! | The same shared secret as unpadded base32, for typing into an authenticator by hand. |
TotpEnrollmentResult
object
What confirmTotpEnrollment returns: the recovery codes, shown once, and the caller's replacement sign-in.
| Field | Type | Description |
|---|---|---|
auth | IdentityAuth! | The sign-in to continue with. Turning the second factor on ends every session the account had, the one that enrolled included (so a session started by someone who had only the password does not outlast it), and this is a fresh sign-in whose tokens record a password and an authenticator code. Same shape as login's answer. |
codes | [String!]! | The ten recovery codes, shown once. Each is stored only as a digest and cannot be shown again. |
Input types
InvitationSearchCriteria · InviteMemberRequest · MemberSearchCriteria · ProfileUpdateRequest · ScopeAnchorInput · ServiceAccountCreateRequest · ServiceAccountSearchCriteria · TenantBasemapInput · TenantBrandingInput · TenantRoleCreateRequest · TenantRoleUpdateRequest
InvitationSearchCriteria
input
Paging for listing this tenant's invitations.
| Input field | Type | Description |
|---|---|---|
pageNumber | Int! | Page to return, starting at 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
InviteMemberRequest
input
A person to invite into this tenant.
| Input field | Type | Description |
|---|---|---|
email | String! | The person's email address. |
roleTokens | [String!]! | Tokens of the roles to give them. Each must be assignable in this tenant. |
scope | [ScopeAnchorInput!] | The customers to limit them to. Omit it, or send an empty list, for the whole tenant. At most 16 anchors. |
MemberSearchCriteria
input
Filters and paging for listing this tenant's members. Filters are combined with AND.
| Input field | Type | Description |
|---|---|---|
emailPrefix | String | Only members whose email starts with this text, ignoring case. |
enabled | Boolean | True for enabled memberships only, false for disabled ones only. Omit it for both. |
managedByIdentityProvider | Boolean | True for memberships the tenant's identity provider manages only, false for manual ones only. Omit it for both. |
pageNumber | Int! | Page to return, starting at 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
roleToken | String | Only members who hold the role with this token, whether the instance's or the tenant's own. |
scopeAnchor | ScopeAnchorInput | Only members whose scope names this customer or group. A member with the whole tenant has no scope and is not matched. |
ProfileUpdateRequest
input
Changes to the signed-in user's own display name. The user is identified by the request's access token, so only your own profile can be edited. For each field, leaving it out keeps the stored name, a value sets it, and null or an empty string clears it.
| Input field | Type | Description |
|---|---|---|
firstName | String | New first name. Omit to keep it, send null or an empty string to clear it. |
lastName | String | New last name. Omit to keep it, send null or an empty string to clear it. |
ScopeAnchorInput
input
One entry of a scope to set on a member.
| Input field | Type | Description |
|---|---|---|
kind | ScopeAnchorKind! | What the anchor names. |
token | String! | Token of the customer or group the anchor names. |
ServiceAccountCreateRequest
input
A service account to create.
| Input field | Type | Description |
|---|---|---|
description | String | Free-text description, at most 1024 characters. |
name | String | Human-readable name, at most 128 characters. |
roleTokens | [String!]! | The roles to assign. Each must be assignable in this tenant and grant only authorities you hold yourself. |
scope | [ScopeAnchorInput!] | The customers or groups to limit the account to. Omit it, or send an empty list, for the whole tenant. |
secretExpiresInDays | Int | Days until the first secret expires: 1 to 730. Defaults to 365. |
token | String! | Unique identifier within this tenant: letters, digits, hyphens and underscores, starting with a letter or digit, at most 128 characters. |
ServiceAccountSearchCriteria
input
Paging for listing this tenant's service accounts.
| Input field | Type | Description |
|---|---|---|
pageNumber | Int! | Page to return, starting at 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
TenantBasemapInput
input
A basemap for setTenantBasemap. Every field is optional and the input replaces the tenant's whole basemap: a field left out or sent as null (or as a blank string) is cleared, so that aspect falls back to the instance default.
| Input field | Type | Description |
|---|---|---|
attribution | String | Credit line for the tiles, at most 512 characters. The only markup allowed is links written exactly as <a href="https://...">text</a>. Required when tileUrl is set, and rejected without it. |
centerLat | Float | Latitude in degrees, from -90 to 90. Must be sent together with centerLon. |
centerLon | Float | Longitude in degrees, from -180 to 180. Must be sent together with centerLat. |
tileUrl | String | Raster tile URL template: an https URL of at most 2048 characters containing {z}, {x} and {y}, or {bbox-epsg-3857}, or {quadkey}. {prefix}, {ratio} and {bbox} are also substituted; any other placeholder is rejected. Requires attribution. |
zoom | Float | Zoom level, from 0 to 24. |
TenantBrandingInput
input
A tenant's white-labeling theme for setTenantBranding. It replaces the whole theme: a field left out or sent as null is cleared, so that aspect falls back to the instance default. The logo is not part of it; see setTenantLogo.
| Input field | Type | Description |
|---|---|---|
accent | String | Accent color as a hex string, #rrggbb. |
background | String | Page background color as a hex string, #rrggbb. |
foreground | String | Text color as a hex string, #rrggbb. |
logoMaxHeight | Int | Maximum height in pixels at which the logo is drawn; from 16 to 200. |
primary | String | Primary brand color as a hex string, #rrggbb. |
title | String | Product name shown in the browser tab and the console, at most 64 characters. |
TenantRoleCreateRequest
input
A role to define for this tenant.
| Input field | Type | Description |
|---|---|---|
authorities | [String!]! | The authorities the role grants. Each must be a tenant authority that you hold yourself; * only if you hold *. |
description | String | Free-text description of the role. |
name | String | Human-readable name of the role. |
token | String! | Unique identifier for the role: letters, digits, hyphens and underscores, starting with a letter or digit, at most 128 characters. It may not be the token of an instance role. |
TenantRoleUpdateRequest
input
Changes to a role this tenant defined. For each field, leaving it out keeps the stored value, a value sets it, and null clears it.
| Input field | Type | Description |
|---|---|---|
authorities | [String!] | New authorities, replacing the current set. Omit to keep them; null or an empty list removes them all. Each must be a tenant authority that you hold yourself. |
description | String | New description. Omit to keep it, send null to clear it. |
name | String | New name. Omit to keep it, send null to clear it. |
Enums
InvitationState · RoleOwner · ScopeAnchorKind · SignOutReturn
InvitationState
enum
Where an invitation is in its life.
| Value | Description |
|---|---|
PENDING | Issued and still usable. |
ACCEPTED | Accepted: the member has joined. |
EXPIRED | Not accepted before it expired. Reissue it to send a new one. |
REVOKED | Revoked by an administrator. |
RoleOwner
enum
Who defined a role.
| Value | Description |
|---|---|
INSTANCE | A role the instance operator defined. It can be assigned here but not changed here. |
TENANT | A role this tenant defined for itself. It exists only in this tenant. |
ScopeAnchorKind
enum
The kind of thing a scope anchor names.
| Value | Description |
|---|---|
CUSTOMER | A customer: the anchor covers the devices assigned to that customer. |
GROUP | An entity group: the anchor covers the devices in the group while it is an access scope (at its active version), so a device moved into or out of the group is seen or not without the member being edited. A group that is not an access scope covers nothing. |
SignOutReturn
enum
The app a sign-out at the identity provider returns the browser to.
| Value | Description |
|---|---|
CONSOLE | The console's sign-in page. |
DASHBOARD | The dashboard app. |