Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Alfresco - Update Permissions on Node
var nodes = search.luceneSearch('@hpi\\:trac:"HR"');
logger.log("Document Count: " + nodes.length);
for each(var node in nodes) {
node.setPermission("Read", "GROUP_HR");
node.setPermission("Read", "GROUP_HPI_CONSUMERS");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.