Expand my Community achievements bar.

SOLVED

How to create a system user in AEM 6.1?

Avatar

Former Community Member

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

1 Accepted Solution

Avatar

Correct answer by
Level 2

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

View solution in original post

11 Replies

Avatar

Former Community Member

smacdonald2008 wrote...

See http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

 

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.

Avatar

Correct answer by
Level 2

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

Avatar

Level 10

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

Avatar

Former Community Member

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!!!

Avatar

Level 3

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.

Avatar

Level 3

Hi srikanth,

Were you able to resolve this?

Avatar

Level 3

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.

Avatar

Level 3

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

Thx,

Federico

Avatar

Level 4

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

Avatar

Community Advisor

Hi,

What do you mean by manually, If you have UI to create system user, you need to specify userid / password.

What are you trying to automate here?



Arun Patidar