code: public boolean hasPermissionById(String id, String permission) {
          Permission resolvedPermission = getPermissionResolver().resolvePermission(permission);
          return hasPermissionById(id, resolvedPermission);
      }
docs: Test for whether an API key has a specific permission using its ID.