# system.kanoa.security.addUserAssetRole(userAssetRoleInfo, userId)

Adds roles for a user and asset

---
### Parameters
**userAssetRoleInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - assetId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - roleId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - userId</td><td>Integer</td><td></td></tr>	
	</tbody>
</table>

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

---
### Returns
**# of records modified** `Integer`<br />

---
### Example
```python
userAssetRoleInfo = {'roleId': 1, 'assetId': 3, 'userId': 6}
userId = 123
recordsModified = system.kanoa.security.addUserAssetRole(userAssetRoleInfo, userId)
```
