Skip to main content
LinkedIn
Copied!

Table of Contents

Controlling access to sections, buttons, and other UI controls

Version:

Only available versions of this content are shown in the dropdown

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.

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 Create Security Privilege .

    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 Configure Org & Security Access Manager Privileges .

  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.

Did you find this content helpful?

Have a question? Get answers now.

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

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

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

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us