Question
3
Replies
1409
Views
Societe Generale
Posted: January 2, 2018
Last activity: January 23, 2018
In which clipboard page, OOTB HaveRole function checks for the presence of given role?
This Help topic explains that the roles will be fetched from logged in user AccessGroup instance. But I would like to know technically in which clipboard page, HaveRole function looks for the given role to validate whether the logged user has the role tagged or not.
Lib(Pega-RULES:Default).HaveRole(this, "rolename")
Hi,
It will check the roles in pxThread page . Refer below java code in function.
return aTools.getAuthorizationHandle().haveRole(strRoleName);
which is calling methods present in com.pega.pegarules.pub.context.PRAuthorization engine api.
refer below links for more details
https://pdn.pega.com/sites/pdn.pega.com/files/help_v717/procomhelpmain.htm#definitions/p/publicapi.htm
https://pegasolutions.techmahindra.com/prhelp/javadocs/com/pega/pegarules/pub/context/PRAuthorization.html#haveRole(java.lang.String)
Thanks,
Deva