How to EEM Bulk managing users(add/remove/modify)

Document ID : KB000015188
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

How to 'bulk-add' users into EEM, through the safex.exe program.

To avoid using the (SC,SDM,EEM)-UI for each individual (new) user.

 

Question:

How to 'bulk-add' users into EEM, through the safex.exe program.

 

Environment:
Windows running EEM 12.5x for e.g. CA Service Catalog, CA ServiceDesk Manager and other CA related products.
Answer:

The following information and possible procedure can be used as such.

   

1. cd C:\Program Files\CA\SC\EmbeddedEntitlementsManager\bin

 

2a. Create the file named "add_gusers.xml"( (notepad add_gusers.xml)

2b. 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>

   

3a. In the EEM-UI, create groups SafexGroup1 and SafexGroup2

 

3b. Next, execute the following command:

safex.exe -h <hostname> -u EiamAdmin -p <password> -f add_gusers.xml

 

Additional Information:

Additional Information:

Also see the .txt files as attached:

EEM_Safex_Add_User_GroupMember.txt

EEM_Safex_Remove_Add_GroupMember.txt

EEM_Safex_Retrieve_contacts_from_eem.txt

 

File Attachments:
TEC1957817.zip