On 2 Jul 2009, at 07:10, Aaron Zeckoski wrote:
Is there some documentation related to creating groups and assigning
users to them anywhere? I am able to create users and (I think) create
groups but I cannot seem to get any users to be members of my groups.
Is this documented anywhere?
Here is roughly what I am trying for example:
Create a user:
curl -u admin:admin -F:name=aaron -Fpwd=aaron -FpwdConfirm=aaron
http://localhost:8080/system/userManager/user.create.html
Can see the user here:
http://localhost:8080/system/userManager/user/aaron.json
Create a group:
curl -u admin:admin -F:name=g-group1
http://localhost:8080/system/userManager/group.create.html
Can see the group here (no members yet):
http://localhost:8080/system/userManager/group/g-group1.json
Assign the user to the group:
curl -u admin:admin -F:members=aaron
http://localhost:8080/system/userManager/g-group1.update.html
should be
-F:members=../../users/aaron
see
https://issues.apache.org/jira/browse/SLING-1016
Our code probably doesn't bind to SNAPSHOT in this area, will need to
check/sync
Documentation: Unofficial from a Sling point of view [1]
Ian
[1]
http://confluence.sakaiproject.org/display/KERNDOC/412+-+Group+Membership+REST+services
(this returns no errors but when I check the group it has no members -
it is an empty json array)
http://localhost:8080/system/userManager/group/g-group1.json
Tips and RTFMs with links equally appreciated.
:-)
-AZ
--
Aaron Zeckoski (azeckoski (at) vt.edu)
Senior Research Engineer - CARET - University of Cambridge
https://twitter.com/azeckoski - http://www.linkedin.com/in/azeckoski
http://aaronz-sakai.blogspot.com/ - http://tinyurl.com/azprofile