Saturday, May 23, 2009

How to export a subset of users using the XML Configuration Interface

How do you export a single user or a subset of users from an IBM WebSphere Portal configuration using XMLAccess?


Take a copy of the sample XML file, "ExportAllUsers.xml", located in the /doc/xml-samples directory and make the following changes:

1. Near the top of the file set export-users to false or remove export-users="true" from the file entirely.

2. Delete the following lines that serve to export all users and groups:

3. To export a single user by uid, add a line similar to the following:

This example exports the user, "wpsadmin", using the xmlaccess parameter, "name", that corresponds to uid. You may also export users using other attributes such as "common name" if uid is not defined in your repository. Review the WebSphere Portal Information Center XML Configuration reference page for 6.0 or 6.1 for more information.