Hi yanjie, Changing the members of a group can be done while creating the group or while updating it via the updateAuthorizable operation by submitting one or more form fields using the special name ":member" (to add a member) or ":mem...@delete" to remove a member. The value of the ":member" field should resolve to the path to the user or group resource you want to add (or remove) as a member.
There is a sample of how the html form would look in the 'samples.html.esp' file that is attached to SLING-875 Hope that helps! -Eric On Sun, Mar 1, 2009 at 10:15 PM, yanjie <yanshaozhi...@gmail.com> wrote: > HI : > I think it's great add the user manage function ,however, > how can I add a member or remove member for a group? > > thanks! > > > 2009-03-02 > > > > yanjie > > > > 发件人: Eric Norman (JIRA) > 发送时间: 2009-03-02 13:05:37 > 收件人: sling-dev > 抄送: > 主题: [jira] Updated: (SLING-875) New Bundle for a ResourceProvider andSling > Post Operations for interacting with the jackrabbit UserManager > > [ > https://issues.apache.org/jira/browse/SLING-875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel] > Eric Norman updated SLING-875: > ------------------------------ > Attachment: usermanager_as_servlets.zip > > New Bundle for a ResourceProvider and Sling Post Operations for > interacting with the jackrabbit UserManager > > > ----------------------------------------------------------------------------------------------------------- > > > > Key: SLING-875 > > URL: https://issues.apache.org/jira/browse/SLING-875 > > Project: Sling > > Issue Type: New Feature > > Components: Servlets Post > > Reporter: Eric Norman > > Assignee: Felix Meschberger > > Attachments: org.apache.sling.jackrabbit.usermanager.zip, > samples.html.esp, usermanager_as_servlets.zip, > usermanager_integrationtests.zip > > > > > > This is a new bundle that provides a custom ResourceProvider and > SlingPostOperations for interacting with the Jackrabbit UserManager. > > The ResourceProvider exposes users at this path > /system/userManager/user/[userName] and groups at this path > /system/userManager/group/[groupName] > > In order for the custom SlingPostOperations to work, the patch for > SLING-651 must be applied first. > > These custom SlingPostOperations are provided: > > 1. createUser > > 2. createGroup > > 3. changePassword > > 4. updateAuthorizable > > 5. deleteAuthorizable > > Sample usage of the operations is in the samples.html.esp attachment. > -- > This message is automatically generated by JIRA. > - > You can reply to this email to add a comment to the issue online. >