I faced similar problem while cancelling the inheritance of a component
for multiple nodes and following code snippet worked for me -Node node =
getNode(String
nodepath)node.addMixin("cq:LiveSyncCancelled")node.setProperty("cq:isCancelledForChildren","true",PropertyType.BOOLEAN)session.save();
Note: I executed this on groovyconsole.