Question
Class of a Privilege Rule
Hi Guys,
What should be the class of a Privilege rule in Pega?
I have a section on the landing page of a user portal in Data-Portal Class. The section has a Navigation Menu (in Data-Portal Class). Few items of the menu should be visible only to the Admin (Users having the Role Appl:Admin).
I need to refer an Admin Privilege in the Navigation menu properties ('Visible for privilege' field) for the items I need only Admin to access.
I can only refer Privilege rules here that are in the class or below Data-Portal (Data-Portal, Data-, @baseclass).
In which class do I create this Privilege Rule. Is it wise to create it in @baseclass in the Admin Access Role Appl:Admin.
In general how do you choose the class of the Privilege- based on the rule where it is referrred?
Thanks!
Bhagyashree
Hi,
I do not have a straight answer for your question. I tried to put my understanding of Privileges here.
Considering above three combinations, I think creating privilege in the current class or anywhere in the hierarchy will solve all the above three use cases. If we have a privilege created in the system and we want to use the same in scenario like #2 above , we don't need to create new privilege in the class hierarchy, instead we can use the existing one with class & Privilege combination (as long as the access restriction purpose of the created privilege includes current scenario as well).
Comments are welcome.
Regards,
Santhosh