We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Menu visibility based on roles in SOW

Janaki Raman
Tera Contributor

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.

JanakiRaman_0-1784123237994.png

 



3 REPLIES 3

Bhargavi Patel
Kilo Guru

Hi @Janaki Raman 

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.

Ankur Bawiskar
Tera Patron

@Janaki Raman 

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! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

abirakundu23
Giga Sage

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.