Hide Employment Info tab - Configure Person Spotlight tabs visibility using Expressions
I want to configure configure the person spotlight area in the HCM Design Studio to hide employment info tab for select user roles.
I tried selecting "Expression" under the Visible setting, and wrote below expression, which aims to hide the Employment Info tab for users that have the role of "my_role" placeholder.
The reason we want to hide it for the role is because it has data that a certain role should not see.
!securityContext.userInRole['my_role']
However, I got an error and it didn't work. Is there any guide on using the Expression visibility editor?
I found the below video but the video did not show how to use Expressions to conditionally display or hide the tab.