Skip to main content
Version: v4.6

IafUser

create#

Creates a new User class object.

ParameterRequiredTypeDescription
userDataYesUserPass a User object that contains the properties you want to define the user.
ctxNoCtxctx - Context, such as namespaces and authentication token information.
Returns

User - The created User object

Examples
// Create a new userconst userData = {  _firstname: "First Name",  _lastname: "Last Name",  _email: "[email protected]",  _password: "Test@123"};
const user = await IafUser.create(userData, ctx);