Diagnosly has three built-in roles, set per user and scoped per tenant.
| Role | What they can do |
|---|---|
admin |
Everything: user management, billing, install tokens, settings, delete devices |
tech |
Run scripts, diagnose, view command history, manage script library, manage schedules |
viewer |
Read-only across the dashboard. Cannot run commands, cannot edit any config |
Assigning roles
In Admin → Users, change a user's role via the inline dropdown. You can't change your own role (prevents lockout).
Self-protect
The system prevents:
- Deleting yourself.
- Deactivating yourself.
- Demoting yourself away from
adminif you're the last admin.
Sessions & MFA
JWTs are 1-day TTL by default. MFA enforcement is per-tenant:
disabled: no MFA challenge everoptional: users can opt in; not requiredrequired: every user must enrol before first loginadmin_only: onlyadminusers must enrol
Configure at Settings → Security.
SSO
If you've configured an OIDC or SAML identity provider (Okta, Azure AD, Google Workspace), users sign in via that flow. JIT user provisioning creates the user on first login. See SSO with Okta.