I'm refactoring some very old code where
getAdministrativeResourceResolver is used. There is a function that
reads and creates content on behalf of another user. Impersonation is
used for that purpose. But If I change getAdministrativeResourceResolver
to getServiceResourceResolver even with service user that is member of
administrators group, I'm not able to impersonate:
org.apache.sling.api.resource.LoginException: Impersonation not allowed.
Finally I found a workaround: impersonate service use...