How can i get an impersonated resourceResolver by user id under AEM 6.1. | Community
Skip to main content
olegd52630483
New Participant
November 12, 2015
Solved

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

  • November 12, 2015
  • 4 replies
  • 2011 views
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!!!!!!!!!!!!!!!!!!!!!!

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
In AEM 6.1  you need system user. A non System user does not work.     

4 replies

smacdonald2008
smacdonald2008Accepted solution
New Participant
November 12, 2015
In AEM 6.1  you need system user. A non System user does not work.     
smacdonald2008
New Participant
November 12, 2015
  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.
olegd52630483
New Participant
November 12, 2015
"Using the Java Query Object Model within Adobe Experience Manager" ?

What 'Query Object Model' to do with it?

smacdonald2008
New Participant
November 12, 2015

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