# system.kanoa.dashboard.addUserDashboard(userDashboardInfo, userId)

Adds a new user dashboard

---
### Parameters
**userDashboardInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - dashboardId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - isFavorite</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - isPrimary</td><td>Boolean</td><td>When true, this dashboard is shown on main overview page when the user logs in</td></tr>	
 	<tr><td> - userId</td><td>Integer</td><td></td></tr>	
	</tbody>
</table>

**userId** `Integer`: Id of user executing the function<br />

---
### Returns
**userDashboardId** `Integer`<br />
**message** `string None if successful`<br />

---
### Example
```python
dashboardInfo = {
  "dashboardId": 4,
  "userId": 7,
  "isPrimary": True,
  "isFavorite": False
}
userId = 123
dashboardId, msg = system.kanoa.dashboard.addUserDashboard(dashboardInfo, userId)
if msg:	system.perspective.sendMessage('showFailerToast', msg)
else: system.perspective.sendMessage('showSuccessfulToast', 'User Dashboard has been saved')
```
