Netcentric / accesscontroltool

Rights and roles management for AEM made easy
Eclipse Public License 1.0
150 stars 92 forks source link

Support capturing groups in autoCreateTestUsers->createForGroupNamesRegEx #744

Closed kwin closed 1 month ago

kwin commented 2 months ago

Currently the regex is just evaluated to see if a group requires an according test user (https://github.com/Netcentric/accesscontroltool/blob/6499e07816c37d82147b0e5954b0db15704fa400/accesscontroltool-bundle/src/main/java/biz/netcentric/cq/tools/actool/configreader/TestUserConfigsCreator.java#L68). It would be beneficial to allow capturing groups which could be referenced then in any of the other properties.

That would allow to create short Test User names from very long group names. This is crucial as the impersonate dialog has a fix and narrow width:

Screenshot 2024-07-10 at 15 11 34
kwin commented 2 months ago

I propose to allow to refer to capturing groups with %{cg<groupIndex>}.