As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
AuthenticationUtils.startSession("admin", "admin"); NewUserDetails newUser = new NewUserDetails(uname, pass, createPersonProperties(homespace, firstName, lastName, email, orgId)); AdministrationServiceSoapBindingStub administrationService = WebServiceFactory.getAdministrationService(); userDetails = administrationService.createUsers(new NewUserDetails[]{newUser}); private NamedValue[] createPersonProperties(String homeFolder, String firstName, String lastName, String email, String orgId){ return new NamedValue[] { new NamedValue(Constants.PROP_USER_HOMEFOLDER, Boolean.FALSE, homeFolder, null), new NamedValue(Constants.PROP_USER_FIRSTNAME, Boolean.FALSE, firstName, null), new NamedValue(Constants.PROP_USER_LASTNAME, Boolean.FALSE, lastName, null), new NamedValue(Constants.PROP_USER_EMAIL, Boolean.FALSE, email, null), new NamedValue(Constants.PROP_USER_ORGID, Boolean.FALSE, orgId, null) }; }