Friday, February 27, 2015

Export and Import Planning Security Through Utility

When I am working with Planning and mainly during the forecast cycle, The security backups, export and imports are regular activities and also critical ones.

Below is a brief description of what I use for Import and Export of Security in Hyperion Planning.

- For Exporting the security

The utility used is ExportSecurity.cmd
Ideally it is installed in the path E:\Oracle\Middleware\user_projects\epmsystem7\Planning\planning1

We can use this utility to export the Planning security for a complete application or a single user or even a group.

For a complete application, one can use :-

ExportSecurity /A=AppName, /U=UserName

Note that the user should have admin prvileges

Similarly we can use ExportSecurity /A=AppName, /U=UserName,/S=User or ExportSecurity /A=AppName, /U=UserName,/S=Group for exporting user or group security respectively.

One needs to go to the specified path through command prompt and execute this command and the security file is created with the name secFile.txt in the same path.



At the end of the Export, we will recieve the completion note




- For Importing the Security

In the same path as the ExportSecurity utility, we will have another utility ImportSecurity.cmd

Firstly, we need to place the secFile.txt file in this path because the utility will look for this name to import the security.

Go to the same path at command prompt and the command would be:-

ImportSecurity.cmd "AppName,UserName,SL_COMMA,,,"

This is because the secFile will ideally be Comma delimited.
Note: Ensure you type the double quotes manually because Copy and paste from a website or other source might sometimes give other format which may not work.



Once you run this command, it will ask for the password for the given UserName.

We can find the logs for both Import and Export Security in the path : E:\Oracle\Middleware\user_projects\epmsystem7\diagnostics\logs\planning