Skip to main content

system.kanoa.security.addUser

Description

Creates a new user with the provided information.

Syntax

addUser(paramsDict, userId)
  • Parameters
      paramsDict (dict)
      - userName (string)
      - firstName (string)
      - lastName (string)
      - email (string)
      - userSource (string)
      - gatewayAdmin (bool)
      - password (string)
      userId (int)
  • Returns
      userId (int)
      msg (string): None if success
  • Code Example

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