cancel
Showing results for 
Search instead for 
Did you mean: 

Create group via webservices

rguinko
Champ in-the-making
Champ in-the-making
Hello,
I am new on Alfresco. I would like to perform a webservice that will create a group in Alfresco. Is someone has any idea? I know how to create an user (by using administrationService class) but not a group.

Thank you for your help! Smiley Happy
2 REPLIES 2

rivetlogic
Champ on-the-rise
Champ on-the-rise
Alfresco is moving towards Webscript. If you want to use webservice to manage groups  the best solution is to write custom actions and call them.

              //Create the action
          Action action1 = new Action();
          action1.setActionName("groupAdministration");
               action1.setParameters(properties);
              ActionExecutionResult[] results = actionService.executeActions(predicate, new Action[]{action1});

As properties you could pass group name, members , action type ("delete", "create" , etc) and perform appropriate actions in your custom action.

http://wiki.alfresco.com/wiki/Custom_Actions

http://wiki.alfresco.com/wiki/Returning_Values_From_Actions


Best Regards,
Shagul

peedamuos
Champ in-the-making
Champ in-the-making
Hi,

Can someone provide a full working sample for importing groups?

One interesting thing that I found is that you can actually use the ACL/ACE functionality provided with the AccessControlWebService to associate a non existent GROUP (I tried GROUP_Sales) to a Folder but when you log in the next time around you get a reference error 🙂
-Can some one tell me if this is a bug in the AccessControlWebService?

-Peedamuos