User Roles & Permissions Explained

RUAL has no fixed roles. What a user may do is composed from permission settings, scopes and optional user groups on their user document, and an administrator, developer, API user or visitor is a combination of those.

Access is composed from three layers

If you come from a system with fixed roles like "admin" or "editor", RUAL works differently: there are no predefined roles. What a user can do comes from three layers on their user document:

Permissions and settings Named switches such as Staging Developer or Cluster Admin, for what the account may do in RUAL Studio and through cluster APIs.
Scopes Values in the custom_scopes array that grant access to specific pages and APIs built on the cluster.
User groups Reusable bundles of scopes, assigned through the groups_guid array, that act like role templates.

Mapped to the classic role mental model:

You think of In RUAL that is
Cluster administratorAn account with Cluster Admin (the is_root_user setting). In the Users list they carry an admin badge, and they possess full access to all resources within the cluster.
DeveloperBlueprint permissions: Wildcard Scope to reach what they build, plus Staging Developer or Production Developer depending on how far they may go.
API-only userAn account that never opens RUAL Studio. It authenticates through the login APIs and its scopes decide which pages and APIs it can call.
VisitorNo account at all. They only reach content in the *public scope; anything scoped differently sends them to sign in.

These permissions are the ones you assign most

The full list is in User Access Management.

Permission / setting What it allows Typical holder
Cluster Admin (is_root_user) General all-access, which settings can still limit, with extra security measures against login attacks and password forget requests. Admins can only be appointed by admins. Cluster owners: grant to a select few.
Wildcard Scope The scope *: access to any custom API and custom page created in RUAL. Being a Cluster Admin does not grant it. Developers.
Staging Developer View, modify and simulate blueprints. Their changes can only be saved by developers with save access. Junior developers.
Production Developer Modify and save blueprints, which is what publishes them. Senior developers.
Blueprints: Production Run Use the Run production button in a blueprint, which runs it for real on production data. Without it, pages still run for visitors as usual. Developers debugging live behavior.
Manage user permissions (setting_manage_users) Manage other users: their passwords, their permissions and the allow_login_as_user setting. Without it, you cannot modify accounts with higher permissions. Administrators.
Available for login-as (allow_login_as_user) Allows the account to be signed in as, using the user signin-as function in blueprints. Cannot be enabled for is_root_user accounts. Support impersonation targets, off by default.

Finer-grained blueprint permissions (Blueprints: Access All, Blueprints: Activate blueprints and Blueprints: Remove) let you tune exactly how far each developer may go. Cluster APIs use the same model with scope values such as setting_manage_users and setting_edit_blueprints.

roles user detail
A user detail page with its access scopes, group and permission sections
A user detail page with its access scopes, group and permission sections

Studio access and API access are separate

Access type Used for Authenticated by
RUAL Studio access Building blueprints, managing users and storage through the browser. Username and password authorized for RUAL Studio.
API access Calling cluster APIs from custom frontends, scripts or external services. An access_token obtained through the login APIs.

API tokens are valid for 14 days and extended automatically while actively used. Pass a token as an Authorization: Bearer header, as x-authtoken or x-token, as a cookie named access_token, or in the URL as ?access_token=. See Getting Access for the onboarding flow and Cluster APIs for the authentication reference.

For API access, the custom_scopes array on the user document is decisive: every page and API you build is protected by scopes, and a token only reaches the endpoints its user's scopes cover. An account with the scopes below can call pages and APIs scoped view_customers or create_orders, and nothing else:

User with Custom Scopes
{
  "custom_scopes": [
    "view_customers",
    "create_orders"
  ],
  "username": "jane.doe"
}

User groups are the closest thing to roles

A group is a document in the usergroups database with a name and a scope array. Assign a user to a group by adding the group's guid to the groups_guid array on the user document: from then on, the user receives every scope in that group. A user can belong to multiple groups and receives all unique scopes from all of them, plus any individual scopes in their own custom_scopes.

Model your groups after the kinds of users your cluster serves:

Group Example scopes Purpose
Sales view_customers, create_orders, view_reports Team members who need customer data and order creation.
Customers view_orders, create_tickets End users who sign in to your app and reach its scoped pages and APIs.
Support view_customers, view_tickets, create_notes Staff who help customers without seeing everything.

Visitors need no group: without an account they only see *public content. A user assigned to two groups looks like this:

User with Multiple Groups
{
  "custom_scopes": [],
  "groups_guid": [
    "94ad734891564818888bea7e2519aedd",
    "1c5bfaf8fb034f8498d204c5072b554e"
  ],
  "username": "jane.doe"
}
roles auth groups
User Groups has its own menu item, under Cluster Settings. Authentication Groups, shown here, is a different thing: it sets how a login works, such as 2FA, expiry and inactivity.
User Groups has its own menu item, under Cluster Settings. Authentication Groups, shown here, is a different thing: it sets how a login works, such as 2FA, expiry and inactivity.

Give a team member access in five steps

  1. Open the users list

    Sign in to RUAL Studio with an administrator account and open Users under Cluster Settings in the left-side menu.

  2. Create the user

    Set a username and password, and share the cluster URL and credentials privately.

  3. Assign permissions

    Assign what the work requires. For a developer, start with Staging Developer and add more only when needed.

  4. Add scopes

    Add individual scopes to custom_scopes, or better: assign the user to a group via groups_guid so permissions follow the role, not the person.

  5. Let them sign in

    The user signs in and completes first-time setup, including two-factor authentication when your cluster requires it.

roles users list
The Users list in RUAL Studio, with administrators marked by an admin badge
The Users list in RUAL Studio, with administrators marked by an admin badge

Keep access small and reviewable

  • Least privilege: grant only the scopes and permissions a user needs, preferably through user groups instead of individual scopes.
  • Protect root accounts: is_root_user accounts get extra protection against login attacks and password forget requests. Keep them few, and never enable allow_login_as_user for them (RUAL prevents this).
  • Guard system settings: the Manage system settings permission controls who can view and change system settings; access to secured system settings is logged.
  • Review the audit log: sensitive actions such as removing blueprints and changing permissions are recorded. Review the log regularly.
  • Use two-factor authentication: users manage their active sessions and multi-factor options on the default security page.
Login-As-User with Caution The allow_login_as_user setting lets an administrator sign in as that user from blueprints: powerful for support, easy to abuse. Only users with setting_manage_users can configure it, it cannot be set on is_root_user accounts, and you should enable it only where impersonation is truly needed.

RUAL also blocks mass multi-authentication attempts from the same IP address and repeated unsuccessful attempts against the same account by default.

Next steps

Getting Access Obtain cluster credentials, sign in for the first time and set up API tokens. User Access Management The full permission list, user group examples and account settings reference. Remote Access Control Scope your pages and APIs: public and logged-in scopes, rate limiting and throttling.

Frequently asked

Does RUAL have fixed user roles like admin and editor?

No. RUAL composes access from per-user permission settings, scopes and optional user groups. What people call an administrator, developer, API user or visitor is a combination of those settings, not a fixed role.

What is the difference between RUAL Studio access and API access?

Studio access decides who may open and edit the cluster management interface. API access is granted through scopes on a token and decides which endpoints that token may call. A user can have one without the other.