How to create a system user in AEM 6.1? | Community
Skip to main content
October 16, 2015
Solved

How to create a system user in AEM 6.1?

  • October 16, 2015
  • 11 replies
  • 10641 views

On AEM 6.1.. I am trying to create a System User (rep:SystemUser). Can anyone help me?

I need this system-user to map to a service in OSGI that i want to use to Write some data to aem content. 

I can see the "system users" in CRX at this location: /home/users/system 

I tried to create a new node to create a new-user with "jcr:primaryType rep:SystemUser", and defined the rep:PrincipalName, but that property is not being set as "Protected=true", by default is is taking as "Protected = false" and so saving the node is failing with that message.

Reference: http://aemfaq.blogspot.com/2015/01/aem6-default-groups-users-without.html

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Alex Collignon

Hi Surendra,

CRX Explorer allows you to create system users.

  1. Open http://localhost:4502/crx/explorer/index.jsp
  2. Login as admin
  3. Click User Administration
  4. Click Create System User
  5. Set the UserId
  6. Click Save

Hope that helps.

Alex

11 replies

October 16, 2015

smacdonald2008 wrote...

See http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__hks9-hello_we_hav.html

 

Thanks. This is a follow up to that post. It was recommended to create a "rep:SystemUser" , and i was following that o create a system-user, but could not.

And i also tried to access the services with a new user defined.. but the osgi services mapped using "Sling Apache Service User Mapping Service" is working only with a "system user" and not with a regular user.

Alex CollignonAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

Hi Surendra,

CRX Explorer allows you to create system users.

  1. Open http://localhost:4502/crx/explorer/index.jsp
  2. Login as admin
  3. Click User Administration
  4. Click Create System User
  5. Set the UserId
  6. Click Save

Hope that helps.

Alex

smacdonald2008
Level 10
October 16, 2015

I asked Alex whom answered the other thread to follow up here. 

October 16, 2015

Alexandre COLLIGNON wrote...

Hi Surendra,

CRX Explorer allows you to create system users.

  1. Open http://localhost:4502/crx/explorer/index.jsp
  2. Login as admin
  3. Click User Administration
  4. Click Create System User
  5. Set the UserId
  6. Click Save

Hope that helps.

Alex

 

Awesome, thanks  much. Works for me!!!

Level 3
November 1, 2016

Hi,

What is the best way to package and move system user across different environments? To be precise, we are planning to create a system user in one dev environment, create a package and install it in other environments like QA, Staging and Production, what is the efficient way to achieve this?

In one of the environments, we created a system user in author instance, given appropriate permissions, activated the user but unable to find him in publish(by searching system user in useradmin console). However system user node exists in publish crxde(under /home/users/system). Did anyone face this issue?

If yes, could you please suggest the steps to resolve this issue.

Thanks in advance.

federicos727792
Level 3
January 18, 2017

Hi srikanth,

Were you able to resolve this?

Level 3
January 18, 2017

Hi federicos,

We have followed the approach to create system user in one dev environment, created a package and installed in other environments. The above issue where we could nor find system user in useradmin console was limited to one environment which we resolved by creating system user manually. We have given permissions manually to the system user.

Thanks,

Srikanth Pogula.

federicos727792
Level 3
January 18, 2017

Thanks for the quick answer. During my testing I've found that it works too.

Thx,

Federico

mikezooz
Level 4
September 7, 2018

creating system user manually is not a good practice, do we have any other way to achieve?