public function listPoliciesForUser(Request $request)
    {
        return new Values\PolicyList(
            $this->roleService->loadPoliciesByUserId(
                $request->query->get('userId')
            ),
            $request->getPathInfo()
        );
    }
public function listPoliciesForUser(Request $request)
    {
        return new Values\PolicyList(
            $this->roleService->loadPoliciesByUserId(
                $request->query->get('userId')
            ),
            $request->getPathInfo()
        );
    }
public function listPoliciesForUser ( Request $ request ) { return new Values \ PolicyList ( $ this -> roleService -> loadPoliciesByUserId ( $ request -> query -> get ( 'userId' ) ) , $ request -> getPathInfo ( ) ) ; }
Search all policies which are applied to a given user.

@return \eZ\Publish\Core\REST\Server\Values\PolicyList
Search all policies which are applied to a given user .