# system.kanoa.security.storeNewIDPUser(auth)

Whenever a new user logs in and is authenticated by the iDP, a new record is created in the sec.user table that is the primary key in all changedBy and createdBy records.

---
### Parameters
**auth** `pyObject`: session authentication object<br />

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

---
### Example
```python
userId = system.kanoa.security.storeNewIDPUser(auth)
```
