Skip to main content

Security simulation

Security Maintenance → Security simulation answers the question the Security Workbench cannot answer at a glance: what would this person be allowed to do? A JD Edwards EnterpriseOne security grows line by line — on users, on roles, on *PUBLIC, on one object or on *ALL — and the result is hard to read from the lines themselves. The page evaluates them the way JD Edwards does and gives, for each application and report, what may be run, added, changed and deleted, with the rule that decides. A what-if tries roles and rules before anyone writes them.

Nothing on the page writes to JD Edwards. The test cases are kept in Nomajde's own database.

The page has four tabs:

TabWhat it is for
SimulateA user, a role or *PUBLIC on a module, a system code or a list of objects; the what-if. This page.
Secure a moduleThe Security Workbench lines that secure a whole module for a role, proposed and never written.
ConsistencyThe Security Workbench read for what does not add up: twelve checks, each finding with what to do.
Test casesExpectations replayed against the security after every change, with five samples to adapt.

At a glance​

Security simulationWhat a user would be allowed, before it is written — and the cases that check it stays so.SimulateA user, a module, a what-ifSecure a moduleA whole module for a roleConsistencyLines that serve nothing or contradictTest casesExpectations replayed against the security · 7USER, ROLE OR *PUBLICJSMITH ▾MODULE▾OR ONE SYSTEM CODE▾OR OBJECTS (COMMA SEPARATED)P4210, P4310, P4106, R42565SimulateWHAT IF… (NOTHING IS WRITTEN)ROLES ADDEDBUYER ×ROLES TAKEN AWAY…Rules triedAdd a rule4OBJECTSJSMITH · 2 roles3CAN RUNbefore: 21CLOSEDbefore: 21CHANGED BY THE WHAT-IFOBJECTDESCRIPTIONTYPERUNADDCHANGEDELETERUN DECIDED BYWHAT CHANGESP4210Sales Order EntryAPPLyesyesyesNOSALESORDER on P4210P4310Purchase OrdersAPPLyesyesyesyesBUYER on *ALLrun: no → yesP4106Advanced PriceAPPLNOyesyesyes*PUBLIC on P4106R42565Invoice PrintUBEyesyesyesyesno ruleSAVE AS A TEST CASEname of the caseSave as a test caseHow it is decided — JD Edwards allows what no rule forbids…Whoa user, a role or *PUBLICWhat-ifroles added / taken away, rulesBefore and afterfigures with the what-ifFour rights per objectrun · add · change · deleteSave as a test caseanswers become expectationsModule, code or objectsone of the threeThe rule that decidesor “no rule”: allowedWhat changesmarked by the what-if

Simulate​

Who​

User, role or *PUBLIC lists the users and the roles of JD Edwards (a role is marked (role)), and *PUBLIC.

ChoiceWhat is evaluated
A userThe user's own lines, then the lines of every role the user holds today — assignments already effective and not expired — then *PUBLIC. This is what the user gets when signing on with *ALL, the default sign-on role that combines all the roles assigned to them.
A roleThe role's own lines, then *PUBLIC.
*PUBLICThe *PUBLIC lines alone: what anybody gets that no other line overrides.

What​

Fill one of three fields; Simulate reads the security for them.

FieldContent
ModuleA licence component as Nomasx-1 defines it (Settings → Licences → JD Edwards → System codes), listed by name with its system codes and the number of applications and reports: every object of those system codes, and the objects reclassified into the module. Without these settings, a line says so and a system code is picked instead.
or one system codeOne system code, with its description and how many applications and reports it holds. Picking a module clears the system code, and the other way round.
or objects (comma separated)Named objects, for example P4210, R42565. When filled, they take precedence over the module and the system code.

Only the interactive applications and the reports of the Object Librarian are listed. Beyond 5,000 objects the list is cut and a banner asks to narrow it.

The answer​

Figures above the list: objects (with who and how many roles were read), can run, closed, and with a what-if changed by the what-if; under can run and closed, before: n gives the figure without the what-if.

ColumnContent
Object, Description, System, TypeThe application (APPL) or report (UBE) and its system code.
Run, Add, Change, Deleteyes or NO for each right. Hovering a value shows the rule that decides that right.
Run decided byThe line that decides the right to run, as who on what — SALESORDER on P4210, BUYER on *ALL — or no rule.
What changesWith a what-if only: the rights that differ, as run: no → yes.

The grid has the usual search, filters, columns and Export.


How it is decided​

Under the list, How it is decided restates the rule the page applies:

  • JD Edwards allows what no rule forbids: an object no line names is allowed (no rule).
  • The user's own lines come first, then the roles', from the highest sequence first, then *PUBLIC. The first level that says something about a right decides it.
  • At one level, the most precise line 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.

What-if​

The What if… (nothing is written) panel tries a change before it is made:

FieldUse
Roles addedRoles the user would hold in addition, picked one at a time; each appears as a chip, × takes it back.
Roles taken awayRoles the user would no longer hold.
Rules triedAdd a rule adds a line: for (user, role or *PUBLIC), object (*ALL when left empty), right (run, add, change, delete, or all four), allow or deny. Remove takes it away.

Simulate then gives the answer as it would be: the figures show before: n, and the What changes column marks each right that moves. Nothing is written to JD Edwards: the roles and the rules tried stay on the page.


Save as a test case​

Under an answer, Save as a test case with a name keeps it as a test case: every object and every right becomes an expectation — four per object. A case of the same name is replaced.

The expectations are taken from the security as it is, not from the what-if: a what-if is a hypothesis, not a fact to keep. Once the change is made in the Security Workbench, simulate again and save.


The page reads its address: …/app/nomajde/secsim?who=JSMITH&sy=42 opens it on user JSMITH and system code 42 and simulates at once; &objects=P4210,P0411 names objects instead of a system code. A link of this kind fits in a ticket or a mail asking "may this person do this?".


Access​

The page is in the Security Maintenance folder of the Nomajde menu. The predefined roles Security administrator and Administrator hold it (see Predefined roles). The connection used to read JD Edwards needs read access to the Security Workbench (F00950), 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; without them, the page works by system code or by objects.


Tips & best practices​

  • Simulate before writing. A role about to be given, a *PUBLIC line about to be closed: the what-if shows what moves, object by object, before the Security Workbench is touched.
  • Read Run decided by when an answer surprises: the line that decides is named, so the fix goes to the right user, role or *ALL line.
  • Check the role sequence when a user holds roles that disagree: the role with the highest sequence is read first.
  • Save the answer as a test case once the security is right, and replay it after every change: Test cases.
  • Run Consistency first on a security inherited from years of changes: lines for nobody or that say nothing new make every simulation harder to read.