How to create and config system users during deployment? | Community
Skip to main content
Level 2
March 30, 2023
Solved

How to create and config system users during deployment?

  • March 30, 2023
  • 3 replies
  • 942 views

I'm building a service in AEM that uses a system user to perform certain tasks.

Currently, when I develop the service locally, I create the system user (following this LINK) and config everything manually. However, I want to automate this process during deployment using a CI/CD pipeline.

What is the right way to create the system user, add the necessary permissions, and set up the service user mapping during the deployment process? Are there any best practices or potential pitfalls to keep in mind?

Any advice or examples would be greatly appreciated. Thank you!

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

3 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
March 30, 2023
Rohit_Utreja
Community Advisor
Community Advisor
March 30, 2023

@wei_lyu 

other option can be netcentric access control tool.

https://github.com/Netcentric/accesscontroltool

 

acl config can be created and committed as a part of code. 

sample config for system user

-user_config - sample-system-user - name: sample-system-user path: SomePathToSaveUser isSystemUser: true -ace_config: - sample-system-user -path: /content permission: allow privileges: jcr:all

DPrakashRaj
Community Advisor
Community Advisor
March 31, 2023

Why do you want the system user to be created automatically. What are the use case that you need aem system user for ci/cd process?

arunpatidar
Community Advisor
Community Advisor
April 6, 2023

This is a best practice to do it automatically , otherwise you have to follow same manual step in all the environments including locals

Arun Patidar