AEM as a cloud System user | Community
Skip to main content
Prince_Shivhare
Community Advisor
Community Advisor
May 19, 2021
Solved

AEM as a cloud System user

  • May 19, 2021
  • 1 reply
  • 2521 views

Hi All,\

We are facing an issue in the dev environment, where repoint script is not working.

We have productfeed folder created inside /etc, now the scheduler has been created to save in this path.

but it is not working in dev environment.

I have added a configuration-

org.apache.sling.jcr.repoinit.RepositoryInitializer-project.config

 

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
"
]

 Thanks,
Prince

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Asutosh_Jena_

Hi @prince_shivhare 

 

Can you add the below to org.apache.sling.jcr.repoinit.RepositoryInitializer-myproject.config and try?

 

scripts=["
create service user systemuser

set ACL on /etc/myfolder
allow jcr:read for systemuser
allow jcr:write for systemuser
end
"]

 

Thanks!

1 reply

Asutosh_Jena_
Community Advisor
Asutosh_Jena_Community AdvisorAccepted solution
Community Advisor
May 19, 2021

Hi @prince_shivhare 

 

Can you add the below to org.apache.sling.jcr.repoinit.RepositoryInitializer-myproject.config and try?

 

scripts=["
create service user systemuser

set ACL on /etc/myfolder
allow jcr:read for systemuser
allow jcr:write for systemuser
end
"]

 

Thanks!

Level 3
May 2, 2022

Hi @prince_shivhare , @asutosh_jena_  

kindly help me on the below.

configuration:

create service user testsystemuser
set ACL on /apps,/var,/content
allow jcr:all for testsystemuser
end

 

but getting the below error while hitting my class. But can able to see the permissions & config. PFB screenshot.

Note: I'm doing this configuration to deploy it to higher environments.

org.apache.sling.api.resource.LoginException: Cannot derive user name for bundle com.test.core [572] and sub service testsystemuser