AEM Cloud: How to transfer service user mapper amendement from local to dev,stage and prod? | Community
Skip to main content
New Participant
December 28, 2021
Solved

AEM Cloud: How to transfer service user mapper amendement from local to dev,stage and prod?

  • December 28, 2021
  • 1 reply
  • 2046 views

Hi all,

Does anyone know how to transfer service user mapper amendement (Apache Sling Service User Mapper Service Amendment) from local to dev,stage and prod?

I am working on AEM as a cloud service and following the article below to add custom code into AEM cloud.
https://medium.com/tech-learnings/adobe-experience-manager-reporting-on-users-last-login-date-e2035021cb9e

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Kishore_Kumar_
Kishore_Kumar_Accepted solution
New Participant
December 28, 2021
HuiDeShaoAuthor
New Participant
December 28, 2021

@kishore_kumar_ 
Thanks for you quick response. 😉
I will go to read the docs you shared next and try to use OSGI config instead.

HuiDeShaoAuthor
New Participant
December 30, 2021

After trying many times, the following changes work for me.

Project
    ui.config

Config file name
org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amended~CustomService.cfg.json

FYI. file name format is important.

Cfg content
{
    "user.mapping":[
        "<bundle symbolic name>:custom-user-manager=[custom-user-manager]"
    ]
}

FYI. bundle symbolic name and square brackets are important.