Hi @Prashanth_02a,
Getting resource resolver object from request/resource will have set of permissions that depend on user session that is correlated with it, e.g if anonymous user will request for specific resource, in your code for given scenario, getting resource resolver object from request will...