System User AEM Cloud
Hi,
I am trying to create a system user on AEM Cloud, but the url where the system users are created is not available on Cloud. How can I create or at least export/import a system user on Cloud? Thanks!
Hi,
I am trying to create a system user on AEM Cloud, but the url where the system users are created is not available on Cloud. How can I create or at least export/import a system user on Cloud? Thanks!
Hi @ad-engineer
You can create a system user using RepositoryInitializer configuration which is available in AEM as Cloud.
It will automatically create the system user with appropriate level of permision as mentioned in the script/config which can be added as an OSGi config.
Create an OSGi config with:
org.apache.sling.jcr.repoinit.RepositoryInitializer-project.config and add the below code where "systemuser" is the name of the user and /etc is the path with level of access.
scripts=[
"
create service user systemuser
set ACL for systemuser
allow jcr:read on /etc restriction(rep:glob,/productfeed)
allow jcr:write on /etc restriction(rep:glob,/productfeed)
end
"
]
Please see my answer here as well:
More information available here:
https://sling.apache.org/documentation/bundles/repository-initialization.html
Thanks!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.