# system.kanoa.security.getIDPUserId(user)

Returns the userId for the given user authentication object. This can be the session authentication property.

---
### Parameters
**user** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - userName</td><td>String</td><td></td></tr>	
	</tbody>
</table>

---
### Returns
**userId** `Integer` Return -1 if user is not found<br />

---
### Example
```python
userId = system.kanoa.security.getIDPUserId({'userName': 'johnDoe'})
```
