Saturday, May 23, 2009

How to export a single group or subset of groups using the XML configuration

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


Make 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 in the file as installed:

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

This example exports the group, "wpsadmins", using the xmlaccess parameter, "name", which corresponds to the uid.

Exporting a group in this way will also export the members of the group. Each group member will appear on a separate line in the output. The output XML file will look as follows:

You may also export groups using other attributes such as "common name" if the uid is not defined in your repository. Review the WebSphere Portal Information Center page XML Configuration reference for 6.0 or 6.1 for more information.