Roles and permissions
A role answers two questions: what its holders may open (menus, queries, dashboards, the assistant) and which rows they see. Users receive roles; a user with several roles gets the sum of them. A role is mostly a few ticks on the application's menu — a folder in read, another in read and change —, and the applications ship ready-made ones.
Roles are edited in Liberty Next → Administer → Access → Roles. The role list is on the left, under Add role and Add a predefined role…; the selected role opens in a panel with two tabs: Access and Data scope.
This page is about the roles of Liberty Next itself. JD Edwards EnterpriseOne roles and their security are managed in Nomajde.
At a glance
The Access tab
Baseline
| Choice | Meaning |
|---|---|
| No access | Nothing, plus what you allow below. |
| Full access | Everything, minus what you deny below. The role card shows a Full access tag. |
The menu tree
The Menus block shows the sidebar of every application, one block per application (crm · 6 of 7 shown). A role says, per menu folder or entry, how far its holders go; the server works out what the screens under it need. Each folder and each entry has a four-level control:
| Level | Effect |
|---|---|
| Follows its folder (–) | The node takes the choice of its folder, else of its application, else the baseline. The row says follows its folder: read / read and change / hidden / no access. |
| Read (book) | The screens under the node open, with what they read: their read query, the lists behind their dropdowns, the tabs of their record form, their dashboards' queries. |
| Read and change (pencil) | Read, plus what writes or acts: the screen's update / insert / delete, the queries and endpoints marked as changing data that its actions run, the functions they call — and running a job. |
| Hidden (⊘) | The node and everything under it are taken away, even from a role with full access. |
That is all the role stores: the node in read, or in read and change — so a role is a few lines whatever the size of the application, and it follows its folder: a screen an upgrade adds to a folder the role allows is covered without touching the role.
The whole application. Above its menu, each application block has its own choice — nothing, Read, Read and change or Hidden — that every folder follows unless it says otherwise: the application in read, this folder in read and change is two ticks.
What a tick gives. Each entry says, in grey, what its screens need at each level — 4 to read · 22 to change —, and hovering the figures lists the names. An entry that opens a page shows page: a page of the framework asks its own permission — the Explorer on a model explorer:<app>:<model>, the jobs' pages nomaflow:view, the tests' pages tests:view —, and a page an application ships asks page:<app>:<page>: allowing the entry grants it.
The eye on each entry previews the result: green, the entry appears in the holder's sidebar; crossed out, it does not.
How the choices combine:
- The nearest choice decides. An entry set to Read inside a folder in Read and change stays read-only; a Hidden entry is taken out of an allowed folder.
- A deny by name wins over everything: a rule Deny on a query under Beyond the menus refuses that query whatever the menus give.
- Following a row click to another screen gives that screen in read only: changing it needs its own entry in Read and change.
- Running a job is part of Read and change: reading never starts anything. A job entry is shown to who may run it.
Typical roles:
- Everything except the Security folder: Full access, then Hidden on the Security folder.
- Only the Reports folder: No access, then Read on the Reports folder.
- Orders and customers in change, the rest in read: Read on the whole application, Read and change on the Sales folder.
A role written with one permission per entry and per query — by hand, with the CLI — is read as the same choices; saved from the editor, it is written in the short form.
Beyond the menus
Some rights are not tied to a menu entry. The Beyond the menus block adds them as green (allow) or red (deny) chips: pick Allow or Deny, the type, the item, then Add.
| Type | Grants |
|---|---|
| Connector (all queries) | Every query of a connector. |
| Query | One query — for a screen reached from a button or a link rather than from the menu. |
| API endpoint | One endpoint of an API connector. |
| Dashboard | One dashboard. |
| Data Explorer | One explorer model, or every model of an app — see Data Explorer. |
| nomaflow | Follow the jobs (nomaflow:view) — the Jobs, Schedule and Job Runs pages, the runs and their logs; Create and edit jobs (nomaflow:edit) — create, change, pause and resume jobs; it runs SQL and Python without row scope. See Nomaflow administration. |
| Job | One Nomaflow job, or Every job (run) (job:*), for a job no menu entry in Read and change covers: its menu item and its page — files, parameters, run, cancel, logs of every run. See Run a job from an application's menu. |
| AI assistant | AI assistant (ai:chat): the assistant's drawer. AI tools from an external client (MCP) — create a personal access token (mcp:use): see Connect Claude (MCP). AI assistant — add, change or delete a record through its screen, run one of its actions, run a job (with the screen's or the job's own permissions) (ai:write): see Write through a screen. What the assistant then reaches depends on the role's other rules — see AI assistant. |
| Tests | See the test suites and their results (tests:view), Play the tests (and see them) (tests:run), Write the tests: suites, cases, steps (and play them) (tests:edit) — each includes the one before. See Tests. |
| Pattern (expert) | A permission written by hand, such as sql:sales:report_*. |
A page an application ships gives the page, not the functions it calls: to let a role use them, add a Pattern (expert) rule plugin:<module>:* here.
Save and Discard, in the page header as in every editor, write the role or drop its changes; unsaved changes shows beside them while the role holds edits. Opening another role, adding one or switching to Users with changes not saved asks first: This role holds changes that are not saved. Leave it and lose them? The role name cannot be changed after creation.
Predefined roles
The applications ship ready-made roles — Nomasx-1 an Auditor, a Security officer, a Licence manager, an Administrator; Nomajde a Master data steward, a Security administrator, a Developer, a Platform operator, an Administrator. Add a predefined role…, under Add role, lists them by application; picking one opens it as a new role, its name, description and rights filled in, ready to Save. Once saved it is a role like any other, to change as needed. One already added shows — already added and opens as it is. The list follows the applications installed: an install or an upgrade brings their new predefined roles.
A predefined role names menu folders in Read or in Read and change, plus the few rules beyond the menus it needs; it follows its folders when a version adds screens to them. It never takes anything away: a person may hold several roles — a security officer who is also the licence manager — and their rights add up.
Duplicate a role
Duplicate, at the top of an open role, opens a new role with the same rights and the same data scope, titled Copy of …, its role name left to fill in. The button stays inactive while the role has unsaved changes.
Data scope — which rows
The Data scope tab restricts the rows a role sees, on every screen, export, dashboard, report and assistant answer that reads a SQL connector. A role without any rule sees every row.
A rule
| Field | Choice |
|---|---|
| Dictionary item or Column name | What to restrict. A dictionary item (CO — Company) reaches every column that carries it, in every query; a column name restricts that column only. |
| Connector | Any connector, or one connector — the rule then says nothing about the others. |
| Fixed values or From the user's attribute | The allowed values, picked from the item's list when it has one; or a user attribute (company), so that one role serves every company — each user carries their own value (see Users). |
| Exclude these values instead | Turns the list into exclusions: SY not in 00. Empty values stay visible. |
| A query without this item | is unrestricted: a query that has no such column is not limited by this rule. returns nothing: such a query returns no row for this role (tag deny if absent). |
Each rule appears as one line: Company (CO) in 00001, 00050, SY not in 00, Company (CO) = user.company. Clicking a line loads it in the form; the bin removes it. Rules are saved with the role.
How rules combine
- Within a role, rules add up: company in 00001 and SY not in 00.
- Across a user's roles, the most open role wins: a user holding subsidiary and group sees what group sees.
- A role without rules removes every restriction for its holders.
- Superusers are never restricted.
Where it applies
- Reads: every query of a SQL connector is filtered on the server, whatever calls it — screens, exports, dashboards, reports, the assistant.
- Writes: creating, changing or deleting a row outside the scope is refused (403).
- Not filtered: API connectors and Nomaflow jobs, which run without a user.
Finding the column of an item
A query column carries a dictionary item when the screen says so, when it has the item's name, or — on a connector with a Dd Prefix (JD Edwards: 2) — when its name without the table prefix is the item: ABCO, MCCO and SDCO all carry CO. A join of two tables restricts both columns. On a pool that trims fixed-length text (JD Edwards), values are compared trimmed.
When a change takes effect
The scope is computed at sign-in and travels with the session. A change of role or of user attribute applies when the session is renewed — within the hour, or at once after signing out and in. The Profile window shows a user their attributes and their data scope in words.
Without the editor
The same rules can be set with liberty-admin set-scope and set-attributes (CLI), or in auth.toml:
[roles.subsidiary]
permissions = ["menu:sales:*", "sql:sales:*"]
scope = [
{ dd = "CO", source = "#USER.company#", mode = "deny" },
{ dd = "SY", values = ["00"], exclude = true },
]
How permissions are checked
Every permission is a colon-separated string — menu:sales:orders, sql:sales:orders_get, dashboard:sales_overview, ai:chat — and the editor writes them for you. A menu choice is stored as menu:<app>:<id> (read) and edit:<app>:<id> (read and change), on the folder or entry ticked; menu:<app>:* and edit:<app>:* are the whole application. For a request, Liberty Next takes all the permissions of all the user's roles, then:
- a superuser is always allowed;
- a matching deny refuses — a deny in one role wins over an allow in another;
- a matching allow grants;
- otherwise, a menu choice grants it when the permission is one the screens under an allowed folder or entry need — at the level chosen on the nearest node that has a choice; a choice on the whole application counts only when no node on the way has one;
- otherwise, refused.
* matches one segment, or everything when it ends the string (sql:sales:*).
Common pitfalls
| Situation | Explanation |
|---|---|
| A user still sees a menu after its role changed | The session carries the rights: sign out and in, or wait for the renewal (within the hour). |
| A deny meant for one role blocks another | Denies apply across all the user's roles. Prefer No access plus allows for narrow roles. |
| A user opens a screen but cannot save in it | The screen's entry or folder is in Read: set it, or its folder, to Read and change. |
| A screen reached by a row click is read-only | A row click gives the next screen in read only. Set that screen's own entry to Read and change. |
| A job entry is missing from a user's menu | The entry is in Read: running a job needs Read and change on the entry or its folder, or a Job rule under Beyond the menus. |
| A page of an application opens but its actions are refused | The page is given, not the functions it calls: add plugin:<module>:* under Beyond the menus. |
| A query of the role returns nothing | A rule in returns nothing mode, and the query has no column carrying the item. Use is unrestricted or add the column. |
| A user with an attribute rule sees nothing | The user has no value for the attribute — see Users. |
| Roles cannot be deleted from the editor | Remove the role from its users; an unused role grants nothing. |