Leiste mit Community-Erfolgen erweitern.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.

GELÖST

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 Akzeptierte Lösung

Avatar

Korrekte Antwort von
Level 10
In AEM 6.1  you need system user. A non System user does not work.     

Lösung in ursprünglichem Beitrag anzeigen

4 Antworten

Avatar

Level 10

For AEM 6.1, you need to use a System user. See this article to learn how:

http://scottsdigitalcommunity.blogspot.ca/2015/11/using-java-query-object-model-within.html

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

Korrekte Antwort von
Level 10
In AEM 6.1  you need system user. A non System user does not work.