How to create a system user in aem ?

Posted in AEM Tutorials By Raj On October 9, 2017

 

The login with admin session is deprecated from AEM 6+ onwards, instead of that you need to use service user account to access resource resolver , here I am going to show case you how to create service account in AEM

Step 1: Creating service user

  • You can create a system user by visiting http://localhost:4506/crx/explorer/index.jsp
  • Create “User Administration”

service-user

  • Click on “Create a system User”
  • Once the userID is provided click on green button
  • Now close the window, there is not create button for this

service-user-one

Step 2: Set permissions to system user

  • Open http://localhost:4502/useradmin
  • Search for newly created user 
  • Add appropriate permissions

permissions-setup

Step 3: Configure user mappings

  • Open http://localhost:4502/system/console/configMgr
  • Look for Apache Sling Service User Mapper Service Amendment
  • Add new item by clicking on “+” icon

<bundleId>:<subServiceName> = <systemUserName>

Ex: AEMToolKit.aemtoolkit.core:createService=createuser

service-user-ad