Modifying Data Permission Security

These topics discuss how to:

  • Modify security for hiring and transferring people.

  • Allow people to update their own data.

PeopleSoft HCM enables users to assign workers into departments that they can't access for updates. To prevent a user without access from transferring a worker into a department, PeopleSoft HCM contains a view, DEPT_SEC_VW, that shows only the department IDs that the user is authorized to access.

If you use this view, you need to create a class of users who can access all departments so that they can perform transfers. Also, update the Job record definition in PeopleSoft Application Designer so that the prompt table for the DEPT_ID field is DEPT_SEC_VW. You may also want to change the security view on the DEPARTMENT_TBL component to this view if you want users to only be able to access departments they have access to. This is defined using the Department security sets.

See PeopleTools: Application Designer Developer's Guide.

PeopleSoft HCM doesn't allow users to update their own data except in the self-service internet applications. However, sometimes you might want them to update some of their own data in other components. To allow users to update their own data, you implement the PeopleCode function Allow EmplIDChg (allow emplID change). The function looks for a single Boolean parameter. When the parameter is set to true, workers can update their own data; when it is set to false, they cannot.

For example, to allow workers to change their own personal data, you enable the PeopleCode function for PERSONAL_DATA, the underlying record definition for the Personal Data component. Then workers can change their personal data, but not their job information.

To enable the Allow EmplIDChg function:

  1. Open the record PERSON in PeopleSoft Application Designer.

  2. Open the RowInit PeopleCode on the EMPLID field.

  3. Insert new code after this line:

    /************ START OF ROW INIT PEOPLECODE *************/
  4. Insert a row and enter the following code after the first line (a comment) of existing code:

    if %Component = Component.PERSONAL_DATA then
        AllowEmplidChg(true);
    end-if;
  5. Save your changes and exit the PeopleCode page.

Workers can now update their own data using the Personal Data page.

To allow workers to update their own data in other places in PeopleSoft HCM, enter this PeopleCode function in the underlying record definition for each page where you want to allow updates.