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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | shareDashboard(dashboardId, shareType, param1, param2) | **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 |
| --- | --- | --- | --- |
| dashboardId | Number | Yes | The id of the dashboard to share |
| shareType | String | Yes | Options are GLOBAL, GROUP, PROJECT, PROJECT_UNKOWN |
| param1 | String | Yes | Name or ID of group or project that dashboard should be shared with |
| param2 | String | Yes | Name of ID of project role when sharing with project |

## Return Type

**Boolean**

Returns true if the dashboard was successfully shared.

## Example

```
boolean success = shareDashboard(1000, "PROJECT", "TP", 10200)
```

## See also

> Macro (contentbylabel)