Skip to main content

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.

JD Edwards roles

This page is about the roles of Liberty Next itself. JD Edwards EnterpriseOne roles and their security are managed in Nomajde.


At a glance​

Access↶ DiscardSave⟳ Reload configUsersAccounts, their roles and attributesRolesWhat each role may open and the data it sees+ Add roleAdd a predefined role… ▾adminFull access (wildcard).Full access3 rule(s)sales_managerSales team5 rule(s)readerRead-only users2 rule(s)sales_manager⧉ DuplicateAccessData scopeROLE NAMEDESCRIPTIONsales_managerOrders and customers: read and change. The rest: read.Baseline⊘ No access✓ Full accessnothing, plus what you allow belowMenusTick a folder or an entry. The role is given what its screens need: their lists, the tabs of their record form and —with “Read and change” — what they save and run. A folder ticked once also covers the screens an upgrade adds to it.– Follows its folderRead✎ Read and change⊘ Hiddencrm· 6 of 7 shownthe whole application–✎⊘▾ Sales–✎⊘Customers3 to read · 4 to changefollows its folder: read and change◉–✎⊘Orders4 to read · 22 to changefollows its folder: read and change◉–✎⊘Sales overview2 to read · 0 to changefollows its folder: read and change◉–✎⊘▾ Settingsfollows its folder: read–✎⊘Sales reps2 to read · 3 to changefollows its folder: read◉–✎⊘Price lists2 to read · 3 to change◌–✎⊘▾ Jobsfollows its folder: read–✎⊘Monthly close0 to read · 1 to changefollows its folder: read◌–✎⊘Beyond the menusai:chat ×AllowDenyConnector (all queries) ▾Pick…AddPredefined rolesshipped by the applicationsRolesdescription, Full access, rule countWhat a tick givescounts; the names on hoverNearest choice decidesa hidden entry in a read folderBeyond the menusquery, endpoint, plugin, AI…Duplicatesame rights, same data scopeWhole applicationwhat every folder followsFour levels per nodefollows · read · change · hiddenA folder in Read and changeits entries follow itRunning a jobneeds Read and change

The Access tab​

Baseline​

ChoiceMeaning
No accessNothing, plus what you allow below.
Full accessEverything, 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:

LevelEffect
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.

TypeGrants
Connector (all queries)Every query of a connector.
QueryOne query — for a screen reached from a button or a link rather than from the menu.
API endpointOne endpoint of an API connector.
DashboardOne dashboard.
Data ExplorerOne explorer model, or every model of an app — see Data Explorer.
nomaflowFollow 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.
JobOne 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 assistantAI 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.
TestsSee 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.

salesAccessData scope · 2Company (CO) = user.companydeny if absentcrmand MCU not in 00099New ruleDictionary itemColumn nameDICTIONARY ITEMCO — Company▾CONNECTORAny connector▾Fixed valuesFrom the user's attributeExclude these values insteadVALUES00001 ×00050 ×A query without this item:is unrestrictedreturns nothing+ AddOne line per rulea role's rules are ANDedItem or columnan item reaches every columnValues or attribute#USER.company# per userTagsabsent mode · connectorItem absentunrestricted, or nothing

A rule​

FieldChoice
Dictionary item or Column nameWhat to restrict. A dictionary item (CO — Company) reaches every column that carries it, in every query; a column name restricts that column only.
ConnectorAny connector, or one connector — the rule then says nothing about the others.
Fixed values or From the user's attributeThe 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 insteadTurns the list into exclusions: SY not in 00. Empty values stay visible.
A query without this itemis 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:

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:

  1. a superuser is always allowed;
  2. a matching deny refuses — a deny in one role wins over an allow in another;
  3. a matching allow grants;
  4. 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;
  5. otherwise, refused.

* matches one segment, or everything when it ends the string (sql:sales:*).


Common pitfalls​

SituationExplanation
A user still sees a menu after its role changedThe session carries the rights: sign out and in, or wait for the renewal (within the hour).
A deny meant for one role blocks anotherDenies apply across all the user's roles. Prefer No access plus allows for narrow roles.
A user opens a screen but cannot save in itThe 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-onlyA 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 menuThe 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 refusedThe page is given, not the functions it calls: add plugin:<module>:* under Beyond the menus.
A query of the role returns nothingA 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 nothingThe user has no value for the attribute — see Users.
Roles cannot be deleted from the editorRemove the role from its users; an unused role grants nothing.