Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Bulk setting page perms using db datasource


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? 

0 answers

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events