User ID Specific Queries
PT_SEC_USER_APPDES_ACCESS
|
User ID App. Des. Access
|
PT_SEC_USER_CREF
|
User ID CRef Access
|
PT_SEC_USER_CREF_MENU_CMP_MKT
|
User CRef Menu Cmp Mkt Access
|
PT_SEC_USER_CREF_PORTAL
|
User ID CRef Portal Access
|
PT_SEC_USER_CRF_PRT_MN_CMP_MKT
|
User Crf Prt Mn Cmp Mkt Access
|
PT_SEC_USER_PAGE
|
User ID page access
|
PT_SEC_USER_PERM_LIST
|
Users and Permission Lists
|
PT_SEC_USER_PTACCESS
|
User ID PeopleTools Access
|
PT_SEC_USER_ROLES
|
User's Roles
|
PT_SEC_USER_ROLE_PLIST_PAGE
|
User ID, Role, P List, Pgs
|
PT_SEC_USER_SIGNON_TIME
|
User ID Signon Times
|
PT_SEC_USER_WS_OP
|
User ID-Web Service Operation
|
Roles
PT_SEC_ROLE_ALIASES
|
Role Aliases
|
PT_SEC_ROLE_CLASS
|
Classes assigned to role.
|
PT_SEC_ROLE_CREF
|
Role Content Reference Access
|
PT_SEC_ROLE_CREF_MENU_CMP_MKT
|
Role CRef Menu Cmp Mkt Access
|
PT_SEC_ROLE_CREF_PORTAL
|
Role CRef Portal Access
|
PT_SEC_ROLE_CRF_PRT_MN_CMP_MKT
|
Role Crf Prt Mn Cmp Mkt
Access
|
PT_SEC_ROLE_PAGES
|
Pages that a Role has Access
|
PT_SEC_ROLE_SIGNONTIME
|
Role Signon Times
|
PT_SEC_ROLE_USERS
|
Users assigned to Role
|
PT_SEC_ROLE_WS_OP
|
Role - Web Service Operations
|
Permission Lists
PT_SEC_PLIST_ALIASES
|
Permission List Aliases
|
PT_SEC_PLIST_APPDES_ACCESS
|
Perm List's App Designer
Acces
|
PT_SEC_PLIST_CREF
|
Permission List CRef Access
|
PT_SEC_PLIST_CREF_MENU_CMP_MKT
|
PList CRef Menu Cmp Mkt
Access
|
PT_SEC_PLIST_CREF_PORTAL
|
PList CRef Portal Access
|
PT_SEC_PLIST_CR_PRT_MN_CMP_MKT
|
PList CR Prt Mn Cmp Mkt
Access
|
PT_SEC_PLIST_PAGES
|
Pages the Perm List can
Access
|
PT_SEC_PLIST_PTACCESS
|
Perm List's PeopleTools
Access
|
PT_SEC_PLIST_ROLES
|
Roles assigned to Perm List
|
PT_SEC_PLIST_SIGNON_TIME
|
Perm List Signon Times
|
PT_SEC_PLIST_USERS
|
Users assigned to Perm List
|
PT_SEC_PLIST_WS_OP
|
Web Service in Permission
List
|
More Queries
PT_SEC_ACCESSLOG_DAY
|
Access activity by day
|
PT_SEC_ACCESSLOG_USER
|
User ID's Access Activity
|
PT_SEC_APPDES_OBJECTS
|
PLists with the App Des
object
|
PT_SEC_APPDES_OBJECTS_USERS
|
Users with the App Des object
|
PT_SEC_CURUSER_LIST
|
List of Active Users
|
PT_SEC_MENU_PLIST
|
Perm Lists with this Menu
|
PT_SEC_MENU_USERS
|
User IDs with access to menu
|
PT_SEC_PAGES_PLIST
|
Perm Lists with access to
page
|
PT_SEC_PTLS_PLIST
|
Perm Lists with the PT Tool
|
PT_SEC_PTLS_USERS
|
Users with the PT Tool
|
PT_SEC_REN_PLIST
|
REN Security by Perm List
|
PT_SEC_REN_USER
|
User REN Access
|
PeopleSoft Component Access
The following SQL returns a list of PeopleSoft users with access to a specific Component (as defined in Application Designer), along with the maximum level of access they possess.
Input Parameters:
PNLGRPNAME:
Name of Component being researched. To determine the name of a Component while logged into PeopleSoft, use the -J command
SELECT E.PNLGRPNAME "Component Name",
A.OPRID "OprId",
A.OPRDEFNDESC "Name",
F.DEPTNAME "HR Department",
F.WORK_PHONE "Work Phone",
DECODE(MAX(D.DISPLAYONLY),0,'N',
'Y') "Display Only",
CASE
WHEN BITAND(MAX(D.AUTHORIZEDACTIONS),1) > 0 THEN 'Y'
ELSE 'N'
END "Add",
CASE
WHEN BITAND(MAX(D.AUTHORIZEDACTIONS),2) > 0 THEN 'Y'
ELSE 'N'
END "Update",
CASE
WHEN BITAND(MAX(D.AUTHORIZEDACTIONS),4) > 0 THEN 'Y'
ELSE 'N'
END "Update All",
CASE
WHEN BITAND(MAX(D.AUTHORIZEDACTIONS),8) > 0 THEN 'Y'
ELSE 'N'
END "Correction",
CASE
WHEN MAX(D.AUTHORIZEDACTIONS) > 15 THEN 'Y'
ELSE 'N'
END "Special"
FROM PSOPRDEFN A,
PSROLEUSER B,
PSROLECLASS C,
PSAUTHITEM D,
PSMENUITEM E,
PS_EMPLOYEES
F
WHERE A.OPRID = B.ROLEUSER
AND B.ROLENAME = C.ROLENAME
AND C.CLASSID = D.CLASSID
AND D.MENUNAME = E.MENUNAME
AND D.BARNAME = E.BARNAME
AND D.BARITEMNAME = E.ITEMNAME
AND A.EMPLID = F.EMPLID
AND E.PNLGRPNAME = :PNLGRPNAME
AND F.EMPL_STATUS = 'A'
GROUP BY E.PNLGRPNAME,A.OPRID,A.OPRDEFNDESC,F.DEPTNAME,
F.CIS_FIN_DEPT_DESCR,F.WORK_PHONE
ORDER BY A.OPRID;
Component Interface Access
The following SQL statement identifies who has full access to Component Interfaces, and the Permission Lists/Roles to which they are tied:
SELECT A.ROLEUSER,
A.ROLENAME,
B.CLASSID,
C.CLASSDEFNDESC,
D.BCNAME
FROM SYSADM.PSROLEUSER A,
SYSADM.PSROLECLASS B,
SYSADM.PSCLASSDEFN C,
SYSADM.PSAUTHBUSCOMP D
WHERE B.ROLENAME = A.ROLENAME
AND C.CLASSID = B.CLASSID
AND D.CLASSID = C.CLASSID
AND D.BCMETHOD = 'Create'
AND D.AUTHORIZEDACTIONS = 4;
PT_SEC_PLIST_USERS
-- Users assigned to Perm List
Row
User ID
PT_SEC_PLIST_ROLES
-- Roles assigned to Perm List
Row
Role Name
SELECT
C.ROLEUSER
FROM PSCLASSDEFN A, PSROLECLASS B, PSROLEUSER C
WHERE ( A.CLASSID = B.CLASSID
AND B.ROLENAME =
C.ROLENAME
AND A.CLASSID = :1)
SELECT
B.ROLENAME
FROM PSCLASSDEFN A, PSROLECLASS B
WHERE ( A.CLASSID = B.CLASSID
AND A.CLASSID = :1)
SELECT C.ROLEUSER,B.ROLENAME,A.CLASSID
FROM PSCLASSDEFN A,
PSROLECLASS B, PSROLEUSER C
WHERE ( A.CLASSID =
B.CLASSID
AND B.ROLENAME =
C.ROLENAME
AND A.CLASSID =
:1)
PT_SEC_ROLE_CRF_PRT_MN_CMP_MKT
-- Role Crf Prt Mn Cmp Mkt Access
Row
Portal Name
Content
Reference Label
Content
Reference Name
Menu
Component
Market
PT_SEC_PLIST_CR_PRT_MN_CMP_MKT
-- PList CR Prt Mn Cmp Mkt Access
Row
Portal Name
Content
Reference Label
Content
Reference Name
Menu
Component
Market
SELECT A.PORTAL_NAME,
A.PORTAL_LABEL, A.PORTAL_OBJNAME, A.PORTAL_URI_SEG1, A.PORTAL_URI_SEG2,
A.PORTAL_URI_SEG3
FROM PSPRSMDEFN A, PSPRSMPERM B, PSROLECLASS C
WHERE ( A.PORTAL_REFTYPE = 'C'
AND
A.PORTAL_CREF_USGT = 'TARG'
AND A.PORTAL_NAME =
B.PORTAL_NAME
AND A.PORTAL_REFTYPE
= B.PORTAL_REFTYPE
AND A.PORTAL_OBJNAME
= B.PORTAL_OBJNAME
AND C.CLASSID =
B.PORTAL_PERMNAME
AND A.PORTAL_URI_SEG1
<> ' '
AND A.PORTAL_URI_SEG2
<> ' '
AND A.PORTAL_URI_SEG3
<> ' '
AND C.ROLENAME = :1)
ORDER BY 1, 2
SELECT A.PORTAL_NAME,
A.PORTAL_LABEL, A.PORTAL_OBJNAME, A.PORTAL_URI_SEG1, A.PORTAL_URI_SEG2,
A.PORTAL_URI_SEG3
FROM PSPRSMDEFN A, PSPRSMPERM B, PSCLASSDEFN C
WHERE ( A.PORTAL_REFTYPE = 'C'
AND
A.PORTAL_CREF_USGT = 'TARG'
AND A.PORTAL_NAME =
B.PORTAL_NAME
AND A.PORTAL_REFTYPE
= B.PORTAL_REFTYPE
AND A.PORTAL_OBJNAME
= B.PORTAL_OBJNAME
AND C.CLASSID =
B.PORTAL_PERMNAME
AND A.PORTAL_URI_SEG1
<> ' '
AND A.PORTAL_URI_SEG2
<> ' '
AND A.PORTAL_URI_SEG3
<> ' '
AND C.CLASSID = :1)
ORDER BY 1, 2
SELECT A.PORTAL_NAME,
A.PORTAL_LABEL, A.PORTAL_OBJNAME, A.PORTAL_URI_SEG1, A.PORTAL_URI_SEG2 Component,
A.PORTAL_URI_SEG3
FROM PSPRSMDEFN A, PSPRSMPERM B, PSROLECLASS C
WHERE ( A.PORTAL_REFTYPE = 'C'
AND A.PORTAL_CREF_USGT
= 'TARG'
AND A.PORTAL_NAME =
B.PORTAL_NAME
AND A.PORTAL_REFTYPE =
B.PORTAL_REFTYPE
AND A.PORTAL_OBJNAME =
B.PORTAL_OBJNAME
AND C.CLASSID =
B.PORTAL_PERMNAME
AND A.PORTAL_URI_SEG1
<> ' '
AND A.PORTAL_URI_SEG2
<> ' ' -- Component
AND A.PORTAL_URI_SEG3
<> ' '
AND C.ROLENAME = :1)
ORDER BY 1, 2
PT_SEC_ROLE_CREF_MENU_CMP_MKT
-- Role CRef Menu Cmp Mkt Access
Row
Content
Reference Label
Content
Reference Name
Menu
Component
Market
PT_SEC_PLIST_CREF_MENU_CMP_MKT
-- PList CRef Menu Cmp Mkt Access
Row
Content
Reference Label
Content
Reference Name
Menu
Component
Market
SELECT
A.PORTAL_LABEL, A.PORTAL_OBJNAME, A.PORTAL_URI_SEG1, A.PORTAL_URI_SEG2,
A.PORTAL_URI_SEG3
FROM PSPRSMDEFN A, PSPRSMPERM B,
PSROLECLASS C
WHERE ( A.PORTAL_REFTYPE = 'C'
AND
A.PORTAL_CREF_USGT = 'TARG'
AND A.PORTAL_NAME =
B.PORTAL_NAME
AND A.PORTAL_REFTYPE
= B.PORTAL_REFTYPE
AND A.PORTAL_OBJNAME
= B.PORTAL_OBJNAME
AND C.CLASSID =
B.PORTAL_PERMNAME
AND A.PORTAL_URI_SEG1
<> ' '
AND A.PORTAL_URI_SEG2
<> ' '
AND A.PORTAL_URI_SEG3
<> ' '
AND C.ROLENAME = :1
AND A.PORTAL_NAME = :2)
ORDER BY 1
SELECT
A.PORTAL_LABEL, A.PORTAL_OBJNAME, A.PORTAL_URI_SEG1, A.PORTAL_URI_SEG2,
A.PORTAL_URI_SEG3
FROM PSPRSMDEFN A, PSPRSMPERM B, PSCLASSDEFN
C
WHERE ( A.PORTAL_REFTYPE = 'C'
AND A.PORTAL_CREF_USGT =
'TARG'
AND A.PORTAL_NAME =
B.PORTAL_NAME
AND A.PORTAL_REFTYPE =
B.PORTAL_REFTYPE
AND A.PORTAL_OBJNAME =
B.PORTAL_OBJNAME
AND C.CLASSID =
B.PORTAL_PERMNAME
AND A.PORTAL_URI_SEG1
<> ' '
AND A.PORTAL_URI_SEG2
<> ' '
AND A.PORTAL_URI_SEG3
<> ' '
AND C.CLASSID = :1
AND A.PORTAL_NAME = :2)
ORDER BY 1
PT_SEC_ROLE_CREF
-- Role Content Reference Access
Row
Content
Reference Label
Content
Reference Name
SELECT
A.PORTAL_LABEL, A.PORTAL_OBJNAME
FROM PSPRSMDEFN A, PSPRSMPERM B,
PSROLECLASS C
WHERE ( A.PORTAL_REFTYPE = 'C'
AND A.PORTAL_CREF_USGT
= 'TARG'
AND A.PORTAL_NAME =
B.PORTAL_NAME
AND
A.PORTAL_REFTYPE = B.PORTAL_REFTYPE
AND
A.PORTAL_OBJNAME = B.PORTAL_OBJNAME
AND C.CLASSID =
B.PORTAL_PERMNAME
AND
A.PORTAL_URI_SEG1 <> ' '
AND
A.PORTAL_URI_SEG2 <> ' '
AND
A.PORTAL_URI_SEG3 <> ' '
AND C.ROLENAME = :1
AND A.PORTAL_NAME =
:2)
ORDER BY 1
PT_SEC_PLIST_CREF
-- Permission List CRef Access
Row
Content
Reference Label
Content
Reference Name
SELECT
A.PORTAL_LABEL, A.PORTAL_OBJNAME
FROM PSPRSMDEFN A, PSPRSMPERM B,
PSCLASSDEFN C
WHERE ( A.PORTAL_REFTYPE = 'C'
AND
A.PORTAL_CREF_USGT = 'TARG'
AND A.PORTAL_NAME =
B.PORTAL_NAME
AND
A.PORTAL_REFTYPE = B.PORTAL_REFTYPE
AND
A.PORTAL_OBJNAME = B.PORTAL_OBJNAME
AND C.CLASSID =
B.PORTAL_PERMNAME
AND
A.PORTAL_URI_SEG1 <> ' '
AND
A.PORTAL_URI_SEG2 <> ' '
AND
A.PORTAL_URI_SEG3 <> ' '
AND C.CLASSID = :1
AND A.PORTAL_NAME = :2)
ORDER BY 1
PT_SEC_ROLE_CREF_PORTAL
-- Role CRef Portal Access
Row
Portal Name
Content
Reference Label
Content
Reference Name
PT_SEC_PLIST_CREF_PORTAL
-- PList CRef Portal Access
Row
Portal Name
Content
Reference Label
Content
Reference Name
SELECT
A.PORTAL_NAME, A.PORTAL_LABEL,
A.PORTAL_OBJNAME
FROM PSPRSMDEFN A, PSPRSMPERM B, PSROLECLASS
C
WHERE ( A.PORTAL_REFTYPE = 'C'
AND A.PORTAL_CREF_USGT =
'TARG'
AND A.PORTAL_NAME =
B.PORTAL_NAME
AND A.PORTAL_REFTYPE =
B.PORTAL_REFTYPE
AND A.PORTAL_OBJNAME =
B.PORTAL_OBJNAME
AND C.CLASSID =
B.PORTAL_PERMNAME
AND A.PORTAL_URI_SEG1
<> ' '
AND A.PORTAL_URI_SEG2
<> ' '
AND A.PORTAL_URI_SEG3
<> ' '
AND C.ROLENAME = :1)
ORDER BY 1, 2
SELECT A.PORTAL_NAME,
A.PORTAL_LABEL, A.PORTAL_OBJNAME
FROM PSPRSMDEFN A, PSPRSMPERM B,
PSCLASSDEFN C
WHERE ( A.PORTAL_REFTYPE = 'C'
AND
A.PORTAL_CREF_USGT = 'TARG'
AND A.PORTAL_NAME =
B.PORTAL_NAME
AND A.PORTAL_REFTYPE
= B.PORTAL_REFTYPE
AND A.PORTAL_OBJNAME
= B.PORTAL_OBJNAME
AND C.CLASSID =
B.PORTAL_PERMNAME
AND A.PORTAL_URI_SEG1
<> ' '
AND A.PORTAL_URI_SEG2
<> ' '
AND A.PORTAL_URI_SEG3
<> ' '
AND C.CLASSID = :1)
ORDER BY 1, 2
PT_SEC_PLIST_PAGES
-- Pages the Perm List can Access
Row
Menu Name
Bar Name
Bar Item
Panel Item
Authorized
Actions
Display
PT_SEC_PLIST_SIGNON_TIME
-- Perm List Signon Times
Row Descr Start Time End
Time
PT_SEC_PLIST_APPDES_ACCESS
-- Perm List's App Designer Acces
Row
Definition
Type
Access Perm.
PT_SEC_PLIST_PTACCESS
-- Perm List's PeopleTools Access
Row
Menu Name
PT_SEC_PLIST_WS_OP
-- Web Service in Permission List
Row
Service
Operation
|
|
||||||||
SELECT
C.ROLEUSER |
SELECT
B.ROLENAME |
SELECT C.ROLEUSER,B.ROLENAME,A.CLASSID
FROM PSCLASSDEFN A,
PSROLECLASS B, PSROLEUSER C
WHERE ( A.CLASSID =
B.CLASSID
AND B.ROLENAME =
C.ROLENAME
AND A.CLASSID =
:1)
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
SELECT A.PORTAL_NAME,
A.PORTAL_LABEL, A.PORTAL_OBJNAME, A.PORTAL_URI_SEG1, A.PORTAL_URI_SEG2,
A.PORTAL_URI_SEG3 |
SELECT A.PORTAL_NAME,
A.PORTAL_LABEL, A.PORTAL_OBJNAME, A.PORTAL_URI_SEG1, A.PORTAL_URI_SEG2,
A.PORTAL_URI_SEG3 |
||||||||||||||||||||||||||||||||||||||||||||||||
|
|
SELECT A.PORTAL_NAME,
A.PORTAL_LABEL, A.PORTAL_OBJNAME, A.PORTAL_URI_SEG1, A.PORTAL_URI_SEG2 Component,
A.PORTAL_URI_SEG3
FROM PSPRSMDEFN A, PSPRSMPERM B, PSROLECLASS C
WHERE ( A.PORTAL_REFTYPE = 'C'
AND A.PORTAL_CREF_USGT
= 'TARG'
AND A.PORTAL_NAME =
B.PORTAL_NAME
AND A.PORTAL_REFTYPE =
B.PORTAL_REFTYPE
AND A.PORTAL_OBJNAME =
B.PORTAL_OBJNAME
AND C.CLASSID =
B.PORTAL_PERMNAME
AND A.PORTAL_URI_SEG1
<> ' '
AND A.PORTAL_URI_SEG2
<> ' ' -- Component
AND A.PORTAL_URI_SEG3
<> ' '
AND C.ROLENAME = :1)
ORDER BY 1, 2
|
|
||||||||||||||||||||||||||||||||||||
SELECT
A.PORTAL_LABEL, A.PORTAL_OBJNAME, A.PORTAL_URI_SEG1, A.PORTAL_URI_SEG2,
A.PORTAL_URI_SEG3 |
SELECT
A.PORTAL_LABEL, A.PORTAL_OBJNAME, A.PORTAL_URI_SEG1, A.PORTAL_URI_SEG2,
A.PORTAL_URI_SEG3 |
||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
||||||||||||||||||||||||
SELECT
A.PORTAL_NAME, A.PORTAL_LABEL,
A.PORTAL_OBJNAME |
SELECT A.PORTAL_NAME,
A.PORTAL_LABEL, A.PORTAL_OBJNAME |
||||||||||||||||||||||||
|
|
PT_SEC_PLIST_PAGES |
-- Pages the Perm List can Access |
||||||
Row |
Menu Name |
Bar Name |
Bar Item |
Panel Item |
Authorized
Actions |
Display |
|
PT_SEC_PLIST_SIGNON_TIME |
-- Perm List Signon Times |
Row Descr Start Time End
Time
PT_SEC_PLIST_APPDES_ACCESS |
-- Perm List's App Designer Acces |
||
Row |
Definition
Type |
Access Perm. |
|
PT_SEC_PLIST_PTACCESS |
-- Perm List's PeopleTools Access |
Row |
Menu Name |
PT_SEC_PLIST_WS_OP |
-- Web Service in Permission List |
||
Row |
Service |
Operation |
|