Redwood: HR Specialist able initiate action on themselves — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Redwood: HR Specialist able initiate action on themselves

edited Jul 8, 2024 1:28PM in Human Capital Management 1 comment

Summary: HR Specialist able initiate action on themselves.

Hello Team,
We are using custom HR Specialist roles. Here HR Specialist can initiate few actions like change Location, Change Working Hours, Change Manager etc. (not all actions) on their own record which is not expected behavior.

Custom person security profile code below.

(EXISTS(SELECT 1 FROM PER_ALL_ASSIGNMENTS_M ASG, PER_PERIODS_OF_SERVICE PS WHERE ASG.ASSIGNMENT_TYPE IN('E','C','P','N') AND ASG.EFFECTIVE_LATEST_CHANGE='Y' AND TRUNC(SYSDATE) BETWEEN ASG.EFFECTIVE_START_DATE AND ASG.EFFECTIVE_END_DATE AND PS.PERIOD_OF_SERVICE_ID =ASG.PERIOD_OF_SERVICE_ID AND (ASG.ASSIGNMENT_STATUS_TYPE IN ('ACTIVE','SUSPENDED') OR (ASG.ASSIGNMENT_STATUS_TYPE IN ('INACTIVE') AND NOT EXISTS (SELECT 1 FROM PER_ALL_ASSIGNMENTS_M EXASG WHERE EXASG.ASSIGNMENT_TYPE IN('E','C','N','P') AND EXASG.EFFECTIVE_LATEST_CHANGE = 'Y' AND EXASG.PERSON_ID = ASG.PERSON_ID AND SYSDATE BETWEEN LEAST(SYSDATE,EXASG.EFFECTIVE_START_DATE) AND EXASG.EFFECTIVE_END_DATE AND EXASG.ASSIGNMENT_STATUS_TYPE IN ('ACTIVE','SUSPENDED')) AND PS.ACTUAL_TERMINATION_DATE = (SELECT MAX(ALLPS.ACTUAL_TERMINATION_DATE) FROM PER_PERIODS_OF_SERVICE ALLPS WHERE ALLPS.PERSON_ID = ASG.PERSON_ID AND ALLPS.PERIOD_TYPE IN('E','C','N','P') AND ALLPS.ACTUAL_TERMINATION_DATE IS NOT NULL)))AND ASG.PERSON_ID=&TABLE_ALIAS.PERSON_ID AND ASG.BUSINESS_UNIT_ID='300000026871958' AND ((SELECT NVL(HRC_SESSION_UTIL.GET_USER_PERSONID,-1) FROM DUAL) <> &TABLE_ALIAS.PERSON_ID)))

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!