5 Replies Latest reply on Nov 10, 2011 12:28 PM by G. Walt

    Accessing the user management API programmatically

    Blair Powell

      I am looking for the officially supported method that could be used to access the user management API via "curl" for CRX:

       

      There is a user management API described here:

      http://sling.apache.org/site/managing-users-and-groups-jackrabbitusermanager.html

       

      However, executing a command on CRX 2.2 such as:

      curl -u:admin:admin http://localhost:7402/system/userManager/user.tidy.1.json

       

      Only returns a message indicating that the contents have been redirected (without providing another URL).

       

      Using the Content Explorer in CRX shows the list of users at: /home/users but I am not sure if a curl command could access the user list via that URL.

       

      Any pointers on how this could be done are appreciated.  This is for a partner.

       

      Regards,

      Blair