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)

  • Returns:
  • retVal (int): # of records modified
  • msg (string): None if success
  • Dictionary

    ParameterTypeRequiredNotes
    userIdint
    userNamestring
    firstNamestring
    lastNamestring
    emailstring
    userSourcestring
    gatewayAdminbool
    passwordstring

    Code Examples

    # Example Usage:
    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)