Skip to main content

Users and roles: who can grant what

For: product owners, BAs and business admins. The rule: nobody can give out more than they hold.

Zyrohs lets a shop hand parts of user management to its staff. A store manager can add cashiers, edit them and reset their passwords, without being the owner. This page sets out where that power stops, and why.

You can only give what you hold

Two checks on every change

When someone adds, edits, switches off, deletes or resets a user, or saves a role, Zyrohs asks two questions:

  1. Does your role allow this action? For example, Users › User List › Add to add a user. No → refused.
  2. Are you giving away more than you hold? The role you assign, the user you act on, and the branches you give must all sit inside what your own role has. Anything outside → refused.

The Administrator role (the Is Admin tick on a role) holds everything, so the second question never stops an administrator.


Examples

A Manager role that can see sales and edit stock, but cannot see purchase cost or delete invoices:

The manager tries to… Result Why
add a cashier with the Cashier role (sales only) ✅ allowed Cashier holds less than Manager
give someone the Administrator role ❌ refused Administrator holds everything
give a role that can delete invoices ❌ refused the manager cannot delete invoices, so cannot hand that out
reset a cashier's password ✅ allowed the cashier holds less
reset the owner's password ❌ refused the owner holds more, so a reset would let the manager become the owner
give a user Branch B, while working only at Branch A ❌ refused branches follow the same rule
change their own role or branches ❌ refused another administrator must do it
reset another manager's password ❌ refused see "Owner resets managers" below

The rules

Acting on another user, step by step

  1. Administrators can do anything. Only an administrator can create, change or remove another administrator.

  2. Your own account is a profile. You can edit your name, photo and contact details, and change your password with your current one. You cannot change your own role, switch yourself off, delete yourself or reset your own two-step. Only an administrator can change their own branches.

  3. Branches follow the same rule. You can only give branches you work at, and only act on users whose branches are all yours.

  4. One role per user. Each user holds exactly one role. To change what someone can do, change their role.

  5. Owner resets managers. Only an administrator can reset the password or two-step sign-in of a user whose role needs two-step: anyone who manages users or roles, or reads the activity log. Without this, two managers could take over each other's accounts, password and two-step together. A manager who forgets their password uses Forgot password on the sign-in page, or asks the owner.

  6. Each action has its own right.

    Right Lets you
    Edit change a user's details, role and branches
    Disable switch a user on or off, turn Enable Login on or off, unlock sign-in, sign a user out everywhere
    Delete delete a user
    Reset Password reset a password or two-step

    A role with Edit alone cannot switch people off.

  7. Equal colleagues. Two people with the same rights can edit, switch off and unlock each other, but not reset each other's password or two-step (rule 5). Every such action is in the activity log under the name of the person who did it.


What this protects against

Before (until October 2026) Now
Anyone allowed to edit users could make themselves Administrator Roles are capped at what the giver holds
Any signed-in user could reset anyone's password, the owner's included A reset needs the right, a smaller target, and an administrator for managers
A hidden trick let a manager create an Administrator account Closed on 15 Oct 2026
Editing a switched-off user quietly switched them back on An edit keeps the user on or off as they were
A deleted user could be edited back Deleted users cannot be edited

Decisions

Date Decision Reason
2026-10-06 Nobody grants more than they hold; administrators are exempt Stops account takeover through user and role editing
2026-10-15 Owner resets managers (password and two-step) Closes takeover between equal managers; Forgot password covers the everyday case
2026-10-15 Equal colleagues may still edit, switch off and unlock each other Keeps day-to-day running easy; every action is logged by name
2026-10-15 One role per user The server works out rights from a single role; two roles broke sign-in
2026-10-15 Turning Enable Login on or off needs Disable It does the same job as the on/off switch