Hi,
Tried adding a new mapper for service user in already existing file but it is not reflecting in console.
org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amended-torrid :
Any help regarding the issue would be appreciated.
Thanks,
Nandan
Solved! Go to Solution.
Views
Replies
Total Likes
Can you please try doing in below sample example
user.mapping=["xyz-aem.core:writeService\=content-writer-service","org.apache.sling.models.impl:writeService\=content-writer-service"]
file name: com.xyz.aem.core.workflows.SendEmailComplianceWorkflow.config
Can you please try doing in below sample example
user.mapping=["xyz-aem.core:writeService\=content-writer-service","org.apache.sling.models.impl:writeService\=content-writer-service"]
file name: com.xyz.aem.core.workflows.SendEmailComplianceWorkflow.config
Can you please try following?
- Delete the config from OSGi console.
- See if an updated configuration is visible now.
The OSGi configurations can be picked up from various locations in the repository. https://experienceleague.adobe.com/docs/experience-manager-65/deploying/configuring/configuring-osgi...
Maybe you have a similar config in some other path which is taking preference over the one you are expecting.
Osgi configurations will apply based on the run mode configurations, You can check if there is any run mode configurations available.
for example,
if the configuration placed under the config.author with torrid-serviceuser and config.publish with amplience-serviceuser ,
in author it will be set to torrid-serviceuser and publisher it will set to amplience-serviceuser.
So check the run mode configurations as well once.
Views
Replies
Total Likes
I created a file org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amended-torrid.config in my codebase with:
# Configuration created by Apache Sling JCR Installer
service.ranking=I"0"
user.mapping=["com.torrid.aem.torrid-dynamicmedia.core:TorridService\=torrid-service-user","com.torrid.aem.torrid-dynamicmedia.core:amplienceserviceuser\=amplience-service-user"]
Deployed this and the new configuration was reflecting on console.
Thank you everyone for your help.
Views
Replies
Total Likes
Views
Likes
Replies