Update anonymous user permissions on AEM as a Cloud Service
Hi folks,
I need to give jcr:read access on certain nodes in /apps directory to anonymous user on AEM publish instance.
In AEM as a Cloud Service, I don't have the permissions to access user management console and unable to give permissions manually.
I tried repoinit to grant the permissions.
set ACL on /apps
allow jcr:read for anonymous
end
However, the code pipeline gives error during deployment as below.
DD.MM.YYYY 04:00:04.307 *ERROR* [Apache Sling Repository Startup Thread #1] com.adobe.granite.repository.impl.SlingRepositoryManager Exception in a SlingRepositoryInitializer, SlingRepository service registration aborted
java.lang.RuntimeException: Failed to set ACL (javax.jcr.PathNotFoundException: Cannot set ACL on non-existent path /apps) AclLine ALLOW {principals=[anonymous], privileges=[jcr:read]}
Can you please suggest a resolution for this?
Note - I am able to give these permissions on my local which fixes the actual issue we are facing.
Regards,
Anubhav