DEPT_SCRTY_VW

(SQL View)
Index Back

Department-Level Security

The Operator Security module uses this table to determine which employee data the operator can access. If the operator is granted access to a specified department, then they can access all employees assigned to that department.

SELECT TN.SETID , B.DEPTID , TN.EFFDT ,B.DESCR ,TN.TREE_NODE_NUM ,TN.TREE_NODE_NUM_END FROM PSTREEDEFN TD , PSTREENODE TN ,PS_DEPT_TBL B WHERE TD.TREE_NAME = 'DEP_SECURITY' AND TD.SETCNTRLVALUE = ' ' AND TD.SETID = B.SETID AND TD.SETID = TN.SETID AND TD.SETCNTRLVALUE = TN.SETCNTRLVALUE AND TD.TREE_NAME = TN.TREE_NAME AND TD.EFFDT = TN.EFFDT AND TD.EFF_STATUS = 'A' AND TN.TREE_NODE = B.DEPTID AND B.EFFDT = ( SELECT MAX(EFFDT) FROM PS_DEPT_TBL C WHERE C.SETID = TN.SETID AND C.DEPTID = TN.TREE_NODE AND C.EFFDT <= TN.EFFDT) AND B.EFF_STATUS = 'A'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID

Default Value: OPR_DEF_TBL_FS.SETID

2 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
3 EFFDT Date(10) DATE Effective Date

Default Value: %date

4 DESCR Character(30) VARCHAR2(30) NOT NULL Description
5 TREE_NODE_NUM Number(10,0) DECIMAL(10) NOT NULL Internal beginning node range number
6 TREE_NODE_NUM_END Number(10,0) DECIMAL(10) NOT NULL Internal ending node range number