Transfer ownership of dashboard and related reports

Karla Chorny
Tera Expert

I have been asked to transfer ownership of a list of dashboards, along with all of the reports on each dashboard, to another person. The original owner left the department, and is no longer responsible for maintaining these dashboards. Seems like something that would happen somewhat frequently, and there should be an easy way to do this...

 

I've done some research, but am not finding a way to script this. Eventually, I'd like to create a UI Action that will allow a dashboard owner to do it themselves.

 

Any help would be appreciated.

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Karla Chorny 

 

https://www.servicenow.com/community/platform-analytics-forum/how-to-transfer-ownership-of-a-dashboa...

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Thank you for responding, however, my problem is not the dashboard ownership change - I can do that easily, either manually or via script. The issue is I have a long list of dashboards to change, and they each have dozens of reports on them. I want to script both the dashboard ownership change, along with ownership of all of the reports on that dashboard. Your link only applies to changing dashboard ownership, which (per my testing) does not automatically change ownership of the reports that are on that dashboard.

Hi @Karla Chorny 

 

I got this:

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0719808

not a full solution but a workaround possibly.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Thanks, yes - I've used that script before but it's just for one report where we already have the sys_id.

 

Here's what I want the script to do:

1. Take a dashboard ID and a user ID as input

2. Find all of the reports on that dashboard

^^^ This is where I'm stuck. If I can get past this, I can do the rest

3. Change ownership of each report to the input user ID

4. Change ownership of the dashboard to the input user ID