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
Entity | Create | Read | Update | Delete |
---|---|---|---|---|
Space, Point | X | |||
Signal | X | - | - | |
Webhook | X |
Developer
Entity | Create | Read | Update | Delete |
---|---|---|---|---|
Space, Point | X | X | X | X |
Signal | X | X | - | - |
Webhook | X | X | X | X |
Access Token | X | X | - | X |
Tenant | - | X |
Admin
Entity | Create | Read | Update | Delete |
---|---|---|---|---|
Space, Point | X | X | X | X |
Signal | X | X | - | - |
Webhook | X | X | X | X |
Access Token | X | X | - | X |
Tenant | - | X | X | |
Member | X | X | X | X |
Owner
Entity | Create | Read | Update | Delete |
---|---|---|---|---|
Space, Point | X | X | X | X |
Signal | X | X | - | - |
Webhook | X | X | X | X |
Access Token | X | X | - | X |
Tenant | X | X | X | X |
Member | X | X | X | X |
Billing | X | X | X | X |