I'm currently working with the add on devs to try and develop a script that will add a group to all pages using the
addGroupToContentPermission routine.
I've so far set up a db datasource to gather all the page ID's to then pass into the script but I'm getting a rollback error.
Here's my script, I see several people in the reviews for the product talking about managing perms with power scripts, so wondered if anyone had a working one similar to what I'm trying to do
string [] allPages = sql("Confluence Database", "SELECT contentid from content where contenttype = 'PAGE' and content_status = 'current'");
for (string pageId in allPages) {
addGroupToContentPermission("View", pageId, "_confluence-browse-all");
}
Exception while executing SIL program >>null<<: Transaction rolled back because it has been marked as rollback-only
Any ideas?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.