cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Get Dashboards of a specific User

IPA
11-Garnet
11-Garnet

Get Dashboards of a specific User

Is there a way to get all the dashboards that were created by a specific user by script?

This would be very useful as I would like to delete all the dashboards that were created by a user when this user is deleted.

ACCEPTED SOLUTION

Accepted Solutions

This is an approximation:

var result = Resources["DashboardFunctions"].SearchAllDashboards();

result.AddField({name: "owner", baseType: "STRING" });

var creator

for each(row in result.rows) {

   creator =  Dashboards[row.id].GetConfigurationChangeHistory().Find({ changeAction: "CREATE" });

    if (creator!=null) {

        row.owner = creator.user;

    }

}

View solution in original post

2 REPLIES 2

This is an approximation:

var result = Resources["DashboardFunctions"].SearchAllDashboards();

result.AddField({name: "owner", baseType: "STRING" });

var creator

for each(row in result.rows) {

   creator =  Dashboards[row.id].GetConfigurationChangeHistory().Find({ changeAction: "CREATE" });

    if (creator!=null) {

        row.owner = creator.user;

    }

}

IPA
11-Garnet
11-Garnet
(To:CarlesColl)

Thank you very much, Carles! This is what I was looking for.

Announcements


Top Tags