For more information, please refer to this announcement explaining best practices for getting answers to questions.
EL expressions Data role verse Job role
Summary
EL expressions Data role verse Job roleContent
Hi All-
We have a requirement to show an icon on our homepage based on the role assigned to the employee. I have found many posts relating to this topic but I would like confirmation on the following:
1. Does it matter if you use a job role or data role in your EL expression?
2. Does it matter if you combine the two variations together in the same expression?
These are all custom roles and we would like to do it by job role for the HR manager and generalist roles because there are less roles to add. I am attaching the code I have applied in a development instance and from my initial testing it seems to work. I was able to see it with the EMR HR Superuser role (data role) and then from a user who has EMR HR Manager (data role) even though I have job roles in the code below.