# system.kanoa.security.updateUser(userInfo, userId)

Updates a user with the provided information

---
### Parameters
**userInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - email</td><td>String</td><td></td></tr>	
 	<tr><td> - firstName</td><td>String</td><td></td></tr>	
 	<tr><td> - gatewayAdmin</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - lastName</td><td>String</td><td></td></tr>	
 	<tr><td> - password</td><td>String</td><td></td></tr>	
 	<tr><td> - userId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - userName</td><td>String</td><td></td></tr>	
 	<tr><td> - userSource</td><td>String</td><td>The name of the user source i.e. 'default', 'AD/Internal'</td></tr>	
	</tbody>
</table>

**userId** `Integer`: )<br />

---
### Returns
**# of records modified** `Integer`<br />
**msg** `String` None if success<br />

---
### Example
```python
userInfo = {'userId': 12, 'userName': 'JohnDoe', 'firstName': 'John', 'lastName': 'Doe', 'email': 'johndoe@gmail.com', 'usersource': 'default', 'gatewayAdmin': False, 'password': 'password'}
retVal, msg = system.kanoa.security.updateUser(userInfo, 123)
```
