I'm facing following issue:
In one of my content project exists the file "filter.xml". It contains following entries:
<?xml version="1.0" encoding="UTF-8"?>
<workspaceFilter version="1.0">
<filter root="/content/sites/de/produktpartner/a/rep:policy" mode="merge" />
...
<filter root="/content/sites/de/produktpartner/z/rep:policy" mode="merge" />
</workspaceFilter>
My question is: To limit the entries in filter.xml can I use wildcards? If so, how? I tried
<filter root="/content/sites/de/produktpartner/*/rep:policy" mode="merge" />
but it seemed not work.
The root must be a path but you can further specify filters that allow regular expressions.
<filter root="/content/sites" mode="merge" />
<include pattern="/content/sites/[a-z]{2}/produktpartner/(.*)/rep:policy"/>
</filter>
However, managing permissions using CRX packages can be very cumbersome. Check out AEM Permission Management It's a tool that supports a permission management DSL that makes the whole ordeal a lot easier. I work for the company that developed it and we use it on the vast majority of our projects. The Access Control Tool for Adobe Experience Manager is another option that has worked for me in the past.