Rest Endpoint for User Management in AEM | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
sunil_kumar_
sunil_kumar_Accepted solution
Level 5
Jun 10, 2022 2:06 AM UTC

Hi @akshaybhujbale ,
We don't have api end point for user management. You have to use
1. Curl to create user/groups
2. Back end API to perform user/group related operations. 
3. Use Postman to make rest call to perform user/group operation. 

Use this curl to create user

curl -u admin:admin -FcreateUser=aem-user -FauthorizableId=user-aem -Frep:password=useraem -Fprofile/gender=male -Fprofile/givenName=AEM -Fprofile/familyName=USER http://localhost:4502/libs/granite/security/post/authorizables

Use this curl create group

curl -u admin:admin -FcreateGroup=geeks-group -FauthorizableId=geeksGroup http://localhost:4502/libs/granite/security/post/authorizables

User postman to create rest call to create user
1. create POST request to url - http://localhost:4502/libs/granite/security/post/authorizables
2. Add input to body ie. createUser, authorizableId etc
3. Add Authorization -> Basic Auth -> credentials(aem)

12 replies

sunil_kumar_
sunil_kumar_Accepted solution
Level 5
Jun 10, 2022 2:06 AM UTC

Hi @akshaybhujbale ,
We don't have api end point for user management. You have to use
1. Curl to create user/groups
2. Back end API to perform user/group related operations. 
3. Use Postman to make rest call to perform user/group operation. 

Use this curl to create user

curl -u admin:admin -FcreateUser=aem-user -FauthorizableId=user-aem -Frep:password=useraem -Fprofile/gender=male -Fprofile/givenName=AEM -Fprofile/familyName=USER http://localhost:4502/libs/granite/security/post/authorizables

Use this curl create group

curl -u admin:admin -FcreateGroup=geeks-group -FauthorizableId=geeksGroup http://localhost:4502/libs/granite/security/post/authorizables

User postman to create rest call to create user
1. create POST request to url - http://localhost:4502/libs/granite/security/post/authorizables
2. Add input to body ie. createUser, authorizableId etc
3. Add Authorization -> Basic Auth -> credentials(aem)

Translate
Level 6
Jun 10, 2022 3:42 AM UTC

Hi @sunil_kumar_ 

Thanks 

What is the rest api for getting user and groups data using postman.

Translate
sunil_kumar_
Level 5
Jun 10, 2022 3:57 AM UTC

@akshaybhujbale I don't have handy with me. I have to look. You can try as mention by @arunpatidar in comment.

Translate
Level 3
Jun 9, 2022 8:00 AM UTC

Hi @akshaybhujbale ,

 

Please refer the User Managements section in the curl commands (link shared below), there are bunch of curl commands are provided for these.

Ref: https://experienceleague.adobe.com/docs/experience-manager-64/administering/operations/curl.html?lang=en

 

Please note you need to convert these curl cmds to the get/post call and use it as an APIs.

 

Translate
arunpatidar
New Participant
Jun 9, 2022 7:24 AM UTC

Hi,

There is no rest endpoint in AEM for user management.

You need to create your own using java api

e.g. https://aem.redquark.org/2018/10/day-20-working-with-user-and-groups-in.html 

Translate
Arun Patidar
Himanshu_Jain
New Participant
Jun 9, 2022 6:56 AM UTC
Level 6
Jun 9, 2022 7:00 AM UTC

Hi @himanshu_jain 

 

The link you shared is for adobe audience manager and I am looking for AEM experience manager.

 

Thanks

Translate
Himanshu_Jain
New Participant
Jun 9, 2022 7:10 AM UTC

Check the updated link .

Translate
Himanshu Jain