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?

Hugh_Shao
Level 3
Level 3

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
kishorekumar14
Correct answer by
Level 10
Level 10
4 Replies
kishorekumar14
Correct answer by
Level 10
Level 10
Hugh_Shao
Level 3
Level 3

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

Hugh_Shao
Level 3
Level 3

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.