Service user cannot access resources tagged with CUG policy
Background: I have pages that are tagged with CUG policy to allow read access to the page to the user who belongs to a specific group. The access for the end-user works as expected. However, I would like the service user to have access to all the nodes in JCR tree regardless of if the resource has CUG policy set or not.
I have added the service user to exclude from CUG evalution using following config. However, the service user still does have access to the resources that are tagged with CUG policy (group).
Below is CUG exclude OSGI config that I updated to exclude the service user. (Adding service user principal to the list)
org.apache.jackrabbit.oak.spi.security.authorization.cug.impl.CugExcludeImpl

However, the service user still does not have access to the resources that are tagged with CUG policy. Would appreciate any input, suggestion, recommendation from the AEM experts in the community.
