cancel
Showing results for 
Search instead for 
Did you mean: 

Way to list users contained in group

igor_shaldev
Champ in-the-making
Champ in-the-making
Hello,
Is there a way to list users contained in a group using Java. I have a group name, and I need to list it's users. I tried authority service, but it lists groups that contain the user.  Smiley Sad

thanks
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
The AuthorityService is the place to look, it sounds like you are calling the wrong thing,  you need the getContainedAuthorities method.

Which version of Alfresco are you using since there's been a lot more added to the Authority Service over the last couple of releases.

igor_shaldev
Champ in-the-making
Champ in-the-making
Sorry for the late reply, I've been out of town recently
I'm using Alfresco version 3.0.0 (Stable 1526). I tried getContainingAuthorities method. I will try the getContainedAuthorities method now.

thanks

igor_shaldev
Champ in-the-making
Champ in-the-making
It works thanks mrogers Smiley Happy