public function listUsersAction($id, $class, Request $request)
    {
        return new JsonResponse(
            $this->finder->search('Claroline\CoreBundle\Entity\User', array_merge(
                $request->query->all(),
                ['hiddenFilters' => [$this->getName() => [$id]]]
            ))
        );
    }
public function listUsersAction($id, $class, Request $request)
    {
        return new JsonResponse(
            $this->finder->search('Claroline\CoreBundle\Entity\User', array_merge(
                $request->query->all(),
                ['hiddenFilters' => [$this->getName() => [$id]]]
            ))
        );
    }
public function listUsersAction ( $ id , $ class , Request $ request ) { return new JsonResponse ( $ this -> finder -> search ( 'Claroline\CoreBundle\Entity\User' , array_merge ( $ request -> query -> all ( ) , [ 'hiddenFilters' => [ $ this -> getName ( ) => [ $ id ] ] ] ) ) ) ; }
List users of the collection.

@EXT\Route("/{id}/user")
@EXT\Method("GET")

@param string  $id
@param string  $class
@param Request $request

@return JsonResponse
List users of the collection .