Hiding Quick Actions Based on Role – Redwood UI
Dear all,
We are currently working on a customer requirement to hide specific Quick Actions for users assigned a particular custom role. The Quick Actions that need to be hidden are:
- Add Check-in Document
- Add Anytime Document
To meet this requirement, we attempted to control the visibility of these Quick Actions by applying an Expression Language (EL) condition in the Structure tool (via Sandbox), making them visible only to users who do not have the specific role. We applied the following EL expression to the Add Check-in Document Quick Action:
#{!(securityContext.userInRole['ROLE NAME'])}
However, users assigned to this role are still able to see the Quick Action, despite the condition being applied. Could you please advise on the correct approach to restrict or hide Quick Actions based on user roles when using the Redwood UI? Is securityContext.userInRole supported in this context for Redwood pages, or is there an alternative recommended configuration method?