Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Controlling access to sections, buttons, and other UI controls

Updated on June 30, 2021

Authorized users approve salary changes by using the SalaryReview case type in the HRApp application. You need to ensure that only managers have access to the button that is used to approve salary changes.

Before you begin:

Assume that these steps have already been done:

  1. Access groups are defined for human resources staff (HRApp:HRStaff) and managers (HRApp:Managers).
  2. A role is defined for salary approval processing (HRApp:SalaryApproval).
  3. The HRApp:SalaryApproval role is assigned to the HRApp:Managers access group.
  4. The user interface includes a button named pyApproveSalary, which a user clicks to approve a salary change.
Do these steps to ensure that only operators with the HRApp:SalaryApproval role have permission to click the pyApproveSalary button.
  1. Create the CanApproveSalary privilege by doing the following steps:
    1. In Dev Studio, click CreateSecurityPrivilege.
    2. In the Label field, enter CanApproveSalary.
    3. In the Apply to field, enter SalaryReview, and then click Create and open.
    4. Click Save.
  2. Associate the CanApproveSalary privilege with the pyApproveSalary button by doing the following steps:
    1. In Dev Studio, open the section that contains the button pyApproveSalary, and select the pyApproveSalary button.
    2. Click the View Properties icon.
    3. In the Privilege field, enter CanApproveSalary.
    4. Click Submit.
    5. Click Save.
  3. In Dev Studio, go to the Privileges tab of the Access Manager landing page by clicking ConfigureOrg & SecurityAccess ManagerPrivileges.
  4. In the Role field, enter HRApp:SalaryApproval, and in the Case type field, enter SalaryReview. The tab lists privileges that apply to this role and case type.
  5. Click the Add a privilege icon and in the Privilege field, enter CanApproveSalary.
  6. In the dialog box for this privilege, click Full Access, and then click OK.
  7. For other roles for the SalaryReview case type, repeat the above steps, but ensure that the CanApproveSalary privilege is not listed or that the privilege is shown with a red X icon. You can change the value by clicking the icon.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us