Expand my Community achievements bar.

SOLVED

SystemUser issue

Avatar

Level 5

Hi Team,

I have created a systemUser and add the same into user mapper configuration

user mapper configuration:

com.adobe.aem.guides.aem-guides-wknd.core:systemUser=systemUser

Code:

and getting the same via param.put(ResourceResolverFactory.SUBSERVICE,"systemUser");

log.info("userid"+resource.getUserID());

Its working fine for some java class but not for all . its giving anonymous user message .. am i missing anything here?

Please note that the systemUser has all the relevant permission .

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
1 Reply

Avatar

Correct answer by
Community Advisor

resolution is given in system user.