AEM Cloud: How to transfer service user mapper amendement from local to dev,stage and prod? | Community
Skip to main content
Level 4
Dec 28, 2021 7:00 AM UTC
Solved

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

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.

4 replies

Kishore_Kumar_
Kishore_Kumar_Accepted solution
Level 9
Dec 28, 2021 7:24 AM UTC
HuiDeShaoAuthor
Level 4
Dec 28, 2021 7:46 AM UTC

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

Translate
HuiDeShaoAuthor
Level 4
Dec 30, 2021 12:59 PM UTC

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.

Translate