Skip to main content

system.kanoa.security.updateUser(userInfo, userId)

Updates a user with the provided information


Parameters

userInfo Dictionary

- emailString
- firstNameString
- gatewayAdminBoolean
- lastNameString
- passwordString
- userIdInteger
- userNameString
- userSourceStringThe name of the user source i.e. 'default', 'AD/Internal'

userId Integer: )


Returns

# of records modified Integer
msg String None if success


Example

userInfo = {'userId': 12, 'userName': 'JohnDoe', 'firstName': 'John', 'lastName': 'Doe', 'email': 'johndoe@gmail.com', 'usersource': 'default', 'gatewayAdmin': False, 'password': 'password'}
retVal, msg = system.kanoa.security.updateUser(userInfo, 123)