I know I can give permissions in
${host}:4502/useradmin
when I double click user login and go to Permissions
tab
I want to give permissions when I deploy content package.
Is it possible?
I know I can give permissions in
${host}:4502/useradmin
when I double click user login and go to Permissions
tab
I want to give permissions when I deploy content package.
Is it possible?
When you give permission for a user for a particular node/path , it basically stores the permission on the node level below the rep:policy node (allow/deny).
You can refer to ACL packager from ACS Tools for packaging ACLs.
Note : The user who is installing the package needs to have permission to set ACLs
To programmatically set ACLs (as the title of your question says), you might care to check out few Jackrabbit/JCR interfaces/classes .
I added under the folder where I want to configure permissions file with name
with content like this:
and in pom.xml I added following entry:
You can use curl command to set permissions. AEM OOB provide Curl scripts to: 1. Create/Delete groups 2. Create/Delete users 3. Add groups/users in groups 4. Add permissions in group
one example of assigning permissions using curl is:
This can be automated using a script easily (bat file or a shell script or some java program).