userinfo.setPassword(RandomStringUtils.randomAlphanumeric(6));
SocialWorkspace sw = toSocialWorkspace(navigationContext.getCurrentDocument());
if (isInvitationPossible(sw, userinfo)) {
boolean autoAccept = !(StringUtils.isBlank(multipleEmails)
&& sw.mustApproveSubscription());
userRegistrationService.submitRegistrationRequest(
configurationName, userinfo, docinfo,
getAdditionalsParameters(), EMAIL, autoAccept, documentManager.getPrincipal().getName());