We run a script every month that creates a XML file of any user who has not viewed (or been added) within the last 90 days. This is our way of removing inactive users and staying under our license entitlement. Once the script is done we have an xml file of users that are eligible to be deleted.
We then run the following command:
arsxml delete -h hostserver -u userid -p password -x -i /migrate2/mt/deleteusers.xmlBelow is sample of what the deleteusers.xml script would contain:
<?xml version="1.0" encoding="UTF-8"?>
<onDemand xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="/opt/ibm/ondemand/V9.0//xml/ondemand.xsd">
<user name="USERNAME" />
</onDemand>