Appboard/old/batch loading users
The AppBoard/enPortal administration user interface (UI) is a robust set of screens and menus that assist the administrator with configuring Users, Domains, Roles, and content permissions in the system. However, in cases with a high volume of Users, a tool may be desired that will enable the administrator to process batch updates to the system.
This document outlines a method of creating an AppBoard/enPortal customization to allow an administrator to implement some elements of User Provisioning outside of the standard application UI.
Batch Processing of Provisioning Updates
There are several potential options for an administrator to perform batch updates to system provisioning:
- Custom JSP - Installing a custom JSP file that exposes a web interface to manage users.
- XML Load - This method involves creating an XML file detailing the updates to be made in the system, and then loading the file. Because of the effort required in formatting the XML file, this is typically not a preferred method. The XML Load solution is the option detailed in this document.
- API Access Interface - A tool and interface can be built that would provide direct access to the AppBoard/enPortal provisioning API. This may be available in the future as a product enhancement.
XML Load Instructions
This section details the procedures for implementing the XML Load solution for direct provisioning.
Installation and Configuration
Perform the following steps to create an XML Load file for custom batch provisioning:
- Save the code shown in the "XML Code" section below into a text file with the file name: batchLoad.xml
- Modify the XML code as appropriate to meet the needs of the customer.
- Save the file in to ${Application_Home}/server/webapps/enportal/WEB-INF/xmlroot/server/provisioning/batchLoad.xml
- Load the XML File into the system, as detailed under Applying Provisioning Updates
XML Sample Code
[xml,N]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE AccountDefinitions SYSTEM "../dtds/AccountDefinitions.dtd">
<AccountDefinitions>
<Role name="testing"/>
<Role name="manager" parentRoleID="/testing"/>
<Domain name="EdgeFairfax">
<User userID="ktaylor">
<RoleLink roleID="/testing/manager"/>
<RoleLink roleID="/training"/>
</User>
<User userID="jrowe">
<RoleLink roleID="/training/instructor"/>
</User>
</Domain>
<Domain name="EdgeLaurel">
<User userID="cmorgan">
<RoleLink roleID="/testing"/>
</User>
</Domain>
</AccountDefinitions>
Applying Provisioning Updates
Perform the following steps to apply provisioning updates using the XML batch file:
- Follow the steps above under Installation and Configuration to save the XML code into the application file system as ${Application_Home}/server/webapps/enportal/WEB-INF/xmlroot/server/provisioning/batchLoad.xml.
- Create the following single-line file as ${Application_Home}/server/webapps/enportal/WEB-INF/xmlroot/server/loadBatch.txt:
- provisioning/batchLoad.xml
- Perform the following steps to load the XML file into the system database:
- Log into enPortal/AppBoard as an administrator.
- Go to the enPortal URL: http://<hostname>:port/enportal/home
- Under the “Advanced” tab, select “XMLImport”.
- Click “Start” to detect and load the XML file into enPortal.
- Observe the message that batchLoad.txt was loaded into the system.
- In the Admin UI, review and confirm that the new User accounts and assignments were automatically created.