I am trying to enable self-registration in communities through sites but it is returning null randomly even when all the 3 values are populated. On the searching web, I found that we need to add forceSSl="True" but even after that it is not working.

1 Answer 1


Apparently, if you do not have a password according to validations in your org it Site.createPortalUser returns null.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .