Skip to main content
AdobeID24
Level 5
Sep 1, 2019 2:38 PM UTC
Solved

user mapper service amendment

apache sling service user mapper service amendment ---> I have provided the details in service mapping ....and saved it.. where we can see our newly created or added configuration ?

I am adding but I its nt getting saved ...

I have given all permission to newly created system user.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
user05162Accepted solution
Adobe Employee
Sep 2, 2019 11:19 PM UTC

Any changes/additions of configurations from the web console will be saved under /apps/system/config

So, for your case,  service user mapping should be saved under:/apps/system/config/org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl*******

Attaching a screenshot for reference below where I tried to create a test config:

11 replies

arunpatidar
Community Advisor
Community Advisor
Sep 7, 2019 5:21 PM UTC

Because the second method is the correct method which allows you to get sub-service session

Sling offers a Service User Mapping service, which allows configuring a bundle-to-user mapping and two corresponding API methods: SlingRepository.loginService() and ResourceResolverFactory.getServiceResourceResolver() which return a session/resource resolver with the privileges of a configured user only.

Service Users in AEM

Translate
Arun Patidar