Disable New Button at Dashboad Overview Page

Philipp4
Tera Contributor

Hi, 

I want to disable the New Buttn at the Dashboard Overview Page. I have no idea where I can confire that or find this page in ServiceNow

 

find_real_file.png

 

Thanks, 

1 ACCEPTED SOLUTION

Tony DiRienzo
Giga Guru

From what searching I did, it does not appear that the code for the Dashboards Overview page is accessible to customers.

That said, the display of the New button is controlled by the create ACLs on the pa_dashboards table. The default out-of-box rules allow any user with roles to create a new dashboard.

If you would like to hide the button to prevent certain users from being able to create new dashboards, then you can simply edit the ACLs to require a certain role or advanced condition.  The new button will be removed on page load for users who do not have the ability to create new dashboard records.  (Annoyingly, the button displays for a brief second before being removed from the DOM.)

I hope this helps.  See the image below where I've hidden the new button for some users in my developer instance:

find_real_file.png

View solution in original post

2 REPLIES 2

Tony DiRienzo
Giga Guru

From what searching I did, it does not appear that the code for the Dashboards Overview page is accessible to customers.

That said, the display of the New button is controlled by the create ACLs on the pa_dashboards table. The default out-of-box rules allow any user with roles to create a new dashboard.

If you would like to hide the button to prevent certain users from being able to create new dashboards, then you can simply edit the ACLs to require a certain role or advanced condition.  The new button will be removed on page load for users who do not have the ability to create new dashboard records.  (Annoyingly, the button displays for a brief second before being removed from the DOM.)

I hope this helps.  See the image below where I've hidden the new button for some users in my developer instance:

find_real_file.png

Maria DeLaCruz
Tera Guru

Hi Tony,

Thanks for sharing this solution.  I tried adding the 'admin' role to the two create ACLs on the pa_dashboards table, and the "New" button still shows for non-admin users.  Is there anything else that needs to be modified?

Thanks,
Maria

 



find_real_file.png

 

 

 

 

 

find_real_file.png