Replication User Permissions for Pages with Closed User Groups
I’m trying to set up a user on the publish instance to use as the author replication/transport user. It looks like jcr:read, rep:write, jcr:versionManagement on say /content generally work well for replication. However, if the page has Closed User Groups configured, I am running into the following error on the publish instance during replication:
11.08.2026 18:21:57.678 *ERROR* [127.0.0.1 [1786486917674] POST /bin/receive HTTP/1.1] com.day.cq.replication.impl.servlets.ReplicationServlet Error during replication: The tree for /content/wknd/us/en/adventures/riverside-camping-australia/jcr:content does not exist
java.lang.IllegalStateException: The tree for /content/wknd/us/en/adventures/riverside-camping-australia/jcr:content does not exist
at org.apache.jackrabbit.oak.core.MutableTree.beforeWrite(MutableTree.java:354) [org.apache.jackrabbit.oak-core:1.88.0]
at org.apache.jackrabbit.oak.core.MutableTree.setProperty(MutableTree.java:237) [org.apache.jackrabbit.oak-core:1.88.0]
at org.apache.jackrabbit.oak.plugins.tree.TreeUtil.addChild(TreeUtil.java:246) [org.apache.jackrabbit.oak-security-spi:1.88.0]
I am getting this error even if I change the /content permissions to jcr:all.
If I add the replication user to one of those closed user groups, the replication succeeds. I don’t think it’s feasible to add the replication user to all possible closed user groups.