My Oracle Support Banner

How to change OID Role Assignment at runtime on iAS (Doc ID 298602.1)

Last updated on FEBRUARY 13, 2024

Applies to:

Oracle Containers for J2EE - Version and later
Information in this document applies to any platform.


How to create a new user role assignment from the iAS 10g ( Enterprise Manager console, at runtime? (dynamic role assignment)

While creating a J2EE application the user has defined roles in web.xml. An EAR file of that application is deployed using the EMWebsite under a custom container. The orion-application.xml file is modified to map role assignment, and these mappings are reflected on the "Security" page:

Middle tier -> <container_name> -> Applications -> <Application Name> -> Security

The role mapping displays as:

Role Name -> User/Group on the Security page

This is the same user/group name created in OID and is displayed under "Role Assignment" category using the "Configuration Tab" on the OID main page. When a user is created, the user can be assigned this Role which maps to Role in the orion-application.xml file.

Once the user is created, and is assigned a Role (which was created under Role Assignment), the first invocation of the application reflects this Role. However at run time when this Role is modified for the same user using the "Edit" tab (after selecting user name in OID and assign new /modify his/her Role), it is not reflected at run time until restart of the custom container on the mid tier.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.