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