HTTP API

As mentioned, Adobe provides APIs for accessing user data, to facilitate automation. There are several types of APIs which you can use:

UserProperties API

curl -u user:password http://localhost:4502/libs/granite/security/search/profile.userproperties.json\?authId\=cavery

Sling API

Discovering the user home:

curl -g -u user:password 'http://localhost:4502/libs/granite/security/search/authorizables.json?query={"condition":[{"named":"cavery"}]}'
     {"authorizables":[{"type":"user","authorizableId_xss":"cavery","authorizableId":"cavery","name_xss":"Carlene Avery","name":"Carlene Avery","home":"/home/users/we-retail/DSCP-athB1NYLBXvdTuN"}],"total":1}

Retrieving user data

Using the node path from the home property of the JSON payload returned from the above command:

curl -u user:password  'http://localhost:4502/home/users/we-retail/DSCP-athB1NYLBXvdTuN/profile.-1.json'
curl -u user:password  'http://localhost:4502/home/users/we-retail/DSCP-athB1NYLBXvdTuN/profiles.-1.json'

Disabling a User and Deleting the Associated Profiles

Disable User

  1. Open the User Administration console and search for the user in question, as described above.

  2. Hover over the user and click the select icon. The profile turns gray indicating that it is selected.

  3. Press the Disable button in the upper menu to disable the user:

    userdisable

  4. Finally, confirm the action:

    image2018-2-6_1-40-58

    The user interface indicates that the user is deactivated by graying out and adding a lock to the profile card:

    disableduser