How to create and config system users during deployment?
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!
