Add a New User to an Existing Organization

The code snippet given below allows registering a user to an existing orginization without creating a new organization.

Note: LastName, EmailId and Zaaidare mandatory attributes.
    
Package Imports
copy
import com.zc.component.users.PlatformType; import com.zc.component.users.ZCSignUpData; import com.zc.component.users.ZCUser;
    
copy
//Get an instance of the ZCSingUpData object  ZCSignUpData signUpdetails = ZCSignUpData.getInstance(); //Set the necessary data for signing up signUpdetails.setPlatformType(PlatformType.WEB); signUpdetails.userDetail.setEmailId("amelia.burrows@zylker.com"); signUpdetails.userDetail.setLastName("Amelia"); signUpdetails.userDetail.setZaaid(""); //Register the user using signUpdetails signUpdetails = ZCUser.getInstance().addUser(signUpdetails);