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

This is exactly what I am looking for. However, when I tried to implement the solution it did not work for me. It is not redirecting the user to the correct dashboard.

@vidhya_mouli 

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

share some screenshots

the above link uses UI page which I don't think can be embedded in landing pages

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

I have a dashboard on the landing page of SOW. This dashboard is developed in PA. Based on the role I want different dashboards to be visible for different users.

Easiest solution is to have different landing pages for different users. But I am wondering is it possible to have the same landing page but have different dashboards (dynamically) based on roles.

vidhya_mouli_0-1778829197854.png

 

@vidhya_mouli 

that's not possible to swap the dashboard dynamically based on logged in user

Why not create separate landing pages in SOW and each landing page will have respective PA dashboard?

Check this link

how to set landing page differently for different users based on audience in SOW 

💡 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

Mark Manders
Giga Patron

Create the landing page as the dashboards you want to land them on and add the audiences you need/want for that. Dashboards will always be tricky, because they can also be set to 'load where I left off' or 'load this dashboard'. Those are all user preferences. Audiences through landing pages will always land them on the data you want to show.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark