Get Started with Redwood for Oracle Cloud HCM Begin Now
Syntax for referencing a user role in an EL Expression when using Page Composer
Summary
Syntax for referencing a user role in an EL expression when using Page ComposerContent
This EL Expression that I am putting up here will be useful for your page customization.
#{securityContext.userInRole['role1,role2,roleN']}
When the user has any of the roles, the expression returns True. When the user does not have any of the roles, the expression returns False.
#{securityContext.userInAllRoles['role1,role2,roleN']}
When the user has all the roles, the expression returns True. Otherwise, the expression returns False.
#{!securityContext.userInRole['PER_HUMAN_RESOURCE_SPECIALIST_JOB']}
This is a negative condition because of the !.
#{!securityContext.userInRole['PER_LINE_MANAGER_ABSTRACT'] or securityContext.userInRole['GSE_HR_MGR_LITE']}
3