---
title: "changeDashboardOwner"
canonical: "https://support.appfire.com/space/PSJ/15485973/changeDashboardOwner"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | changeDashboardOwner(oldOwnerName, newOwnerName, dashboardName, transferFilters) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Changes the ownership of an existing dashboard.

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

> Macro (contentbylabel)