userImportExport Plugin Archive

Below is a list of versions that are available for the userImportExport plugin. To find other plugins, please review this listing of most recent releases of all plugins.

Plugins extend and enhance the functionality of Openfire. To install plugins, copy the .jar file into the plugins directory of your Openfire installation.

User Import/Export Plugin Readme

Overview

The user import/export plugin provides a way to import and export Openfire user data viathe Admin Console. The user data consists of username, password, name, email address, creation and modified date, and roster list (aka "buddy list"). This plugin also can aid in the migration of users from other Jabber/XMPP based systems to Openfire.

Installation

Copy the userImportExport.jar into the plugins directory of your Openfire installation.The plugin will then be automatically deployed. To upgrade to a new version, copy the new userImportExport.jar file over the existing file.

Configuration

Presently, there is nothing that can be configured for the user import/export plugin.

Using the Plugin

The plugin is accessed via the "User Import & Export" sidebar item located under the "Users/Groups" tab in the Admin Console. Note: if you are using a read-only user store such as LDAPor POP3 this plugin will still work with two caveats:

  1. When exporting, the username will be placed in the password element.
  2. When importing, no new users will be created but if the user exists in the user store the roster will be loaded.
  • Importing - Select the "Import User Data" option from the user import/export selection page. On the import page, use the "Browse" button to locate the file that contains the user information you want to locate and then click on the "Import" button. If the plugin is successful in importing all user data, you will be presented with the message: "All users added successfully".If the plugin was not successful in importing all user data you, will receive a message indicating what might have gone wrong. If during the import process, the plugin detects that you are trying to import a user that already exists in the system, it will not import that user or any roster information, except in the case of using a read-only user store.

  • Exporting - Select the "Export User Data" option from the user import/export selection page. User data can be exported either to a file or directly to the screen. To export to a file, select the "To File" radio button, enter the name you want your export file to be called in the "Export File Name" and then click on the "Export" button. Note: the plugin will automatically append an ".xml" extension to the file name if it is not already present. To export to the screen, select the "To Screen" radio button and then click on the "Export" button. The user data will be placed in the provided text area.

  • Migration - To import user data from another instant messaging system using the plugin,the import file must conform to the wildfire-user-schema.xsd.xml schema file (located in the classesdirectory of the userImportExport.jar). When importing a user data file the plugin will first validate the file against the schema file. If the plugin cannot validate the import file the user data will not be imported. During the import process the plugin gives you the ability to update user roster entries domain names to server name of your Openfire installation. For example, say you have a userwhose roster looks like:
  • <User>
      <Username>mike</Username>
      <Password>iamcool</Password>
      <Email>mike@mike.com</Email>
      <Name>Mike Jones</Name>
      <CreationDate>1125442154664</CreationDate>
      <ModifiedDate>1125442154664</ModifiedDate>
      <Roster>
        <Item jid="jane@im.olddomain.net" askstatus="-1" recvstatus="-1" substatus="3" name="Jane">
          <Group>Friends</Group>
        </Item>
        <Item jid="paul@xyz.net" askstatus="-1" recvstatus="-1" substatus="3" name="Paul">
        </Item>
      </Roster>
    </User>

    Mike and Jane's accounts both reside on server whose domain name is "im.olddomain.net" and are being imported to a Openfire installation whose server name is "im.newdomain.net". If on the import screenthe "Optional Existing Domain" field is filled in with "im.olddomain.net" (without the quotes) any roster item jid that contains "im.olddomain.net" will be replaced with "im.newdomain.net". So, in effect, the import file would be transformed to look like:

    <User>
      <Username>mike</Username>
      <Password>iamcool</Password>
      <Email>mike@mike.com</Email>
      <Name>Mike Jones</Name>
      <CreationDate>1125442154664</CreationDate>
      <ModifiedDate>1125442154664</ModifiedDate>
      <Roster>
        <Item jid="jane@im.newdomain.net" askstatus="-1" recvstatus="-1" substatus="3" name="Jane">
          <Group>Friends</Group>
        </Item>
        <Item jid="paul@xyz.net" askstatus="-1" recvstatus="-1" substatus="3" name="Paul"/>
      </Roster>
    </User>

    Below is a sample of an exported user list from Openfire than contains two users, Joe and Sally, whohave added each other to their respective rosters.

    <?xml version="1.0" encoding="UTF-8"?>

    <Openfire>
      <User>
        <Username>joe</Username>
        <Password>joepwd</Password>
        <Email></Email>
        <Name></Name>
        <CreationDate>1125601449177</CreationDate>
        <ModifiedDate>1125601449177</ModifiedDate>
        <Roster>
          <Item jid="sally@localhost" askstatus="-1" recvstatus="-1" substatus="3" name="Sally">
            <Group>Friends</Group>
          </Item>
        </Roster>
      </User>
      <User>
        <Username>sally</Username>
        <Password>sallypwd</Password>
        <Email></Email>
        <Name></Name>
        <CreationDate>1125601471848</CreationDate>
        <ModifiedDate>1125601471848</ModifiedDate>
        <Roster>
          <Item jid="joe@localhost" askstatus="-1" recvstatus="-1" substatus="3"/>
        </Roster>
      </User>
    </Openfire>

    Below is a list of the different status types and what their associated numbers mean.

    askstatus
    -1 The roster item has no pending subscripton requests.
    0 The roster item has been asked for permission to subscribe to their presence but no response has been received.
    1 The roster owner has asked to the roster item to unsubscribe from it's presence but has not received confirmation.

    recvstatus
    -1 There are no subscriptions that have been received but not presented to the user.
    1 The server has received a subscribe request, but has not forwarded it to the user.
    2 The server has received an unsubscribe request, but has not forwarded it to the user.

    substatus
    -1 Indicates the roster item should be removed.
    0 No subscription is established.
    1 The roster owner has a subscription to the roster item's presence.
    2 The roster item has a subscription to the roster owner's presence.
    3 The roster item and owner have a mutual subscription.

  • XEP-0227 Compliance - Both Import and Export have an option to enable to use the format as defined in XEP-0227. This format is intended as a Portable Import/Export Format for XMPP-IM Servers. When importing, the xml input file will be checked against a set of xsd's which are compliant with XEPP-0227. These are located in the classes directory of the userImportExport.jar.
  • Releases Info File Version Released Openfire Version
    Plugin User Import Export
    Enables import and export of user data
    ReadMe Changelog Download 2.7.1 Tue Nov 21 10:16:29 UTC 2023 4.3.0 +
    Plugin User Import Export
    Enables import and export of user data
    ReadMe Changelog Download 2.7.0 Mon Jul 01 00:00:00 UTC 2019 4.3.0 +
    Plugin User Import Export
    Enables import and export of user data
    ReadMe Changelog Download 2.6.2 Mon Oct 02 00:00:00 UTC 2017 4.0.0 +
    Plugin User Import Export
    Enables import and export of user data
    ReadMe Changelog Download 2.6.1 Thu Jun 22 00:00:00 UTC 2017 4.0.0 +
    Plugin User Import Export
    Enables import and export of user data
    ReadMe Changelog Download 2.5.0 Mon Oct 12 00:00:00 UTC 2015 3.11.0 alpha +
    Plugin User Import Export
    Enables import and export of user data
    ReadMe Changelog Download 2.4.0 Fri Sep 13 00:00:00 UTC 2013 3.9.0 +
    Plugin User Import Export
    Enables import and export of user data
    ReadMe Changelog Download 2.3.1 Fri Jul 13 00:00:00 UTC 2012 3.7.0 +
    Plugin User Import Export
    Enables import and export of user data
    ReadMe Changelog Download 2.2.0 Thu Apr 12 00:00:00 UTC 2007 3.3.0 +
    Plugin User Import Export
    Enables import and export of user data
    ReadMe Changelog Download 2.0.4 Fri Oct 06 00:00:00 UTC 2006 3.1.0 +

    The plugins below, so-called SNAPSHOTS, are build automatically by the continuous integration system. They represent the latest development, but are untested.

    Snapshots Info File Version Built at Openfire Version
    Plugin User Import Export
    ReadMe Changelog Download 2.7.2-SNAPSHOT Tue Nov 21 10:16:10 UTC 2023 4.3.0 +
    Plugin User Import Export
    ReadMe Changelog Download 2.7.1-SNAPSHOT Wed May 03 19:59:07 UTC 2023 4.3.0 +
    Plugin User Import Export
    ReadMe Changelog Download 2.7.1-SNAPSHOT Thu Apr 21 13:39:26 UTC 2022 4.3.0 +
    Plugin User Import Export
    ReadMe Changelog Download 2.7.1-SNAPSHOT Wed Oct 27 13:51:33 UTC 2021 4.3.0 +
    Plugin User Import Export
    ReadMe Changelog Download 2.7.1-SNAPSHOT Sun Jan 31 18:39:52 UTC 2021 4.3.0 +
    Plugin User Import Export
    ReadMe Changelog Download 2.7.1-SNAPSHOT Fri Oct 30 16:37:35 UTC 2020 4.3.0 +
    Plugin User Import Export
    ReadMe Changelog Download 2.7.1-SNAPSHOT Tue Oct 13 11:28:14 UTC 2020 4.3.0 +
    Plugin User Import Export
    ReadMe Changelog Download 2.7.1-SNAPSHOT Tue Oct 13 00:39:45 UTC 2020 4.3.0 +
    Plugin User Import Export
    ReadMe Changelog Download 2.7.1-SNAPSHOT Wed Sep 09 13:41:34 UTC 2020 4.3.0 +
    Plugin User Import Export
    ReadMe Changelog Download 2.7.1-SNAPSHOT Wed Sep 09 00:53:10 UTC 2020 4.3.0 +
    Plugin User Import Export
    ReadMe Changelog Download 2.7.0-SNAPSHOT Thu Apr 02 14:11:11 UTC 2020 4.3.0 +
    Plugin User Import Export
    ReadMe Changelog Download 2.7.0-SNAPSHOT Tue Feb 11 15:21:59 UTC 2020 4.3.0 +
    Plugin User Import Export
    ReadMe Changelog Download 2.7.0-SNAPSHOT Tue Feb 11 14:23:04 UTC 2020 4.3.0 +
    Plugin User Import Export
    ReadMe Changelog Download 2.7.0-SNAPSHOT Fri Jan 31 19:32:47 UTC 2020 4.3.0 +
    Plugin User Import Export
    ReadMe Changelog Download 2.7.0-SNAPSHOT Fri Jan 31 19:17:58 UTC 2020 4.3.0 +
    Plugin User Import Export
    ReadMe Changelog Download 2.6.3-SNAPSHOT Sat Jul 13 19:20:46 UTC 2019 4.3.0 +
    Plugin User Import Export
    ReadMe Changelog Download 2.6.3-SNAPSHOT Fri Jul 12 10:10:12 UTC 2019 4.3.0 +
    Plugin User Import Export
    ReadMe Changelog Download 2.6.3-SNAPSHOT Thu Dec 27 21:10:50 UTC 2018 4.3.0 +
    Plugin User Import Export
    ReadMe Changelog Download 2.6.3-SNAPSHOT Thu Dec 27 20:29:17 UTC 2018 4.3.0 +