long[] groupIds = new long[] {};
long[] organizationIds = new long[] {};
long[] roleIds = new long[] {};
long[] userGroupIds = new long[] {};
ServiceContext serviceContext = new ServiceContext();
// Add the user to the Liferay database (create an account).
User user = UserLocalServiceUtil.addUser(creatorUserId, companyId, autoPassword, password1, password2,
autoScreenName, screenName, emailAddress, facebookId, openId, locale, firstName, middleName, lastName,
prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear, jobTitle, groupIds, organizationIds,