How to retrieve user info from EEM through the safex program.

Document ID : KB000125337
Last Modified Date : 28/01/2019
Show Technical Document Details
Introduction:
N/A
Background:
N/A
Environment:
Windows
Instructions:
Please check and perform the following procedure:
1. cd C:\Program Files\CA\SC\EmbeddedEntitlementsManager\bin
2a. Create the file named "export_gusers.xml" (notepad export_gusers.xml)
2b. With the following content:
<?xml version="1.0" standalone="yes" ?>
<Safex>
<Attach label="Service Catalog"/>
<Export file="EEMusers_export.xml" globalfolders="n" globalsettings="n" globalusergroups="y" globalusers="y" folders="n" usergroups="y" users="y" calendars="n" policies="n" appobjects="n" maxsearchsize="50000" />
<Detach/> 
</Safex>
NOTE: The line starting "<Export..." should be on one line.
  
3. Execute the following command:
safex.exe -h <hostname> -u EiamAdmin -p <password> -f export_gusers.xml
    
This will produce a file called "EEMusers_export.xml", holding the EEM user-definitions.
4. Open the output file, EEMusers_export.xml

Some of the tags for the usesrs are:
<GlobalUser folder="/" name="CASMAdmin">
<UserName>CASMAdmin</UserName>
<PasswordDigest>{SHA512}ZGdEuvAKXGn3f</PasswordDigest>
<PasswordChangeDate>1415797940</PasswordChangeDate>
 
If you look at this file, it should have all of the "tags" which you need to use to add the users.