How to Automate creation of Access Groups

when click access group button(OK Button),there should be automatically create session attribute and constraint.
When creating the group,entity name should be filtered.

Ex:-automatically data come to the project via tenat id in multitenancy project.there are not use of session attribute and constrain in multitenancy project.(URL)

I want to do the same thing that happen in multitenancy project, when creating the I solve that problem.?

See this section for how to add an entity listener to an entity defined by the framework (Group in your case).


thank you for your support and advice