Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

AEM as a cloud System user

Avatar

Community Advisor

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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!

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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!

Avatar

Level 4

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

Lakshmi9_1-1651474136661.png

 

 

Lakshmi9_0-1651474077697.png