Composing ACLs to restrict editing of Adaptive Form Fragments
We are using Adaptive Forms and want to restrict fragment editing to a sub-set of users. We currently have just the OOTB forms-related user groups, i.e., forms-users, forms-super-users, forms-script-writers and so on, and I created a new group who should have the fragment edit permissions. I created an OSGI configuration repoinit script like below as a first pass, but it's still too permissive - a user that's a member of forms-users can still edit fragments found under that path. Ideally, what I want in plain English is for members of any of the other user groups to only be able to read fragments and pull them into forms, but not edit them. Only members of the fragment-editors group should be able to edit the fragments.
{
"scripts": [
"set ACL on /content/dam/formsanddocuments/<project>/<fragments_root>\n remove * for forms-users\n allow jcr:read for forms-users\n allow jcr:write,jcr:read for fragment-editors\nend",
"set ACL on /content/forms/af/<project>/<fragments_root>\n remove * for forms-users\n allow jcr:read for forms-users\n allow jcr:write,jcr:read for fragment-editors\nend"
]
}
Resources consulted:
User, Groups, and Access Rights Administration
This seems like a fairly simple issue but ACLs are always tricky to get right!