cancel
Showing results for 
Search instead for 
Did you mean: 

WebScript to create a custom create user

chinitovela
Champ in-the-making
Champ in-the-making
Hi,
I am a bit new to webscripts and currently I am stuck on how to create a "custom create user". I just want to add some details like birthdate, birthplace, country and also for the registering user to be able to upload a picture file for his/her profile. I am wondering if it is possible to customize the "create user wizard" through customizing content models but haven't had any luck on that. And now I'm wondering if there is other way to do this, and if it is possible in webscript? I'd be greateful to any comments and suggestions..
6 REPLIES 6

zaizi
Champ in-the-making
Champ in-the-making
This is discussed on this thread: http://forums.alfresco.com/en/viewtopic.php?f=10&t=1737.

chinitovela
Champ in-the-making
Champ in-the-making
Thanks for your reply! I take a look at it.. Another thing, what will be your advice for creating custom wizard through sdk and how to deploy it in the tomcat server.. do I need ANT builder to build all the classes before deploying? Smiley Happy

zaizi
Champ in-the-making
Champ in-the-making
Download and set up the Alfresco SDK as described here: http://wiki.alfresco.com/wiki/Alfresco_SDK. You can then use the example Custom Wizard to create your own, package and deploy it. Example of customising the create content wizard is available here: http://wiki.alfresco.com/wiki/Customising_The_Create_Content_Wizard.

chinitovela
Champ in-the-making
Champ in-the-making
Is there a certain code that can add a user to a group via webscript?

zaizi
Champ in-the-making
Champ in-the-making
Yes, check out the People API http://wiki.alfresco.com/wiki/JavaScript_API#People_API.

You want something like:
people.addAuthority(groupToAddUserTo, user);

chinitovela
Champ in-the-making
Champ in-the-making
thanks a lot zaizi.. i'll try that.. Smiley Happy