Syntax
changeDashboardOwner(oldOwnerName, newOwnerName, dashboardName, transferFilters)
Description
Changes the ownership of an existing dashboard.Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
oldOwnerName | string | Yes | The username of the current/old owner of the dashboard |
newOwnerName | string | Yes | An username the new owner of the dashboard |
dashboardName | string | Yes | The dashboard name |
transferFilters | boolean | Yes | If true, all filters used by the dashboard will get transferred to the new dashboard owner |
Return type
boolean
Returns true if the ownership was successfully changed.
Example
boolean success = changeDashboardOwner("jdoe", "admin", "Project status board", true);
See also