From AEM 6 usage of admin session and admin resource resolver have been deprecated. Now we should use service resource resolver API to retrieve the session. Below are the steps Creating System users 1. Go to http://<<host>>:<<port>>/crx/explorer/index.jsp 2. Click on user administration 3. Click on create system user 4. Enter user id. You can create any number of system users based on your requirement. A typical use case is to have two separate system users, one for read operation and another for write. You may want to further sub categorize and create role oriented users. Once system users are created, assign them permission according to their roles or categories. Assign user mapping 1. Go to felix bundle console 2. Find org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl configuration 3. Add a new entry in below format – 4. bundleId:subserviceName = systemUser 5. Write a service whi...
Tech Blog to share the technical knowledge