cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 2.0 - How to create a new user

sergio
Champ in-the-making
Champ in-the-making
Hi,

when creating users with ws APIs, this task can be performed calling the AdministrationService.createUsers() method.

How can I perform the same task using the core APIs? Should I use the PersonService? Is it enough? I suppose not.

Many thanks.

Sergio
2 REPLIES 2

kevinr
Star Contributor
Star Contributor
personService.createPerson() is the core API method to create a Person. You should ensure you setup the appropriate properties and the user home space property.

An example of the code to do this can be found in org.alfresco.web.bean.wizard.NewUserWizard in the finish() method.

Thanks,

Kevin

sergio
Champ in-the-making
Champ in-the-making
Many thanks to you Kevin.

All the best,

Sergio