cq5 - How to give user permissions programatically? -
i know can give permissions in
${host}:4502/useradmin
when double click user login , go permissions
tab
i want give permissions when deploy content package.
is possible?
when give permission user particular node/path , stores permission on node level below rep:policy node (allow/deny).
i want give permissions when deploy content package.
- you can deploy aem package containing rep:policies serve same purpose of setting permissions through useradmin.
you can refer acl packager acs tools packaging acls.
note : user installing package needs have permission set acls
to programmatically set acls (as title of question says), might care check out few jackrabbit/jcr interfaces/classes .
org.apache.jackrabbit.api.security.jackrabbitaccesscontrolmanager org.apache.jackrabbit.api.security.jackrabbitaccesscontrollist javax.jcr.security.privilege
Comments
Post a Comment