Skip to main content

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


Returns

userId Integer: Id of user executing the function


Example

userId = system.kanoa.security.storeNewIDPUser(auth)