@ PreAuthorize ( "hasPermission('ALL', 'java.lang.String', new org.apereo.portal.spring.security.evaluator.AuthorizableActivity('UP_PERMISSIONS', 'VIEW_PERMISSIONS'))" ) @ RequestMapping ( "/v5-5/permissions/assignments/users/{username}" ) public ModelAndView getAssignmentsForUser ( @ PathVariable ( "username" ) String username , @ RequestParam ( value = "includeInherited" , required = false , defaultValue = "false" ) boolean includeInherited ) { final JsonEntityBean entity = groupListHelper . getEntity ( EntityEnum . PERSON . toString ( ) , username , false ) ; final List < JsonPermission > permissions = getPermissionsForEntity ( entity , includeInherited ) ; final ModelAndView mv = new ModelAndView ( ) ; mv . addObject ( "assignments" , permissions ) ; mv . setViewName ( "json" ) ; return mv ; }
Provides the collection of permission assignments that apply to the specified user optionally including inherited assignments .