/* Anyone in lp group should be allowed to manage printers */ polkit.addRule(function(action, subject) { if (action.id.indexOf("org.opensuse.cupspkhelper.mechanism") == 0 && subject.isInGroup("lpadmin") ) { return polkit.Result.YES; } });