How to restrict ITIL user from creating a new dashboard

Anamika Gupta
Tera Contributor

 

I want to restrict ITIL user from creating new dashboards. 

Below highlighted button should not be visible for ITIL user. How to achieve that?

 

 

AnamikaGupta_0-1674554730676.png

 

4 REPLIES 4

Chetan Mahajan
Kilo Sage
Kilo Sage

Hi Anamika,

There is an ACL where you can Restrict ITL role "pa_dashboards". OR

Create New ACL with operation as create and give role who can not create it.

 

Kindly mark Correct and Helpful if Applicable 

Hi Chetan,

I had created a create ACL for pa_dashboards but it is not working. Please help me

Hi @Anamika Gupta ,

                                       Navigate to ACL : https://InstanceName.service-now.com/sys_security_acl.do?sys_id=0f9d037e873212001ac119fa84e3eccb&sysparm_view=&sysparm_domain=null&sysparm_domain_scope=null&sysparm_record_row=1&sysparm_record_rows=24&sysparm_record_list=nameCONTAINSpa_dashboard%5eORDERBYname

you will get below script define in that ACL

//Grant access to users that have at least one role
answer = gs.getProperty('glide.cms.enable.responsive_grid_layout', 'true') === 'true' && gs.getUser().hasRoles()

//Replace it with
answer = gs.getProperty('glide.cms.enable.responsive_grid_layout', 'true') === 'true' && gs.getUser().hasRoles() && !(gs.getUser().hasRole('itil'));

I have tested and its worked for me.

Kindly mark correct and helpful if applicable

Community Alums
Not applicable

Hi @Anamika Gupta ,

  1. Navigate to the dashboard to restrict to specific roles.
  2. Click the context menu (
     

     

    ) and select Dashboard properties.
  3. In the Restrict to roles field, specify the additional roles required to access the dashboard.
    Users with any of the specified roles can access the dashboard only if it has been shared with them first from the Share panel.

Only users with the restricted role are able to view the dashboard. A message on the Sharing panel indicates which roles have access. Click the roles in this message to view the properties of the dashboard.

SandeepDutta_1-1674558880678.png

 

Also, refer to this thread :https://www.servicenow.com/community/developer-forum/how-to-prevent-a-user-from-creating-a-dashboard...