How to Auto Create System Users in AEM? | Community
Skip to main content
Peter_Puzanovs
New Participant
November 8, 2016
Solved

How to Auto Create System Users in AEM?

  • November 8, 2016
  • 1 reply
  • 1170 views

Hi,

Since in AEM 6.2 we no longer use geAdminResourceResolver(null); ...
When using getServiceResourceResolver with parameter set for ResourceResolverFactory.SUBSERVICE, it's needed to create system users. 
Normally, we need to create not just one system user, but many system users due to 'proper' security model in place.
What is the best practice here to automate system user creation?

Regards,
Peter

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

There is no API to create a system user - only non-system users. To create non-system users - you can use the AEM User Manager API: 

https://helpx.adobe.com/experience-manager/using/using-jackrabbit-usermanager-apis-6.html

The way to create system users is by following the procedure in this doc: 

https://helpx.adobe.com/experience-manager/using/querying-experience-manager-sling.html

1 reply

smacdonald2008
smacdonald2008Accepted solution
New Participant
November 8, 2016

There is no API to create a system user - only non-system users. To create non-system users - you can use the AEM User Manager API: 

https://helpx.adobe.com/experience-manager/using/using-jackrabbit-usermanager-apis-6.html

The way to create system users is by following the procedure in this doc: 

https://helpx.adobe.com/experience-manager/using/querying-experience-manager-sling.html