Users & Groups Import
1. Introduction
This guide will quickly walk you through installing and configuring a PHP script that allows you to automatically import groups and users into Cascade Server. It assumes that you have a recent version of PHP (5 or greater) installed on your web server and that you are comfortable with Cascade. Knowledge of PHP is also useful, but not necessary to use this guide.
2. Components
There are four components to the script including the script itself, a configuration page, a data definition to render the configuration page, and an example XML feed of groups and users to be imported into the CMS. The script will read its configuration from a configuration file that you will publish with the use of a data definition. Then using the information provided from the configuration page, the PHP script will import all the groups and users provided in the XML file.
3. The Configuration Page
Create a page called "users-group-xml-import-config.xml", and give it a .php publish extension. Then give it the "users-group-xml-import-config-data-definition.xml" data definition. Supply a valid server URL, username, password, and path to the XML feed relative to PHP script. Next, choose an authentication type for all the users that will be imported and whether to enable the users or not by default. Publish this page and "users-group-xml-import.php" in the same folder, and your script will be ready for use.
4. Usage
To use the script, upload the script to your CMS, and publish it. Fill in all fields in the configuration page, and then publish it as well. Once both of these are published, run the script from your server. All the groups and users specified in the XML file will then be automatically imported into the CMS.
Example Files
- users-and-groups-import-PHP.zip
This is a zip file with all the necessary scripts and XML files for PHP. - user-and-groups-import-NET.zip
This is a zip file with all the necessary scripts and XML files for .NET. - users-group-xml-import-config-data-definition.xml
This is the data definition to visually configure the XML config file. - users-group-xml-import-config-xml-php.txt
This is an example XML configuration file for the import script. - users-group-xml-import-xml-php.txt
This is an example XML file from which to import users and groups. - users-group-xml-import-php.txt
This is the main script that processes the XML file. - wsdl.dll
This is the .NET helper DLL for interacting with the Cascade Server WSDL. - users-group-xml-import-aspx.cs
This is the front-end .NET script. - users-group-xml-import.aspx
This is the .NET include file.

