From what I understand, in ADF applications, if we use container-security, both `Application Roles` and all authorisation rules based on these roles are created during design-time.
After the application has been deployed, an admin will have to log in to the admin console of an application server like WebLogic to manually map the created `Application Roles` to some `Enterprise User Groups` or `Users` from an identity store.
I have a requirement such that roles need to be created dynamically at run-time. Based on my understanding above, `Application Roles` cannot be created at run-time. Hence, I'm looking for a way to programmatically create `Enterprise User Groups` and then programmatically map them to the defined `Application Roles`.
At the moment, I still don't know if what I want to do is feasible. I skimmed through a lot of Oracle documentation but all I saw are about manual configuration. I'd be very grateful if someone could provide me with a right direction to investigate further :).
If it's relevant at all, I'm using JDev 11g Release 1.