code: @PreAuthorize(
              "hasPermission('ALL', 'java.lang.String', new org.apereo.portal.spring.security.evaluator.AuthorizableActivity('UP_PERMISSIONS', 'VIEW_PERMISSIONS'))")
      @RequestMapping(value = "/permissions/owners/{owner}.json", method = RequestMethod.GET)
      public ModelAndView getOwners(
              @PathVariable("owner") String ownerParam, HttpServletResponse response) {
  
          IPermissionOwner owner;
  
          if (StringUtils.isNumeric(ownerParam)) {
              long id = Long.valueOf(ownerParam);
              owner = permissionOwnerDao.getPermissionOwner(id);
          } else {
              owner = permissionOwnerDao.getPermissionOwner(ownerParam);
          }
  
          // if the IPermissionOwner was found, add it to the JSON model
          if (owner != null) {
              ModelAndView mv = new ModelAndView();
              mv.addObject("owner", owner);
              mv.setViewName("json");
              return mv;
          }
  
          // otherwise return a 404 not found error code
          else {
              response.setStatus(HttpServletResponse.SC_NOT_FOUND);
              return null;
          }
      }
docs: Provide a detailed view of the specified IPermissionOwner. This view should contain a list of
  the owner's defined activities.