Error while reading DAM

Accepted Solutions (1)

Accepted Solutions (1)

Nikhil-Kumar

MVP

25-08-2020

@lk08 

Try reading it using service user. 
You can create a systme user by going to /crx/exlporer and then later assign the read/write permissions in /useradmin

Nikhil_Kumar_AEM_0-1598344990391.png

 


Once you are done creating the user, try the resolverFactory code to get the resource resolver and then resource out of it.

Map<String, Object> param = new HashMap<>();
param.put(ResourceResolverFactory.SUBSERVICE, "serviceUser");
ResourceResolver resourceResolver = resolverFactory.getServiceResourceResolver(param);

Happy Coding!!


Thanks,
Nikhil


Answers (0)