Introduction
There is a typical import option available from CUPS, which can import contacts to jabber for window buddy list. Also with JFW 9.6 version, contacts can be imported to buddy list from the jabber client itself in the form .xml file.
Using Bulk Import option in CUPS:
Possible from CUPS version 8.6.4 onwards
Step 1: Create a .CSV file in the below format. The below shows a sample file:
User ID, User Domain, Contact ID, Contact Domain, Nickname, Group Name test7, APP.COM, test3, APP.COM, Sample3, General test8, APP.COM, test3, APP.COM, Sample3, General
With the above file, User test3 will be added to the buddy list of test7 and test8
Step 2: Upload the .csv file to CUPS. CUPS admin page -- Bulk Administration -- upload/download files -- Add new -- Browse the .csv file -- Select the target as "CUP Users" -- Select transaction type as "Update CUP Users - Custom File" -- Save
Step 3: Execute the file uploaded: Bulk administration —-- Contacts list —-- update —-- select the file uploaded —-- run immediately
Step 4: Check the status of file: Bulk administration —-- job scheduler -- find the job added —and check the status —-- Will be added if the job is successful
Note : The file can be created in a normal notepad and can be saved as .csv file
The users (user3, user7 and user8) should be assigned to a node for the bulk job to success
Using Jabber .xml file to import contact:
Step1 : Create .xml file. Below is the sample file
<?xml version="1.0" encoding="utf-8" ?> <buddylist> <group> <gname>Sample Group 1</gname> <user><uname>user1@APP.com</uname><fname>Sample User 1</fname></user> <user><uname>user2@APP.com</uname><fname>Sample User 2</fname></user> </group> <group> <gname>Sample Group 2</gname> <user><uname>user3@APP.com</uname><fname>Sample User 3</fname></user> </group> </buddylist>
With the above file, user1 and user2 will be added to the group Sample group1
Also user 3 will be added to the group Sample group2
This file also create groups Sample group 1 and 2
Here uname will the IM address of the user being added
Step 2: Login to jabber client to which you like to import contact
Step 3: Click on file -- import contacts -- select the xml file created -- open
Now the contacts will be added to buddy list