Update Of Security by File

In this blog I wanted to update Planning Security using file imports. When a dimension is security enabled (see below) and required multiple members to have security applied to them, doing it through the user interface is tedious. This is also true of rules and forms.

Import Security Groups

First thing to do is add the users and security groups. The file will need to be in this format: “Group Name”,”Description”

In the Access Control->Manage Groups there is an option to export to file but not import

So here is a script to load the file:

n.b. It isn’t possible to import groups that inherit security from other groups, this has to be done manually by adding one group as a member of the next group.

I’m going to assume that the users are all set up in the Tenancy so that they appear in the Manage Users. When it comes to assigning users to Groups, and export/import facility exists and no need for scripting.

Export Artefact Security Data

This script will create an export file ACL (Access Control List)  in the correct format that can be used as a template for the import or a back up of the security. To create this there must be at lease one item with security applied.

The file will be created in the Inbox/Outbox Explorer.

Below is a sample of an ACL (Access Control List) file format.

Object NameNameParentIs UserObject TypeAccess TypeAccess ModeRemove
RiverTTC_Brand_River NSL_DIMENSIONREADWRITE@IDESCENDANTS 
TTC GroupTTC_Brand_TTC_Group NSL_DIMENSIONREADWRITE@IDESCENDANTS 
Revenue_IntercompanyTTC_Common_Dimensions NSL_DIMENSIONREADWRITEMEMBER 
Other_RevenueTTC_Common_Dimensions NSL_DIMENSIONREADWRITEMEMBER 
CommissionsTTC_Common_Dimensions NSL_DIMENSIONREADWRITE@IDESCENDANTS 
FormsTTC_Common_Dimensions/NSL_FORMFOLDERREADWRITE@IDESCENDANTS 
Step2TTC_Step2/FPNANSL_CALCFOLDERLAUNCH@IDESCENDANTS 
STEP5_Adjustment (+/-)TTC_Step5 NSL_DIMENSIONREADWRITEMEMBER 
Step5TTC_Step5/FPNANSL_CALCFOLDERLAUNCH@IDESCENDANTS 

For full details of field values in object type, access type & access model see: Import Security in Oracle’s documentation.

Import Artefact Security Data

Once the file is updated and uploaded back to the Inbox/Outbox Explorer, this script can be used to import the security.

When I was testing this in October 2025 the clearall=true didn’t seem to work, so I had to set the remove column to Y to reset the security.

Leave a Comment