Skip to main content

Users

When you create a tenant, you are automatically the tenant owner. But you can invite more users to your tentant with different roles.

Before using the api, make sure you have read the auth docs.

Add User

Invite

With the role OWNER or ADMIN, you can invite new members to the tenant.

To invite user, you can use the dashboard or the api:

mutation ADD_USER {
member {
invite(input: { email: "name@company.com", role: DEVELOPER }) {
id
email
role
}
}
}

Accept

Invited member should receive an email with verification token, and can use the api to accept.

Before you can accept the invitation, you need to create and verify your account, as in the auth docs.

(Accepting in dashboard coming soon)

mutation ACCEPT_MEMBERSHIP {
member {
accept(input: { token: "verification-token" }) {
id
email
userId
tenant {
name
}
}
}
}

Roles

Dimension Four has several user roles and access token scopes.

Guest

EntityCreateReadUpdateDelete
Space, PointX
SignalX--
WebhookX

Developer

EntityCreateReadUpdateDelete
Space, PointXXXX
SignalXX--
WebhookXXXX
Access TokenXX-X
Tenant-X

Admin

EntityCreateReadUpdateDelete
Space, PointXXXX
SignalXX--
WebhookXXXX
Access TokenXX-X
Tenant-XX
MemberXXXX

Owner

EntityCreateReadUpdateDelete
Space, PointXXXX
SignalXX--
WebhookXXXX
Access TokenXX-X
TenantXXXX
MemberXXXX
BillingXXXX