Skip to main content

system.kanoa.security.updateUser

Description

Updates a user with the provided information.

Syntax

addUser(userInfo, userId)
  • Parameters
      userInfo (dict)
      - userId (int)
      - userName (string)
      - firstName (string)
      - lastName (string)
      - email (string)
      - userSource (string)
      - gatewayAdmin (bool)
      - password (string)
      userId (int)
  • Returns
      retVal (int): # of records modified
      msg (string): None if success
  • Code Example

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