Permission String Format
Permission strings follow aresource:action pattern. The resource identifies the data model and the action identifies what can be done with it. For example:
customers:read— fetch customer recordslicenses:write— create or update licensesstaff:manage— create, update, and deactivate staff accounts
Full Permission Reference
The Master Admin Account
The Master Admin is a special built-in account that holds the wildcard permission*, granting unrestricted access to every endpoint and every resource. The Master Admin can also mint registration keys used to bootstrap new Avalex installations — an operation not available to any role-based account. Treat the Master Admin credentials with the same care as a root or superuser account: store the password in a secrets manager and avoid using it for day-to-day operations.
Staff Roles
Rather than assigning permissions directly to individual staff members, you define StaffRole entities — named role templates that bundle a set of permission strings together. For example, a “Support Agent” role might includecustomers:read, licenses:read, and orders:read, while a “License Manager” role adds licenses:write and orders:write on top of that.
Once a role is defined, you assign it to one or more staff accounts. Changing the permissions on a role immediately affects every staff member assigned to it, without requiring individual account edits.
Staff accounts must have
active: true to authenticate. If an account is deactivated, Avalex rejects login attempts and invalidates existing tokens for that account — even if the credentials are correct. Use deactivation to immediately revoke access when a team member leaves, without permanently deleting their audit trail.Next Steps
Managing Staff & Roles
Learn how to create staff roles, assign permissions, onboard new team members, and deactivate accounts from the Admin Portal.
