Skip to main content

system.kanoa.security.getIDPUserId(user)

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


Parameters

user Dictionary

- userNameString

Returns

userId Integer Return -1 if user is not found


Example

userId = system.kanoa.security.getIDPUserId({'userName': 'johnDoe'})