wttech / APM

AEM Permission Management (APM) is an AEM based, cloud compatible tool focused on streamlining the permission configuration.
Apache License 2.0
54 stars 15 forks source link

Conditional CHECK-INCLUDES command #400

Open jakub-przybytek-wttech opened 1 year ago

jakub-przybytek-wttech commented 1 year ago

In my script I create a set of user groups. Additionally, on the AME instance, there is a set of groups that may or may not already exist (IMS groups). This is why I often use --IF EXIST closure, for example:

CREATE-GROUP "group-a" BEGIN
   ADD-CHILDREN "ims-group-a" --IF-EXISTS
END

Now, I wish that it was possible to compose CHECK-INCLUDES command that validates that this relationship indeed exists on a AEM environment, knowing that 'ims-group-a' may or may not actually exist. Something that performs the check only if both groups exist.

Would that be possible in APM?