I had a customer ask me yesterday if AuthAnvil supports importing users from a CSV file. The answer is yes, just not through the UI. AuthAnvil exposes just about all of its functionality through the AuthAnvil web services, and these can be called through PowerShell, which means that we can combine these to do interesting things, with the end result of being able to do any AuthAnvil Management tasks through PowerShell. By taking advantage of PowerShells Import-Csv Cmdlet, we can bring a properly-formatted CSV file into PowerShell, and feed it into AuthAnvil, creating users and assigning them tokens, without having to add each one manually.
You just need a CSV file saved in the following format: (where 1 means that the user will be assigned a SoftToken, and 0 means that the user will be assigned a hardware token)
Note: This tool was designed for 2FA v4.x and older.
Its just that simple.
Note: This script requires PowerShell 2.0, and, if you haven't done so already, you will need to set your execution policy to unrestricted to allow the script to run. Instructions on how to do so are available from Microsoft TechNet.
Update Feb. 28/2014
Attached to this article is a version that will work with v4.0 - v188.8.131.52.
Note: This script is not compatible with 2FA v5.5 - newer.
If you have any questions or need some help, we would be happy to assist. Open a case at kaseya.zendesk.com .