code: public int countUsersWithGlobalPermissionExcludingGroup(DbSession dbSession, String organizationUuid,
      String permission, int excludedGroupId) {
      return mapper(dbSession).countUsersWithGlobalPermissionExcludingGroup(organizationUuid, permission, excludedGroupId);
    }
docs: The number of users who will still have the permission if the group {@code excludedGroupId}
  is deleted. The anyone virtual group is not taken into account.