polkit.addRule(function(action, subject){ if (subject.isInGroup("crystal")) { return polkit.Result.YES; } ));