Role Comparison
- Target Database: —
- Context Type: —
- Alert Severity: —
- Triggered Time: —
- Firing Context:
— - Contextual SQL:
—
Role Comparison Report
Report ID: security-compare-roles
Category: Security
Role Comparison diffs two PeopleSoft roles (PSROLEDEFN) across databases or within the same database across assigned permission lists, user assignments, aggregate component and integration authorizations, and process notification settings.
Parameters
| Parameter | Required | Default | Description |
|---|---|---|---|
roleName1 | Yes | — | Source role name (ROLENAME). Matched with exact case, as role names in PeopleSoft are mixed case. |
target_db | No | Source database | Target database name configured in psLens. |
roleName2 | No | Same as roleName1 | Target role name (ROLENAME). Matched with exact case. |
Comparing the same role name in the same database returns an error. Before fetching assignments and effective permissions, psLens checks PSROLEDEFN in both databases and stops with an error if either role does not exist.
Tables Queried
| Table | Purpose |
|---|---|
PSROLEDEFN | Role description, role type, last updated timestamp/operator, and existence check |
PSROLECLASS | Permission lists (CLASSID) assigned to each role |
PSROLEUSER | Users (ROLEUSER) assigned to each role and DYNAMIC_SW flags |
PSAUTHITEM | Aggregate component/page and WEBLIB_% authorizations across assigned permission lists |
PSMENUITEM | Menu and component enrichment joined with PSAUTHITEM |
PSAUTHWS | Aggregate service operation authorizations across assigned permission lists |
PSAUTHBUSCOMP | Aggregate component interface authorizations across assigned permission lists |
PSAUTHPRCS | Aggregate process group authorizations across assigned permission lists |
SCRTY_ACC_GRP | Aggregate accessible query trees and access groups (ACCESSIBLE = 'Y') |
PRCSDEFNNOTIFY | Process definition notifications configured for the role |
PRCSDEFNCNTDIST | Process definition distribution lists configured for the role |
PRCSJOBNOTIFY | Process job notifications configured for the role |
PRCSJOBCNTDIST | Process job distribution lists configured for the role |
If any secondary authorization or process distribution table is not whitelisted in SWS in either database, the report completes with a Partial Data Notice warning listing the missing table and database.
Report Output
The generated Markdown document contains the following sections when populated:
- Header Link: Direct link back to
/roles/comparein psLens with both databases and role names preselected. - Summary: Counts for Total Compared Items, Identical / Matching, Differences, Only in Source, and Only in Target, plus any Partial Data Notice.
- Role Properties: Side-by-side Description, Role Type, and Last Updated metadata from
PSROLEDEFN. - Assigned Permission Lists: Permission lists linked in
PSROLECLASS. - Users in Role: Assigned user IDs and dynamic assignment flags (
DYNAMIC_SW) fromPSROLEUSER. - Aggregate Components & Pages: Combined component and page authorizations across all permission lists in each role.
- Aggregate Web Libraries: Combined
WEBLIB_%authorizations across all permission lists in each role. - Aggregate Service Operations: Combined service operation authorizations from
PSAUTHWS. - Aggregate Component Interfaces: Combined component interface authorizations from
PSAUTHBUSCOMP. - Aggregate Process Groups: Combined process group access from
PSAUTHPRCS. - Aggregate Query Trees & Access Groups: Combined accessible query access groups from
SCRTY_ACC_GRP. - Process Notifications & Distributions: Role-targeted process and job notifications and distribution lists.
How to Run
- From Reports: Open Reports > Run Report and select Role Comparison under Security Audits. Choose the source database, enter
roleName1using exact PeopleSoft casing (plus optionaltarget_dbandroleName2), and click Run Now or Schedule. - From Compare Roles: Open Security > Compare Roles (
/roles/compare) to compare interactively and save the run to Report History. See Roles.