Hi all,

I've got an issue in listing the members added to a group using the
userManager service.
I've followed the instructions shown in
http://sling.apache.org/site/managing-users-and-groups-jackrabbitusermanager.html.
As per my understanding to get the list of the members of one group I just
need to call "curl
http://localhost:8080/sling/system/userManager/group/newGroup.tidy.1.json<http://localhost:8080/system/userManager/group/administrators.tidy.1.json>",
but what I get in the reply is just an empty JSON object (i.e. "{}").

Let me describe you all the steps:

First I created a new user: curl -F:name=newUser -Fpwd=password
-FpwdConfirm=password
http://localhost:8080/sling/system/userManager/user.create.html<http://localhost:8080/system/userManager/user.create.html>
Then I created a new group: curl -F:name=newGroup
http://localhost:8080/sling/system/userManager/group.create.html<http://localhost:8080/system/userManager/group.create.html>
 Finally I added the "newUser" user to the just created group: curl -F
":member=/system/userManager/user/newUser"
http://localhost:8080/sling/system/userManager/group/newGroup.update.html<http://localhost:8080/system/userManager/group/mygroup.update.html>

All the above requests returned successfully, but when I try to retrieve the
list of the members of the "newGroup" group (as mentioned above) I just got
an empty object.
Is this the correct way to list the group members: curl
http://localhost:8080/sling/system/userManager/group/newGroup.tidy.1.json<http://localhost:8080/system/userManager/group/administrators.tidy.1.json>?
Am I missing something in the modification of the group?

Thanks in advance,

Davide

Reply via email to