AEM as a Cloud Service: workflow-user permissions lost after deployment due to configuration conflict
In Adobe Experience Manager (AEM) as a Cloud Service, the workflow-user account loses all assigned permissions after each deployment because conflicting configuration sources manage its permissions. To resolve this, manage the permissions through a single configuration mechanism.
Description description
Environment
Adobe Experience Manager (AEM) as a Cloud Service environments.
Symptoms
- The
workflow-useraccount loses all assigned permissions after each deployment. - Application workflows fail or require manual re-assignment of permissions to function.
- The issue recurs after every deployment.
Cause
This issue occurs when multiple configuration sources manage the permissions of the workflow-user account, such as both repoinit scripts and an access control tool (for example, system-user.yaml). When both mechanisms declare the same account, the access control tool takes ownership and overwrites permissions, removing any set by repoinit if not explicitly declared in its configuration. This results in the loss of permissions after each deployment.
Resolution resolution
Follow the steps below to resolve the issue.
- Review your codebase for all configuration sources managing permissions for the
workflow-useraccount. Check for bothrepoinitscripts and access control tool (system-user.yaml) entries. - Choose a single configuration mechanism (either
repoinitor the access control tool) to manage the permissions of theworkflow-useraccount. - Remove the
workflow-userentry from the other configuration source to prevent conflicts. - If you use the access control tool, ensure all required permissions for the
workflow-useraccount are explicitly declared in its configuration. - Commit and deploy the updated configuration to your AEM as a Cloud Service environments.
- Validate the changes in a lower environment before promoting to higher environments.
- After deployment, verify that the
workflow-useraccount retains the expected permissions and that workflows function as intended.