Roles and Permissions¶
Who is allowed to do what in QueCo: the permission each screen, each button and each device requires, and how to build a role without granting too much.
In this chapter
|
After this chapter you will be able to
|
11.1 How QueCo Decides¶
Three notions, not to be confused¶
| Notion | What it is | Where it is set |
|---|---|---|
| Permission | A single named right, granted or not | Roles and permissions |
| Role | A set of permissions, carried by one or more accounts | Roles and permissions |
| Account property | A flag on the account itself, independent of permissions | Users |
The two account properties that matter are "Kiosk" and "Call screen". They are not permissions, they belong to no role, and they are ticked on the user's own record. This is the most common mistake at roll-out: an account can hold every kiosk permission and still not start, because the box is not ticked.
The OR rule¶
When a screen requires several permissions, one is enough. QueCo never asks for a whole list: holding at least one item suffices. This rule applies to routes, to menu entries and to buttons.
A missing menu is not a fault¶
The sidebar is filtered silently. A user who lacks an entry's permission does not see it, and no message explains why. This is deliberate: a greyed-out menu tells an attacker what exists.
The practical consequence: when a user reports they have "lost a menu", it is almost never a display fault. It is a permission removed from their role.
And if they type the address directly¶
Typing the address of a forbidden page does not open it. The "Access denied" screen appears in place of the page, with the address unchanged, and a button back to the space the account actually holds.
Two exceptions worth knowing:
- A kiosk account with no back-office and no counter access is sent back to the kiosk rather than shown the refusal. A self-service kiosk has nobody there to read an error message.
- The sign-in page and the call screen require no permission.
11.2 The Baseline Every Role Needs¶
Every role, without exception, must carry these two permissions:
| Permission | Technical name | Why it is mandatory |
|---|---|---|
| Read my profile | user_management.read:my.profile |
QueCo reads the account profile on every start: branch, "Kiosk" and "Call screen" properties, display name. Without it, nothing starts |
| Update my profile | user_management.update:my.profile |
Password change, profile picture, preferences |
Add these for any account used by a person:
| Permission | Technical name | Purpose |
|---|---|---|
| Generate an OTP | user_management.generate:otp |
Two-step sign-in |
| Verify an OTP | user_management.verify:otp |
Two-step sign-in |
| Read my devices | user_management.read:my.devices |
Device recognition |
| Register a device | user_management.register:devices |
First sign-in from a workstation |
| NOTE | These six form the baseline. They are not repeated role by role below: take them as granted throughout this chapter. |
11.3 The Six Reference Roles¶
These are templates, not constraints: QueCo imposes no role name, and you may create as many as you need. They are a starting point and cover almost every deployment.
11.3.1 Counter agent¶
The person at the counter, who calls and serves customers.
| Permission | Technical name |
|---|---|
| View the counter panel | system_management.view:guichet_backoffice |
| Read queues | agence_service.read:queues |
| Update queues | agence_service.update:queues |
| Read tickets | agence_service.read:tickets |
| Update tickets | agence_service.update:tickets |
| Read counters | agence_service.read:guichets |
| Read services | agence_service.read:services |
The agent has no back-office access: no view:backoffice. That is
what sends them straight to the counter panel on sign-in.
11.3.2 Branch manager¶
Runs one branch: its counters, its users, its statistics.
| Permission | Technical name |
|---|---|
| View the back office | system_management.view:backoffice |
| Read users | user_management.read:users |
| Create, update, delete users | create:users, update:users, patch:users, delete:users |
| Read a user record | user_management.read:users.profile |
| Read roles | user_management.read:roles |
| Read counters | agence_service.read:guichets |
| Create, update, delete counters | create:guichets, update:guichets, delete:guichets |
| Read services | agence_service.read:services |
| Read operations | agence_service.read:operations |
| Read tickets | agence_service.read:tickets |
| Read their branch's reviews | agence_service.read:avis |
| NOTE | Grant read:avis and not read:avis_all: the first limits the Customer Reviews page to their own branch, the second opens the whole network. See chapter 10. |
11.3.3 Super administrator¶
Runs the whole network: branches, services, roles, branding.
| Permission | Technical name |
|---|---|
| View the back office | system_management.view:backoffice |
| Manage roles | user_management.manage:roles |
| Read roles | user_management.read:roles |
| Create, update, delete roles | create:roles, update:roles, patch:roles, delete:roles |
| Read permissions | user_management.read:permission |
| Create, update, delete permissions | create:permission, update:permission, patch:permission, delete:permission |
| Manage branches | agence_service.manage:agences |
| Read branches | agence_service.read:agences |
| Manage services | agence_service.manage:services |
| Manage operations | agence_service.manage:operations |
| Manage users | user_management.manage:users |
| Manage branding | agence_service.manage:branding |
| Manage display | agence_service.manage:advertising |
| Read network reviews | agence_service.read:avis_all |
| Delete a review | agence_service.delete:avis |
| Manage review criteria | agence_service.manage:avis_criteres |
manage:roles is what reveals the Super Administration section in the
sidebar. Without it, the account stays in the Administration section, even
holding every other permission.
11.3.4 Supervisor, read only¶
For a controller, an auditor, a regional office: sees everything, changes nothing.
| Permission | Technical name |
|---|---|
| View the back office | system_management.view:backoffice |
| Read users | user_management.read:users |
| Read counters | agence_service.read:guichets |
| Read services | agence_service.read:services |
| Read operations | agence_service.read:operations |
| Read tickets | agence_service.read:tickets |
| Read branches | agence_service.read:agences |
| Read reviews | agence_service.read:avis or read:avis_all |
No create, update, patch, delete or manage permission. The action
buttons disappear on their own: there is nothing to switch off by
hand.
11.3.5 Kiosk role¶
The account the touchscreen kiosk runs on. It is never used by a person.
| Permission | Technical name | What it is for |
|---|---|---|
| Read my profile | user_management.read:my.profile |
Identify the kiosk's branch, and read the "Kiosk" property |
| Read services | agence_service.read:services |
Show the service list on the welcome screen |
| Read operations | agence_service.read:operations |
Show each service's operations |
| Create a ticket | agence_service.create:tickets |
Issue the customer's ticket |
And, on the user record, the "Kiosk" property ticked.
| WARNING | Give a kiosk account neither view:backoffice nor view:guichet_backoffice. A self-service device, in a hall open to the public, must offer no path into administration. |
The "Kiosk" property has two distinct effects:
- The kiosk shows its welcome screen. Without it, "Kiosk not available" appears, even with every permission.
- On sign-in, the account is sent straight to the kiosk, and an attempt to open the back office brings it back there.
11.3.6 Front-desk role, for the client scan screen¶
The account for the tablet at the entrance, which shows the ticket QR code (chapter 10).
| Permission | Technical name |
|---|---|
| Read my profile | user_management.read:my.profile |
| Read the portal QR | agence_service.read:portal_qr |
| NOTE | read:portal_qr is the right permission for this screen: it displays a QR, it configures none. Until the platform grants it, agence_service.manage:portal_qr is still accepted. See 11.6.3. |
11.4 Permissions by Screen¶
Reminder: one of the listed permissions is enough.
11.4.1 Entering the application¶
| Screen | Address | Permission required |
|---|---|---|
| Sign-in | / |
None |
| Access denied | /unauthorized |
None |
| Kiosk | /borne |
No route permission, but the "Kiosk" property and the permissions in 11.3.5 |
| Call screen | /ecran |
No route permission (see the warning in 11.6.2) |
| Client scan screen | /scan-client |
read:portal_qr or manage:portal_qr |
11.4.2 Back office¶
Entering the back office requires system_management.view:backoffice.
Without it, none of the pages below is reachable, whatever the other
permissions.
| Page | Address | Permission required |
|---|---|---|
| Dashboard | /backoffice/accueil |
The back-office one only |
| Users | /backoffice/utilisateurs |
user_management.read:users |
| Roles and permissions | /backoffice/roles |
user_management.read:roles |
| Branches | /backoffice/agences |
agence_service.read:agences |
| Branch detail | /backoffice/agences/<id> |
agence_service.read:agences |
| Counters | /backoffice/guichets |
agence_service.read:guichets |
| Services | /backoffice/services |
agence_service.read:services |
| Analytics | /backoffice/analytics |
The back-office one only |
| Broadcast management | /backoffice/diffusion |
agence_service.manage:advertising |
| Network broadcast | /backoffice/screen |
agence_service.manage:advertising |
| Customer reviews | /backoffice/satisfaction |
read:avis or read:avis_all |
| Settings | /backoffice/parametres |
manage:branding, manage:agences or manage:roles |
| Configuration | /backoffice/configuration |
The back-office one only |
11.4.3 Agent space¶
| Page | Address | Permission required |
|---|---|---|
| Counter panel | /guichet |
system_management.view:guichet_backoffice |
| Agent view (Switch) | /switch |
system_management.view:guichet_backoffice |
11.4.4 Sidebar entries¶
A page and its menu entry do not always require the same permission. An account may therefore see a menu and hit a refusal on clicking it, or the other way round. The table below gives the menu rule.
Administration section — visible with read:users or manage:users.
| Entry | Permission |
|---|---|
| Dashboard | user_management.read:users |
| Counters | agence_service.read:guichets |
| Analytics | user_management.read:users |
| Broadcast management | agence_service.manage:advertising |
| Users | user_management.read:users |
| Roles and permissions | user_management.read:roles |
| Configuration | user_management.read:users |
| Customer reviews | read:avis or read:avis_all |
Super Administration section — visible with manage:roles.
| Entry | Permission |
|---|---|
| Overview | user_management.manage:roles |
| Branch | agence_service.manage:agences |
| Analytics | user_management.manage:roles |
| Services | agence_service.manage:services |
| Users | user_management.manage:users |
| Roles and permissions | user_management.manage:roles |
| Screen | user_management.manage:roles |
| Customer reviews | read:avis_all or read:avis |
| Settings | manage:branding, manage:agences or manage:roles |
Figure 11.1 — The sidebar by role |
11.5 Permissions by Action¶
Buttons follow the same rule as menus: without the permission, the button does not exist. It is neither greyed out nor hidden behind a tooltip.
11.5.1 Users page¶
| Element | Permission |
|---|---|
| See the list | user_management.read:users |
| New user button | user_management.create:users |
| Edit button | update:users or patch:users |
| Active / Inactive switch | delete:users and (update:users or patch:users) |
| View record button | user_management.read:users |
| Filter by branch | agence_service.read:agences |
| Filter by role | user_management.read:roles |
| NOTE | The Active / Inactive switch is the only control that requires two permissions at once. Deactivating an account both modifies it and removes its access: both rights are asked for, not either. |
11.5.2 Roles and permissions page¶
| Element | Permission |
|---|---|
| See the list | user_management.read:roles |
| New role button | user_management.create:roles |
| Delete button | user_management.delete:roles |
| Edit a role's permissions | user_management.manage:roles |
| See the permission catalogue | user_management.read:permission |
Without read:permission, the page opens and roles are listed, but the
list of assignable permissions stays empty: there is nothing to tick.
11.5.3 Services and operations page¶
| Element | Permission |
|---|---|
| See the list | agence_service.read:services |
| New service button | manage:services or create:services |
| New operation button | manage:services or create:operations |
| Edit or delete a service | agence_service.manage:services |
| Enable a service in a branch | agence_service.manage:agences |
The last line deserves an explanation. Enabling a service for a given branch is not editing the service: it is deciding that branch's offering. So the right asked for is the one on branches, not the one on services.
11.5.4 Customer reviews page¶
| Element | Permission |
|---|---|
| See the page, own branch | agence_service.read:avis |
| See the whole network and the branch selector | agence_service.read:avis_all |
| Hide a comment, hide a review, bring it back | agence_service.delete:avis |
| Delete permanently | agence_service.delete:avis |
| Manage the form criteria | agence_service.manage:avis_criteres |
11.5.5 Settings page¶
| Element | Permission |
|---|---|
| Open the tab | manage:branding, manage:agences or manage:roles |
| Change colours and logos | The same |
| Reset the branding | The same |
Branding and logos apply to the whole network: there is no per-branch branding. That is why the tab is reserved to super administrator level.
11.5.6 Counter panel¶
| WARNING | The rights in this table are not checked by the interface, unlike those on the pages above. The counter panel buttons always show; it is the server that refuses the call. An agent missing one of these permissions will therefore see a clickable button, followed by an error message at the moment of the action. Grant them all, or the agent will be stuck mid-service, in front of a customer. |
| Element | Permission required by the server |
|---|---|
| Open the panel | system_management.view:guichet_backoffice (checked by the interface) |
| Call next | agence_service.update:queues |
| Finish, Cancel, Downgrade | agence_service.update:tickets |
| Open and close the counter, pause | agence_service.update:guichets |
| Switch service | agence_service.read:services |
| Back to the back office | system_management.view:backoffice (checked by the interface) |
The back-to-back-office button appears only for an account holding both views. That is the case of a branch manager who also works a counter.
Figure 11.2 — The same screen, two roles |
11.6 Device Accounts¶
Three devices in the branch use a QueCo account with nobody behind them. They deserve particular care: they stay signed in permanently, often in a space open to the public.
11.6.1 The touchscreen kiosk¶
See 11.3.5 for the permissions.
Step 1: Create a Kiosk role, with the four listed permissions and nothing else.
Step 2: Create a user, attach it to the branch, give it that role.
Step 3: On the user record, tick Kiosk.
Step 4: Sign the kiosk in with that account. It lands straight on the welcome screen.
| WARNING | One kiosk account per branch. Two branches sharing an account would show the same services, and tickets would land in the wrong queue. |
11.6.2 The call screen¶
The call screen is set by the "Call screen" property on the user record, and by the read permissions on queues and tickets.
| WARNING | The /ecran address checks no permission on the interface side. Whoever knows the address sees the page, and its content then depends on the signed-in account. Do not publish this address outside the branch, and treat the screen as a branch device. |
11.6.3 The client scan tablet¶
See 11.3.6 for the permissions.
Two permissions open this screen, and that is transitional:
| Permission | Status | Use |
|---|---|---|
agence_service.read:portal_qr |
To be granted by the platform | The right one. Displaying a QR is a read |
agence_service.manage:portal_qr |
Existing | Fallback, until the first is granted |
| NOTE | As soon as read:portal_qr is granted, move your front-desk accounts onto it. Remove manage:portal_qr from them only after checking they hold the new one: with neither, the screen closes without a message. |
11.7 Building a Custom Role¶
The method, in four questions¶
Question 1: which space? Back office, counter, or neither.
view:backofficeandview:guichet_backofficedecide, and they also decide the landing screen after sign-in.Question 2: which pages? One
read:permission per page, taken from the table in 11.4.Question 3: which actions? One permission per button, taken from the table in 11.5. Add
create:,update:ordelete:only for the buttons genuinely needed.Question 4: what scope? Own branch or the whole network. That is the
read:avis/read:avis_allpair for reviews, andmanage:rolesfor the Super Administration section.
Three rules the teams that do well stick to¶
Read first, act second. Create the role with read: permissions only,
have it tried out, then add actions one at a time. A role built the other
way round always grants too much.
manage: is not a shortcut. manage:services does not replace
read:services: the Services page needs the read to open. Grant both.
One role per job, not per person. Ten roles named after ten colleagues become unmanageable at the first departure. Name them "Counter agent", "Branch manager", "Supervisor".
What not to do¶
| Avoid | Why |
|---|---|
Granting manage:roles to a branch manager |
It opens the whole Super Administration section, other branches included |
Granting read:avis_all to fix a display issue |
It opens the whole network's reviews. The issue almost always comes from the account's branch attachment |
| Ticking "Kiosk" on a person's account | The account would be sent back to the kiosk on every sign-in |
| Creating an "Everything" role and handing it out widely | The first security audit will flag it, and removing it afterwards blocks people in production |
11.8 Diagnosing a Refusal¶
A user cannot see a menu¶
Step 1: Open Users, find the account, note its role.
Step 2: Open Roles and permissions, open that role.
Step 3: Look up the entry's permission in the table in 11.4.4. It is almost always missing.
Step 4: Add it. Ask the user to sign in again: permissions are read at sign-in.
A user sees the menu but lands on "Access denied"¶
A page and its menu entry do not require the same permission. Compare the table in 11.4.4 with the one in 11.4.2: you will find the gap.
A button does not appear¶
The button is not hidden, it does not exist. Look it up in the table in 11.5 and add the matching permission to the role.
The kiosk shows "Kiosk not available"¶
The "Kiosk" property is not ticked on the user record. It is not a permission: check the record, not the role.
The account lands on "Access denied" after sign-in¶
The account has neither view:backoffice, nor
view:guichet_backoffice, nor the "Kiosk" property. It therefore has no
landing space. Grant it one of the three.
Figure 11.3 — Assigning permissions to a role |
11.9 Full Reference Table¶
Every QueCo permission, by domain. The "Where it applies" column points back into this chapter.
Users¶
| Permission | Technical name | Where it applies |
|---|---|---|
| Manage | user_management.manage:users |
Administration section, super admin Users menu |
| Read | user_management.read:users |
Users page, Dashboard, Analytics, Configuration |
| Create | user_management.create:users |
New user button |
| Update | user_management.update:users |
Edit button |
| Patch | user_management.patch:users |
Edit button |
| Delete | user_management.delete:users |
Active / Inactive switch |
| Read a record | user_management.read:users.profile |
User detail |
Roles and permissions¶
| Permission | Technical name | Where it applies |
|---|---|---|
| Manage roles | user_management.manage:roles |
The whole Super Administration section |
| Read roles | user_management.read:roles |
Roles page, filter by role |
| Create a role | user_management.create:roles |
New role button |
| Update a role | user_management.update:roles |
Role editing |
| Patch a role | user_management.patch:roles |
Role editing |
| Delete a role | user_management.delete:roles |
Delete button |
| Read permissions | user_management.read:permission |
Permission catalogue |
| Create a permission | user_management.create:permission |
Super admin |
| Update a permission | user_management.update:permission |
Super admin |
| Patch a permission | user_management.patch:permission |
Super admin |
| Delete a permission | user_management.delete:permission |
Super admin |
My account¶
| Permission | Technical name | Where it applies |
|---|---|---|
| Read my profile | user_management.read:my.profile |
Mandatory for everyone |
| Update my profile | user_management.update:my.profile |
Mandatory for everyone |
| Read my devices | user_management.read:my.devices |
Sign-in |
| Register a device | user_management.register:devices |
First sign-in |
| Generate an OTP | user_management.generate:otp |
Sign-in |
| Verify an OTP | user_management.verify:otp |
Sign-in |
| Read my sessions | user_management.read:my.sessions |
My sessions |
| Revoke my sessions | user_management.revoke:my.sessions |
Remote sign-out |
| Revoke my devices | user_management.revoke:my.devices |
Removing a device |
Device and session administration¶
| Permission | Technical name | Where it applies |
|---|---|---|
| Read devices | user_management.read:devices |
Administration |
| Update a device | user_management.update:devices |
Administration |
| Revoke a device | user_management.revoke:devices |
Administration |
| Read sessions | user_management.read:sessions |
History |
| Revoke a session | user_management.revoke:sessions |
Security |
Branches¶
| Permission | Technical name | Where it applies |
|---|---|---|
| Manage | agence_service.manage:agences |
Branch menu, Settings, enabling a service in a branch |
| Read | agence_service.read:agences |
Branches page, filter by branch |
| Create | agence_service.create:agences |
New branch button |
| Update | agence_service.update:agences |
Branch editing |
| Delete | agence_service.delete:agences |
Deletion |
Services and operations¶
| Permission | Technical name | Where it applies |
|---|---|---|
| Manage services | agence_service.manage:services |
Services menu, editing, deletion |
| Read services | agence_service.read:services |
Services page, kiosk, service switch at the counter |
| Create a service | agence_service.create:services |
New service button |
| Update a service | agence_service.update:services |
Editing |
| Delete a service | agence_service.delete:services |
Deletion |
| Manage operations | agence_service.manage:operations |
Super admin |
| Read operations | agence_service.read:operations |
Kiosk, service detail |
| Create an operation | agence_service.create:operations |
New operation button |
| Update an operation | agence_service.update:operations |
Editing |
| Delete an operation | agence_service.delete:operations |
Deletion |
Counters, queues and tickets¶
| Permission | Technical name | Where it applies |
|---|---|---|
| Manage counters | agence_service.manage:guichets |
Administration |
| Read counters | agence_service.read:guichets |
Counters page, counter panel |
| Create a counter | agence_service.create:guichets |
New counter button |
| Update a counter | agence_service.update:guichets |
Open, close, pause |
| Delete a counter | agence_service.delete:guichets |
Deletion |
| Read queues | agence_service.read:queues |
Counter panel |
| Update queues | agence_service.update:queues |
Call next |
| Manage queues | agence_service.manage:queues |
Administration |
| Create a ticket | agence_service.create:tickets |
Kiosk |
| Read tickets | agence_service.read:tickets |
Counter panel, Analytics, call screen |
| Update a ticket | agence_service.update:tickets |
Finish, Cancel, Downgrade |
| Delete a ticket | agence_service.delete:tickets |
Administration |
| Manage tickets | agence_service.manage:tickets |
Administration |
Customer reviews¶
| Permission | Technical name | Where it applies |
|---|---|---|
| Read own branch's reviews | agence_service.read:avis |
Customer reviews page |
| Read network reviews | agence_service.read:avis_all |
Customer reviews page, branch selector |
| Delete a review | agence_service.delete:avis |
Moderation |
| Manage criteria | agence_service.manage:avis_criteres |
Client form criteria |
Display, portal and branding¶
| Permission | Technical name | Where it applies |
|---|---|---|
| Manage display | agence_service.manage:advertising |
Broadcast management, Screen |
| Manage branding | agence_service.manage:branding |
Settings |
| Read the portal QR | agence_service.read:portal_qr |
Client scan screen |
| Manage the portal QR | agence_service.manage:portal_qr |
Client scan screen, rotation settings |
Views¶
| Permission | Technical name | Where it applies |
|---|---|---|
| View the back office | system_management.view:backoffice |
The whole back office |
| View the counter panel | system_management.view:guichet_backoffice |
Counter panel and agent view |
Notifications¶
| Permission | Technical name | Where it applies |
|---|---|---|
| Read my notifications | notification_service.read:me_notifications |
Notifications |
| Update my notifications | notification_service.update:me_notifications |
Notifications |
11.10 Summary of Screenshots to Take¶
| Figure | Image file | Content |
|---|---|---|
| 11.1 | image-perm-01.png |
Sidebar, branch manager and super admin side by side |
| 11.2 | image-perm-02.png |
Users page, with actions then read only |
| 11.3 | image-perm-03.png |
Role record, permission catalogue grouped |
The images go in docs/images/, under the names listed. The same ones
serve both languages.


