Yes, self registration by an anonymous user is disabled by default. This self-registration configuration can be changed by navigating to http://localhost:8080/system/console/configMgr and modify the configuration of the "Apache Sling Create User" component.
Or as Robert stated, the admin user can still do the action regardless of the configuration. On Thu, Jul 12, 2018 at 1:42 AM, Robert Munteanu <romb...@apache.org> wrote: > On Thu, 2018-07-12 at 13:53 +0530, Hasini Witharana wrote: > > Hi all, > > > > I tried the below curl command to create a user. > > > > curl -F:name=myuser -Fpwd=password -FpwdConfirm=password > > -Fanyproperty1=value1 \ > > http://localhost:8080/system/userManager/user.create.html > > > > I got an error saying "javax.jcr.RepositoryException: Sorry, > > registration > > of new users is not currently enabled. Please try again later". How > > can I > > enable registering new users? > > Have you tried setting credentials to admin/admin? E.g. > > $ curl --user admin:admin .... > > Robert >