CMDB Health Settings in CMDB Workspace – How to Grant Access to asset Role?

Sirri
Tera Guru

Hi All,

In CMDB Workspace, under the Home tab → Quick LinksCMDB 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:
    Sirri_0-1768898759905.png

     

Any pointers would be appreciated.

Thanks!

6 REPLIES 6

Ankur Bawiskar
Tera Patron

@Sirri 

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"

AnkurBawiskar_0-1768904793608.png

 

Click here I highlighted

AnkurBawiskar_1-1768904876853.png

Then Use Script option

AnkurBawiskar_2-1768904923057.png

 

AnkurBawiskar_0-1768913028810.png

 

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

AnkurBawiskar_3-1768905126974.png

Asset manager user with asset role can also see

AnkurBawiskar_5-1768905227874.png

 

AnkurBawiskar_4-1768905175131.png

 

💡 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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar ,

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.

@Sirri 

I edited my previous response.

You can mark that as correct as I shared working solution

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

@Ankur Bawiskar ,

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:

Sirri_0-1769082471119.png

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