AEM session management and user access
Hi,
While we are trying to access the AEM to inject the data from an external application using below
public Session getAEMSession() throws RepositoryException {
return JcrUtils.getRepository(aemAuthorUrl + "/crx/server")
.login(new SimpleCredentials(aemAuthorUsername, aemAuthorPassword.toCharArray()));
}
while accessing we are getting the below error as :
javax.jcr.ItemNotFoundException: Unable to retrieve NodeInfo for https://<domain>/crx/server
The issue resolving only when we provide root level sudo access to user / as below

but not working if we provide only CRUD operations to /content node?
What will be the best practice when we need to connect AEM from external to inject the data to AEM ?
why do we need root level sudo read access?