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.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @Hugh_Shao ,
In AEMaaCS, you have to create the OSGI Configs via code.
For creating service users, use repo init script
Hi @Hugh_Shao ,
In AEMaaCS, you have to create the OSGI Configs via code.
For creating service users, use repo init script
@Kishore_Kumar_
Thanks for you quick response.
I will go to read the docs you shared next and try to use OSGI config instead.
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.
Another helpful video - https://www.youtube.com/watch?v=XQytdJf7GOg
Views
Likes
Replies