system.kanoa.security.getIDPUserId(user)
Returns the userId for the given user authentication object. This can be the session authentication property.
Parameters
user Dictionary
| - userName | String | 
Returns
userId Integer Return -1 if user is not found
Example
userId = system.kanoa.security.getIDPUserId({'userName': 'johnDoe'})