I am trying to remove and add permissions (page restrictions) in bulk on Confluence Pages using Scriptrunner. I am looping through my ids which I'm getting from a resultset of a database query.
When iterating through I get this error after the permissions of the first entry are set and removed correctly:
2022-04-27 08:18:12,662 ERROR [common.UserScriptEndpoint]: Script console script failed:
java.util.ConcurrentModificationException at org.hibernate.collection.internal.AbstractPersistentCollection$IteratorProxy.next(AbstractPersistentCollection.java:864) at testLoop.run(testLoop.groovy:50)
this is my script:
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event