AEM: Merging 'rep:policy' permission files from configuration

If you want to merge existing permissions with new configuration you can by doing the following:

<acHandling>merge_preserve</acHandling> is necessary to keep you older policy.


A _rep.policy.xml file, in this case I am granting the 'service-user' all rights:

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="" xmlns:rep="internal"

A filter rule in your filer.xml (inside META-INF):

<filter root="/rep:policy"/>

This should be enough to merge your new permissions with already existing ones. If you do have any questions, do not hesitate to contact me or leave a comment below.