How to replicate config nodes from author to publish programmatically ?
I am trying to replicate config nodes from author to publish instances programmatically. I used the replication service ( replicator.replicate(session, ReplicationActionType.ACTIVATE, nodePath);) ,
but I am getting Error while building replication content com.day.cq.replication.AccessDeniedException: error.
The session is from system user and I gave all the permissions to it, but no luck. Also I tried manual replication from crxde and getting the below error
Agent-user does not have sufficient permission.
However, content activation works. Request to help me in this