Dashboards

vidhya_mouli
Tera Sage

We have a requirement and I want to check with you about what is the best way of doing it. We have different users who have access to different dashboards. Everything is associated with SOW.

Agent 1 has access to Dashboard 1
Agent 2 has access to Dashboard 2
They both have different roles.

The default dashboard in SOW is lets say Dashboard 1.
So when Agent 2 opens SOW they see Access Denied.
Instead I was to set Dashboard 2 as default for agent 2.

Is this possible to do without creating separate landing pages for each role?

1 ACCEPTED SOLUTION

vidhya_mouli
Tera Sage

Managed to do this.

I had to do it through UI Builder.
Created a client script that will fetch the sys id of the dashboard based on the role.

Added this client script as event handler on page load.

Then set this to the Dashboard Controller. 

Also I set up the audiences for the landing page.

View solution in original post

10 REPLIES 10

Tanushree Maiti
Tera Patron

Hi @vidhya_mouli 

 

Users with any role can restrict access by role to any dashboard that they have created. The user also needs whatever roles are necessary to access the specific data on the dashboards.

 

refer ServiceNow Documentation: Dashboard permissions 

 

Check this post as well : What is that Restrict to roles in a Dashboad Panel? 

 

 

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

vidhya_mouli
Tera Sage

User has specific role and the dashboard has been shared. The requirement is, when they loginto SOW, based on their role different dashboards should be displayed.

Ankur Bawiskar
Tera Patron

@vidhya_mouli 

are you talking about platform analytics dashboard or landing pages in SOW?

share some screenshots

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

Ankur Bawiskar
Tera Patron

@vidhya_mouli 

see if this helps

Set Dashboards on User Landing Page based on roles 

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