Skip to main content

system.kanoa.security.addUser

This function requires KanoaCore module

Description

Creates a new user with the provided information.

Syntax

addUser(paramsDict, userId)
  • Parameters
      paramsDict (Dictionary) - User information such as userName, firstName, lastName, email.
      userId (Integer) - User ID.
  • Returns
      userObj (PyObject) - User object.
  • Code Example

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