Skip to main content

Using RBAC to manage access to dashboards

1 タスク

30 分

表示の対象:All users Applies to: Pega Platform '26
中級
Security
英語
バージョンタグがご希望のコンテンツと一致しているかご確認ください。 または、最新バージョンをご利用ください。

シナリオ

You are a Solution Builder working on TGB's HRApps application. TGB wants to restrict Dashboard access exclusively to managers. To accomplish this, you will create a Privilege, apply it to the appropriate Access Role, create a When Rule to evaluate the Privilege, and configure the Web portal navigation to enforce the access restriction.

補足: This challenge has been configured with Single Sign-On (SSO) using your Pega Academy credentials. If you are not automatically signed in to the challenge environment after initializing the instance, you may use the credentials provided.

The following table provides the credentials you need to complete the challenge:

Role User name Password
Solution Builder SSA@TGB pega123!

After completing this challenge, you should be able to: 

  • Create a Privilege rule to control access to application features.
  • Apply a Privilege to an Access Role.
  • Create a When Rule to evaluate a Privilege expression.
  • Configure portal navigation visibility using a When condition.

このチャレンジを完了するには、Pegaインスタンスを起動する必要があります。

起動には5分ほどかかることがありますので、しばらくお待ちください。

詳細なタスク

1 Using RBAC to Manage Access to Dashboards

Solution Builder Advanced Using RBAC to manage access to dashboards Doc Journey

Use the technical documentation linked in the Journey map above to complete the assigned tasks. The technical documentation might have more information than you need to complete the tasks.

Acceptance criteria

Task 1: Create a Privilege for manager access

  • A Privilege rule is created with the following configuration:
    Field Value
    Label CanViewLPDashboard
    Apply to Data-Portal (highest available unlocked Ruleset version)

Task 2: Apply the Privilege to the HRApps:Manager Access Role

  • The HRApps:Manager Access Role is updated with the following privileges on the Data-Portal Class:
    Name Level
    CanViewLPDashboard 5
    pyDashboardsManager 5

Task 3: Create the CanViewLPDashboard When Rule

  • A When Rule is created with the following configuration:
    Field Value
    Label CanViewLPDashboard
    Apply to Data-Portal (highest available unlocked Ruleset version)
  • On the Advanced tab, the condition type is set to expression evaluates to true with the following expression:

    @Default.HavePrivilege(tools,"CanViewLPDashboard",.pxObjClass,myStepPage)

Task 4: Apply the When condition to the Web portal Dashboards

  • In the Web portal, the Dashboards page in the Main navigation has its visibility condition set to evaluate the CanViewLPDashboard When Rule.

Directions

  1. Create a new Privilege named CanViewLPDashboard applied to Data-Portal as detailed in the Acceptance criteria.
  2. Open the HRApps:Manager Access Role, edit the Data-Portal Access Role, and add the CanViewLPDashboard privilege with Level 5 as detailed in the Acceptance criteria.
  3. Create a new When Rule named CanViewLPDashboard applied to Data-Portal, and then set the expression on the Advanced tab as detailed in the Acceptance criteria.
  4. Open the Web portal channel, navigate to Main navigation, and set the Dashboards page visibility condition to the CanViewLPDashboard When Rule as detailed in the Acceptance criteria.


このモジュールは、下記のミッションにも含まれています。

トレーニングを実施中に問題が発生した場合は、Pega Academy Support FAQsをご確認ください。

このコンテンツは役に立ちましたか?

改善できるところはありますか?

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

Pega Academy 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