Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

Netcentric ACL tool same user group for separate environments

Avatar

Level 1

Hello, I'm using Netcentric AC tool for AEMaaCS environment, for our user-management. Ths issue is that I can't add the same group for example for stage and prod environment, as while testing it on local environment package insatllation gives following error

 

Exception while installing configurations: java.lang.IllegalArgumentException: Already defined authorizable: test-role-editor-EN found in configuration file: /apps/netcentric-stage/testing/test-role-editor-EN/config.yaml! This authorizable was already defined in another configuration file on the system!

So the configuration is defined under packages /apps/netcentric-stage/testing/test-role-editor-EN/config.yaml and /apps/netcentric-dev/testing/test-role-editor-EN/config.yaml

 

2 Replies

Avatar

Level 4

Hi @aram1995 , 

You need to follow the the special folder structure to apply different configuration per different environments.

See official documentation here (section Runmodes): https://github.com/Netcentric/accesscontroltool/blob/develop/docs/Configuration.md

Here you can find an example of the structure: https://github.com/Netcentric/accesscontroltool/tree/develop/accesscontroltool-exampleconfig-package... 

In your case I would suggest the following structure:

/apps/<your-project-name>/actool-config/runmodes

|__testing-group.dev

|    |__config.yaml

|__testing-group.stage

     |__config.yaml

Hope it helps.

Avatar

Community Advisor

Hi @aram1995 
You need to use runmodes folders insteadof plain folders folders, example

https://github.com/Netcentric/accesscontroltool/tree/develop/accesscontroltool-exampleconfig-package... 

 



Arun Patidar