How to add users into EEM through the safex program

Document ID : KB000125336
Last Modified Date : 28/01/2019
Show Technical Document Details
Introduction:
N/A
Background:
N/A
Environment:
Windows
Instructions:
Please check on and perform the following procedure:
1. In the EEM-UI, create groups SafexGroup1 and SafexGroup2

2. cd C:\Program Files\CA\SC\EmbeddedEntitlementsManager\bin
3a. Create the file named "add_gusers.xml" (notepad add_gusers.xml)
3b. With the following content:
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<Safex>
<Attach label="Service Catalog"/>
<Add>
<GlobalUser folder="/" name="SafexUser1">
<GroupMembership>SafexGroup1</GroupMembership>
</GlobalUser>
<GlobalUser folder="/" name="SafexUser2">
<GroupMembership>SafexGroup2</GroupMembership>
<GroupMembership>OpenSpaceAdminGroup</GroupMembership>
</GlobalUser>
</Add>
</Safex>
  
4. Next, execute the following command:
safex.exe -h <hostname> -u EiamAdmin -p <password> -f add_gusers.xml
Additional Information:
Note:
===================
The safex syntax has the following format:
{path} safex
 [-h backend]
 [-l locale]
 [-u user -p password]
 [-c cert -p password]
 [-n]
 [-v verbose level (0-4)]
 [-s simulate]
 [-pause]
 [-b bulk insert]
 [-f xml_file]
 [-munge password]
 [-sdkconfig configfile]
 [-sha1encodeddigest password]
Example: 
C:\Program Files\CA\Embedded Entitlements Manager SDK\bin\>
safex -h localhost -u eiamAdmin -p eiam -f abc.xml