cancel
Showing results for 
Search instead for 
Did you mean: 

Create Users on Bootstrap in Alfresco

hardik_t_mistry
Champ in-the-making
Champ in-the-making
I have a requirement where a custom module is installed in Alfresco, some default users required for module should be created automatically. I am trying to create an user via site import on bootsrap through applying a patch [Same as Sample Website Project site is created when you install Alfresco].

Site is getting successfully created and user is also getting created successfully but only issue is user is Disabled by default. Also I am not able to enable user form Share as Disable Account checkbox is disabled
2 REPLIES 2

kaynezhang
World-Class Innovator
World-Class Innovator
You can now enable user account by calling webscript api
 PUT http://localhost:8080/alfresco/service/api/people/{userName}
through curl or writting a programme .
And you 'd better update your user bootsrap xml file(set usr:enable property to true) in your amp in case installing the amp again.

cstrom
Champ in-the-making
Champ in-the-making
It sounds like you have not setup user bootstrap correctly. You need to bootstp data into alfrescoUserStore as well.