Simulate Security
Reviews → Simulate Security answers the question the Security Workbench cannot answer at a glance: what would this change do? A JD Edwards EnterpriseOne security grows line by line — on users, on roles, on *PUBLIC, on one object or on *ALL, in the Security Workbench, the menu filtering and the UDO security — and the effect of one more line is hard to read from the lines themselves. The page evaluates them the way JD Edwards does: pick who, try a change, and each tab shows before and after, with the rule that decides.
Nothing is written while changes are tried. Apply… writes them as security lines, through the screens that hold them, once they say what is wanted; Keep as a test case… keeps what they show, as the security is today, among the security test cases.
The page works in two steps: 1 · Who and 2 · The security, in five tabs.
At a glance
1 · Who
A switch at the top of the step chooses between An existing role or user and A new role.
| Choice | What is read |
|---|---|
| A role | The role's own lines, then *PUBLIC. A role that holds other roles is read alone: it gets nothing from them until a merge writes them into its own lines. |
| Several roles | The roles read together, as a merge would join them: each role picked appears as a pill, × takes it back. |
| A user | The user's own lines, then the lines of every role the user holds today, then *PUBLIC — what the user gets when signing on with *ALL, the default sign-on role that combines all the roles assigned to them. |
| A new role | A name typed in the field (ten characters at most): the role does not exist yet and has no line, so only what everybody gets (*PUBLIC) applies. The changes tried say what it should hold; Apply… creates it. |
The field add a role or a user… lists the users and the roles of JD Edwards, and *PUBLIC; its Type column filters one kind or the other. Once someone is picked, only roles are offered.
Under the pills, JD Edwards looks in this order gives the sequence the page reads: the user, its roles from the highest sequence, then *PUBLIC.
The page reads its address: …/app/nomajde/secsim?who=AP_MANAGER,AP_CLERK opens it on those roles. A link of this kind fits in a ticket that asks "what would happen if…?".
2 · The security
The second step shows the security in five tabs. Each tab heading gives its count: the lines that apply for Current; for the four others, how many changes were tried there and how many rows they change (1 tried · 3 of 12 change), or nothing tried. A tab where something changes shows its count in orange.
| Tab | What it holds |
|---|---|
| Current | Every security line that applies today, read only. |
| Applications | A change of the right to run: an application, a form or a report, or a whole module. |
| Menus | A menu or a task shown or hidden (menu filtering). |
| UDOs | A user defined object shown or hidden, or all the UDOs of one kind. |
| Tables | A column (view, add, change) or rows (a range of values) of a table. |
Current
Current lists, read only, every line that applies to who was picked — for a new role, only the *PUBLIC lines:
| Column | Content |
|---|---|
| Where | Menu, Application or UDO. |
| Kind | The kind of security line, as JD Edwards names it. |
| On what | What the line secures: the object, the menu task, the UDO with its kind. |
| What it says | The settings of the line; a box setting is shown as ✓ (allowed) or ✕ (denied). |
| Line of | The user, the role or *PUBLIC the line is written on. |
The grid has the usual search, filters, columns and Export.
Trying a change
The four other tabs work the same way. A row of fields describes the change, every value picked in a list:
- For — who the line would be written on: who was picked, the roles of a user, or
*PUBLIC. A menu change is never written on a user: menu filtering is kept per role. - What the change is about — the fields of the tab, described below.
- Deny / Allow (Hide / Show on the Menus and UDOs tabs), then Try it.
Each change tried appears under the fields, in words — AP_MANAGER: hide Supplier Master — with × to take it back. What it would do shows at once underneath:
- Only what changes keeps the rows whose answer moves;
- How it is decided restates the rule JD Edwards applies for this kind of security;
- the grid gives each row as it would be; a value that moves shows what it was — NO (was yes) — and What changes sums it up, as
run: yes → no.
The changes tried stay on the page while the tabs are visited: Apply… and Keep as a test case… act on all of them.
Applications
Secure chooses between an application, a form or a report and a whole module:
| Field | Content |
|---|---|
| Application, form or report | Picked in the list of the Object Librarian, with its type (APPL, FORMS, UBE) as a filter. The change is on the right to run. |
| Module | A licence component as Nomasx-1 defines it (Settings → Licences), filtered by category: the change is the right to run every application and report of the module. |
The grid lists the objects concerned: Object, Description, System, Type, Run (yes or NO, the line that decides on hover), Decided by — the line that decides, as who on what (AP_MANAGER on P0411, BUYER on *ALL) or no rule — and What changes.
Menus
Task view lists the task views of JD Edwards; the largest is proposed. Menu or task opens Choose a menu or a task: the menus of that view drawn as a tree, folders opened with a click. A search of two characters or more lists the matches — menus, tasks or the application they run — each with the path of folders where it sits; Choose (or a double click) takes the one selected.
The grid lists the menu or task tried and everything under it: Menu / task, Runs (the application it opens), Shown and What changes. A task hidden in one folder that also sits in another, where it stays shown, gets a warning: Supplier Master also sits under Daily Processing, where it stays shown: what is under it is still reached from there.
UDOs
Kind of UDO picks the kind (watchlist, grid format, composite page…); UDO picks one of them, or stays blank for all the UDOs of this kind. The grid gives Type, Name, UDO, Object, Seen, Decided by and What changes.
Tables
Table is picked in the list of tables; Secure chooses between a column and rows (a range of values).
| Change | Fields |
|---|---|
| A column | Column (the data items of the table) and Right: view, add, change, or view, add and change. |
| Rows | Column, From, Thru, and On these rows, may: one box each for view, add, change and delete. |
The grid gives each column of the tables tried: Table, Column, View, Add, Change, Decided by and What changes. Under it, Ranges of values that apply lists the row security of these tables — who, table, column, from, thru, and the four rights — and marks starts to apply for a range tried. Ranges are listed, not evaluated.
How it is decided
Under each tab, How it is decided restates the rule the page applies:
| Tab | Rule |
|---|---|
| Applications | JD Edwards allows what no rule forbids. The user's own rules come first, then the roles' (highest sequence first), then *PUBLIC; at one level the most precise rule wins — a line on the object before a line on *ALL, a line on a form or a version before a line on the whole object. |
| Menus | Menu filtering is kept per role (and for *PUBLIC), never per user. A task is hidden for a role when its line says so — else when *PUBLIC's does; a hidden folder hides what is under it. A user sees a task when at least one of the roles shows it. |
| UDOs | A UDO is seen when the first line found says so: the user's own, then the roles' (highest sequence first), then *PUBLIC's — for each, the line on the UDO before the line on *ALL. No line: not seen. |
| Tables | The first line found decides, from the user to its roles (highest sequence first) to *PUBLIC — for each, the line on the table before the line on *ALL. No line: allowed. Ranges of values are listed, not evaluated. |
A change tried wins over the line already written on the same place.
Apply
Apply…, at the top of the page once a change has been tried, opens Write the changes to JD Edwards with every change tried, whatever the tab. Write them says where:
| Choice | Effect |
|---|---|
| on the role each was tried for | Each line goes to the user, role or *PUBLIC given in its For field. |
| on another role | Every line goes to one existing role, picked in the list. |
| on a new role | Every line goes to a role that does not exist yet: its name is typed, and the role is created first with the Role Management form, which opens filled with that name and the next free sequence. |
For a new role designed from scratch, the dialog says that the role is created with the Role Management form, then the lines are written on it: there is no other choice.
Write prepares the lines and asks for a confirmation that gives how many go to each screen — Security Workbench, Menu Filtering, UDO Security — and warns when they change what everybody gets (*PUBLIC). The lines are then written one by one, through the screens' own forms and checks:
- an application, a form or a report becomes a run line of the Security Workbench; a module only on the objects whose answer changes, so a module already closed by a wider line needs none;
- a column or a range becomes a column or row security line of the Security Workbench;
- a menu becomes a Menu Filtering line, a UDO a UDO Security line;
- a line already written on the same place is updated rather than doubled.
A menu change cannot be written on a user: the dialog says so and writes nothing. When a line fails, the dialog says at which line it stopped and why. Once everything is written, a banner gives how many lines went to whom, and the changes tried are cleared.
Keep as a test case
Keep as a test case…, beside Apply…, keeps what the tabs list — as the security is today, not as it would be with the changes tried — as a case of the tests (Tests → Cases, suite jde-security). It is offered when one role or one user is looked at. A name is typed, and Save writes the case:
- an application listed becomes an expectation on its right to run;
- a menu or a task, a UDO, a table's column (view, add, change) become expectations on what they answer now — 200 menus and 200 UDOs at most;
- a case of the same name is replaced.
The case is then played, compared and scheduled like every other test: see Security test cases. Apply the changes first, then keep the case, to make the new security the expected one.
When security cases kept in Nomajde's own database are not in the tests yet, the dialog offers Bring my n former case(s) into Tests: each comes in under its name, with its expectations. The samples that database held are not brought: the suite has its own.
Access
The page is in the Reviews folder of the Nomajde menu. The predefined roles Security administrator and Administrator hold it (see Predefined roles). Writing through Apply… needs the right to change the Security Maintenance screens, as the Security administrator role gives.
The connection used to read JD Edwards needs read access to the Security Workbench (F00950), the menu filtering (F9006) and the menus (F9000, F9001), the UDO security (F00950W) and catalogue (F9860W), the profiles (F0092), the roles and their sequence (F00926), the role assignments (F95921) and the Object Librarian (F9860). The modules come from the licence settings of Nomasx-1.
Tips & best practices
- Simulate before writing. A role about to be given, a
*PUBLICline about to be closed, a module to take away: each tab shows what moves, row by row, before anything is written. - Design a role from scratch with A new role: try what it should hold, check the answer tab by tab, then Apply… creates it and writes its lines.
- Read Decided by when an answer surprises: the line that decides is named, so the fix goes to the right user, role or
*ALLline. - Check the role sequence when a user holds roles that disagree: the role with the highest sequence is read first.
- Keep the case after applying, then play it after every change: Security test cases.
- Read Security consistency first on a security inherited from years of changes: lines for nobody or that say nothing new make every simulation harder to read.
- To work on one role, one object, one menu or one table directly, use Security Management; a whole module for a role is in Secure a module.