Cannot modify system configuration

why i cannot add user after install xrdp and add the polkit? if i remove the polkit i able to add user from console but rdp didn't work. please help.

polkit.addRule(function(action, subject) {
  if ((action.id == "org.freedesktop.color-manager.create-device" ||
  action.id == "org.freedesktop.color-manager.create-profile" ||
  action.id == "org.freedesktop.color-manager.delete-device" ||
  action.id == "org.freedesktop.color-manager.delete-profile" ||
  action.id == "org.freedesktop.color-manager.modify-device" ||
  action.id == "org.freedesktop.color-manager.modify-profile") &&
  subject.isInGroup("{sudo}")) {
  return polkit.Result.YES;
 }
});