Restrict Tab Based on user location on Dashboard SOW Servicenow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I want to hide the tab of the dashboard based on the user location
The overview is a dashboard, how to restrict it based on user location
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
1) Either Create different dashboards with different permission
- Create a primary dashboard that includes the location-restricted tab.
- Create a second dashboard that excludes the location-restricted tab.
- Use the Sharing panel on the dashboard to grant access only to authorized users, groups, or roles
OR
2)If certain roles are tied to location restrictions, you can make the dashboard visible only to users in those roles.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I want to use the single dashboard and restrict the tab based on user location
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @dhivyal94299399,
Use UI Builder visibility conditions:
Go to:
Now Experience Framework > UI Builder- Open Service Operations Workspace .
- Locate the navigation item/page for Overview.
- Configure a Visibility Condition on the tab/navigation item.
- Check the logged-in user's location (sys_user.location) through:
- Client Script
- Data Resource
- User criteria logic
- Show or hide the tab based on the location value.
if (user.location == '<Location Sys ID>') {
return true; // Show tab
}
return false; // Hide tab
Since Workspace navigation supports role-based visibility, many customers map:
Location → Group → Roleand then use the role in the navigation item's visibility settings.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Not possible to hide a particular tab within Dashboard
Only solution -> keep separate dashboard and add only required tab in it.
Control the dashboards visibility based on role
💡 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