I don't think that would work for set-ups where users are in several user groups where permissions are cumulative across these e.g. a user is in groups A (Registered), B, C and D. It would work for creating B (from A) but for creating C you'd need to know the permissions set in A and B and for creating D you'd need to know the permissions set in A, B and C.
I created the add-on for how I knew my forum will be set up at the time, and to work in conjunction with my clone node add-on:
- most members will belong to just 2 user groups: registered, and adventurer. To create the adventurer group I just cloned the registered group, and changed the name, set the allows to not-set and checked the permissions they will receive to allow.
- some members will belong to a third user group, needed for giving access to their specific set of forums created specifically for those members. The newly created user group has it's permissions set to not-set, because they do not need any other user-group based permission to be set to allow.
I then use my clone node add-on to clone the node belonging to the
last guild I created, ensuring the setting to clone forum permissions is checked, and the cloning of content moderators is not set. The only changes I do here before I hit clone, is to the name and description, display order (only required for my use), and un-select the display in node tree option for now. As this is a new node no one will know it exists so I have time for the last step.
As I cloned the forum permissions of the last guild, the permissions set to revoke are all set for the new user group for every other guild-forums I may have; I just need to change the new user groups permissions for viewing the last user groups forum to revoke. The final step is to set the new user groups forum permissions for the other guilds to revoke, and set it to be displayed in the node list. Every guild (user group) member now has the exact same permissions for their own forums, and there are no duplicate permissions set.
If in the future I require all members to belong to a third user group, I just need to clone the adventurer user-group and set those that are allow, to not-set and set the new permissions I want to give them to allow. No fuss, no confusion, and more importantly the forum permissions for specific user groups (their guild forums) are not touched,