Skip to main content

system.kanoa.security.addUser

Syntax

addUser(paramsDict, userId)

Parameters:
  • paramsDict (dictionary): Dictionary containing user details.
  • userId (int): ID of the user performing the operation.

  • Returns:
  • userId (int): ID of the newly created user.
  • msg (string): None if success.
  • Dictionary

    ParameterTypeRequiredNotes
    userNamestring
    firstNamestring
    lastNamestring
    emailstring
    userSourcestring
    gatewayAdminbool
    passwordstring

    Code Examples

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