This seems to be working for me: curl -u admin:admin -F:member=../../user/aaron http://localhost:8080/system/userManager/g-group1.update.html
Nicolaas > Quoting Aaron Zeckoski <[email protected]>: > > 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 > (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 > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
