Menu visibility based on roles in SOW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
I need to hide the Incident menu (Assigned to You, Unassigned, Open, Resolved, etc.) in the Service Operations Workspace for users who have both the itil and XY roles.
The expected behavior is:
Users with only the itil role should continue to see the Incident menu.
Users with both itil and XY roles should not see the Incident menu.
I checked List Applicability, but since the user still has the itil role, the menu remains visible due to role-based OR logic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
List Applicability won't work for this because roles are evaluated with OR logic.
Instead, use UI Builder or Workspace Experience visibility conditions. Create a visibility rule or client state that hides the Incident menu when the user has the XY role, even if they also have itil.
If needed, you can also customize the workspace navigation using a script-based visibility condition that checks:
- Show → user has itil
- Hide → user also has XY
Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
you should ask your customer who wants to see what because that's how the Lists are controlled
you should not handle the reverse i.e. if user has XYZ role then don't show
Approach
-> create audience and handle this using script via user criteria and check the role
check this link where I shared solution yesterday
workspace application menu visibility
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @Janaki Raman ,
You need to create the appropriate audience for the "sys_ux_visibility" record to control the visibility of the respective menu.
Please follow the below link :
https://www.servicenow.com/community/developer-forum/how-to-restrict-project-workspace-access/m-p/27...
Please mark helpful & correct answer if it's worthy for you.