Netcentric ACL tool same user group for separate environments | Community
Skip to main content
August 23, 2024

Netcentric ACL tool same user group for separate environments

  • August 23, 2024
  • 2 replies
  • 922 views

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

 

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

2 replies

konstantyn_diachenko
Community Advisor
Community Advisor
August 23, 2024

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/src/main/jcr_root/apps/netcentric/actool-exampleconfig/runmodes 

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.

Kostiantyn Diachenko, Community Advisor, Certified Senior AEM Developer, creator of free AEM VLT Tool, maintainer of AEM Tools plugin.
arunpatidar
Community Advisor
Community Advisor
August 27, 2024