User Profile Comparison
- Target Database: —
- Context Type: —
- Alert Severity: —
- Triggered Time: —
- Firing Context:
— - Contextual SQL:
—
User Profile Comparison Report
Report ID: security-compare-users
Category: Security
User Profile Comparison diffs two PeopleSoft user accounts (PSOPRDEFN) across databases or within the same database across profile attributes, aliases, assigned roles, effective authorizations, email addresses, portal favorites, and system service bindings.
Parameters
| Parameter | Required | Default | Description |
|---|---|---|---|
operID1 | Yes | — | Source User ID (OPRID), trimmed and converted to uppercase. |
target_db | No | Source database | Target database name configured in psLens. |
operID2 | No | Same as operID1 | Target User ID (OPRID), trimmed and converted to uppercase. |
Comparing the same User ID in the same database returns an error. Before expanding roles and permissions, psLens checks PSOPRDEFN in both databases and stops with an error if either user profile does not exist.
Tables Queried
| Table | Purpose |
|---|---|
PSOPRDEFN | Core user profile attributes, lock status, primary/row-security/process-profile permission lists, and existence check (credential columns excluded) |
PSOPRALIAS | User ID alias mappings (Employee, Contact, Customer, Vendor, and related IDs) |
PSROLEUSER | Directly assigned roles and DYNAMIC_SW flags |
PSROLEDEFN | Subquery filter ensuring only defined roles are expanded |
PSROLECLASS | Mapping from assigned roles to effective permission lists |
PSCLASSDEFN | Subquery filter ensuring only defined permission lists are expanded |
PSAUTHITEM | Effective component/page and WEBLIB_% authorizations across all effective permission lists |
PSMENUITEM | Menu and component enrichment joined with PSAUTHITEM |
PSAUTHBUSCOMP | Effective component interface authorizations |
PSAUTHWS | Authorized Integration Broker service operations via assigned roles |
PSAUTHPRCS | Effective process group authorizations |
SCRTY_ACC_GRP | Effective accessible query trees and access groups (ACCESSIBLE = 'Y') |
PSUSEREMAIL | User email entries and PRIMARY_EMAIL indicator |
PSPRUFDEFN | Saved portal favorites |
PSMSGNODEDEFN | Inbound default node user bindings (USERID, credential columns excluded) |
PSOPTIONS | System-wide Signon PeopleCode default user (OPRID) |
Effective permission lists combine every CLASSID granted by PSROLECLASS with the user’s OPRCLASS (Primary Permission List), ROWSECCLASS (Row Security Permission List), and PRCSPRFLCLS (Process Profile Permission List) from PSOPRDEFN.
If any secondary table is not whitelisted in SWS in either database, the report completes with a Partial Data Notice warning listing the unwhitelisted table and database.
Report Output
The generated Markdown document includes these sections when populated:
- Header Link: Direct link back to
/users/comparein psLens with both databases and User IDs preselected. - Summary: Counts for Total Compared Items, Identical / Matching, Differences, Only in Source, and Only in Target, plus any Partial Data Notice.
- Account & Profile Attributes: Side-by-side comparison of 14
PSOPRDEFNattributes (Description, Employee ID, Primary Email, Account Status, Operator Type, Language Code, Currency Code, Symbolic ID, Primary Permission List, Row Security Permission List, Process Profile, Default Nav Homepage, Password Set, and Failed Logins). - User ID Aliases: Alias types and values from
PSOPRALIAS. - Assigned Roles: Role names and
DYNAMIC_SWflags fromPSROLEUSER. - Effective Permission Lists: Effective
CLASSIDlist with the granting role sources. - Effective Components & Pages: Component, menu, page/item, actions, and display-only status.
- Effective Web Libraries:
WEBLIB_%functions and authorized action masks. - Effective Component Interfaces: Component interface and method authorizations.
- Authorized Service Operations: Service operation names and authorized action masks.
- Effective Process Groups: Process groups accessible through the user’s permission lists.
- Effective Query Trees & Access Groups: Accessible query trees and access groups.
- User Emails: Email types, addresses, and primary indicator from
PSUSEREMAIL. - Portal Favorites: Object names and labels from
PSPRUFDEFN. - Special System Usage & Bindings: Whether the account is the Signon PeopleCode default in
PSOPTIONSor the default inbound user on anyPSMSGNODEDEFNnode.
How to Run
- From Reports: Open Reports > Run Report and select User Profile Comparison under Security Audits. Choose the source database, enter
operID1(plus optionaltarget_dbandoperID2), and click Run Now or Schedule. - From Compare Users: Open Security > Compare Users (
/users/compare) to compare interactively and save the run to Report History. See Users.