user mapper service amendment | Adobe Higher Education
Skip to main content
AdobeID24
Level 5
September 1, 2019
Besvarat

user mapper service amendment

  • September 1, 2019
  • 11 svar
  • 4684 visningar

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.

Det här ämnet har stängts för svar.
Bästa svar av user05162

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 svar

arunpatidar
Community Advisor
Community Advisor
September 7, 2019

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

Arun Patidar