Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

How can i get an impersonated resourceResolver by user id under AEM 6.1.

Avatar

Level 3
Map<String, Object> resolverImpersonationConfig = new HashMap<String, Object>(0);resolverImpersonationConfig.put(ResourceResolverFactory.USER_IMPERSONATION, userId);return resourceResolverFactory.getServiceResourceResolver(resolverImpersonationConfig);

This does not work under AEM 6.1!!!!!!!!!!!!!!!!!!!!!!

1 Accepted Solution

Avatar

Correct answer by
Level 10
In AEM 6.1  you need system user. A non System user does not work.     

View solution in original post

4 Replies

Avatar

Level 3
"Using the Java Query Object Model within Adobe Experience Manager" ?

What 'Query Object Model' to do with it?

Avatar

Level 10
  It's an example of why I need a JCR session. The important thing to note is how to successfully create an AEM JCR session using a system user in AEM 6.1.

Avatar

Correct answer by
Level 10
In AEM 6.1  you need system user. A non System user does not work.