Expand my Community achievements bar.

SOLVED

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

Avatar

Level 4

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-e20350...

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
4 Replies

Avatar

Correct answer by
Community Advisor

Avatar

Level 4

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

Avatar

Level 4

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.