Using RBAC to manage access to dashboards
4 Tâches
30 mins
Intermédiaire
Security
Anglais
Scénario
The TGB organization has decided to limit access to the Dashboards exclusively for managers. To enforce this restriction:
- Create a privilege for the Manager.
- Apply privileges to respective Access Roles.
The following table provides the credentials you need to complete the challenge.
| Role | User name | Password |
|---|---|---|
| Senior System Architect | SSA@TGB | pega123! |
| Manager | Manager@TGB | pega123! |
| User | User@TGB | pega123! |
Note: This challenge does not have a demo video. Please refer to the Detailed Tasks for step-by-step instructions to complete the challenge.
Détail des tâches
1 Create a Privilege for Manager
- In the Pega instance for the challenge, enter the following credentials:
- In the User name field, enter SSA@TGB.
- In the Password field, enter pega123!.
- In the header of Dev Studio, click Create > Security > Privilege to create the privilege.
- In the Label field, enter CanViewLPDashboard.
- In the Context section, in the Apply to field, enter or select Data-Portal, and select the highest available unlocked Ruleset version.
- Save the privilege.
2 Apply the privilege to the HRApps:Manager Access Role
- In the navigation pane of Dev Studio, click Records > Security > Access Role Name to open the instances of the Access Role Name.
- Click on HRApps:Manager to open the existing User Access Role.
- On the Role tab, in the Access Class column, click the Data-Portal Access Role to edit.
- In the Privileges section, in the Name field, enter or select the CanViewLPDashboard privilege, and in the Level field, enter 5.
- Click Submit to save and dismiss the Add/Edit role window.
- Save the Access Role.
3 Create a When Rule to hide the dashboard for all users
- In the header of Dev Studio, click Create > Decision > When to create the When Rule.
- In the Label field, enter CanViewLPDashboard.
- In the Context section, in the Apply to field, enter or select Data-Portal, and select the highest available unlocked Ruleset version.
- In the Advanced tab, click the Configure advanced configurations here... dropdown and select [expression evaluates to true].
- In the Expression builder, enter @Default.HavePrivilege(tools,"CanViewLPDashboard",.pxObjClass,myStepPage).
- Save the When Rule.
4 Apply the when condition to hide the Dashboards
- In App Studio, click Channels > Web portal to edit the web portal.
- In the Main navigation, configure the page visibility condition for the Dashboards to evaluate CanViewLPDashboard When Rule.
- Save the Web portal.
Disponible dans la mission suivante :
If you are having problems with your training, please review the Pega Academy Support FAQs.
Want to help us improve this content?