Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
SOLVED

Rest Endpoint for User Management in AEM

Avatar

Level 7

Hi 

Which is the rest api endpoint for user/group management in AEM.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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)
curl-postman.png

View solution in original post

3 Replies

Avatar

Level 7

Hi @HImanshu_Jain_ 

 

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

 

Thanks

Avatar

Level 4

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?lan...

 

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

 

Avatar

Correct answer by
Community Advisor

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)
curl-postman.png

Avatar

Community Advisor

@akshaybhujbale

Unfortunately, there no such rest api available. To get required users’ information, you can write servlet and get required information.