cancel
Showing results for 
Search instead for 
Did you mean: 

Listing User Group

mahkath
Champ in-the-making
Champ in-the-making
Hi,

I'm using Java Webservice to contact Alfresco from my application.

My application uses Alfresco authentication for login to my application.

Is there any way to retrive user group details using Webservice API, so that I can identify whether user belongs to MYGROUP or not?

Please help me it is very urgent.

Regards,
Mahesh
3 REPLIES 3

cheffilet
Champ in-the-making
Champ in-the-making
Of course, yes its possible.

I guess, easiest/fast way to solve you problem is to take usage of WebSccript-API of Alfresco and Java Webservices. Create a webscript that obains you user as a RESTParameter and search with the help of authorityService for users:


getAuthorityService().getAuthoritiesForUser("user");

This could be marshalled as XML (for instance) and turned back to your application.

luca
Star Contributor
Star Contributor
Hi all,
I have quite the same problem, I want to create groups using Web Service.

Can you explain me or tell me where to find information on how I can call a Web Script using Web Service?

I found that I can call an action in this way:
WebServiceFactory.getActionService().executeActions(predicate, new Action[]{userGroupsAction});

But I miss the connection between Web Script and Action.

sucheta
Champ in-the-making
Champ in-the-making
you can use "Access Control Web Service Enhancements" to retrieve list of groups
following link will give you more details
http://wiki.alfresco.com/wiki/Access_Control_Web_Service_Future_Enhancements