CMDB Health Settings in CMDB Workspace – How to Grant Access to asset Role?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
Hi All,
In CMDB Workspace, under the Home tab → Quick Links → CMDB Health Dashboard, when I click on it, the CMDB Health Settings panel opens.
Currently, these settings are only visible to users with the admin role.
I need to provide access to users with the asset role as well, so they can view and manage the CMDB Health Settings without requiring full admin access.
Could someone please guide me on:
- Where is this visibility controlled?
- Which configuration needs to be updated so that asset users can access CMDB Health Settings?
For reference, please check below snip:
Any pointers would be appreciated.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
it comes from this OOTB page variant
https://instanceName.service-now.com/now/builder/ui/edit/experience/4fe450ae8f312010960c53ac37bdee20/f74a835177233110327bf350ff5a994f/fb4a431577233110327bf350ff5a9937
See there it's checking if admin user or not in "Hide component"
Click here I highlighted
Then Use Script option
function evaluateProperty({api, helpers}) {
if(gs.hasRole('admin') || gs.hasRole('asset')
return false; // don't hide
else
return true; // hide
}
Output: As admin I can see
Asset manager user with asset role can also see
💡 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 || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Thank you for your response. Could you please share the script that you have updated? It would be very helpful for me to review. If possible, please also provide the relevant screenshot(s), as they will further assist in understanding the changes.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I edited my previous response.
You can mark that as correct as I shared working solution
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Thank you for your response as per suggestion from you I have enabled that but when they click on it, they are getting below error:
Please can you provide what is restricting how i can overcome here. My final motivate is they need to utilize the entire functionality.
Thank you
