Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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.