Expand my Community achievements bar.

SOLVED

How to Auto Create System Users in AEM?

Avatar

Community Advisor

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

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