Account Creation Script (not spam)
June 5, 2009 4:45 PM   Subscribe

Simple need for autofilling a web page with a different set of variables each time. Assuming I have a CSV of the user accounts I need to create, how can I create or find a script that will let me create new accounts by entering the CSV info into set fields (name, email, password), submitting and then automaticaly proceeding onto the next user account? This is for Active Directory account creation on a website through a Citrix Client, totally legitimate, not spamming.
posted by BrodieShadeTree to Technology (6 answers total)
 
If you are autofilling AD, you are unlikely to do it via a webpage that requires user entry. If you already have the AD values in CSV format, there are ways to do it, but your description is problematic (not in a bad way, necessarily), it just needs some more description

Reporting that information once asked for is a piece of cake, but I'm not sure what you're asking for here.
posted by Sparx at 5:08 PM on June 5, 2009


You can just craft your own post with parameters if you look at the source and get the names of the fields.

If you need to use the web form for some reason, Selenium should do the trick.
posted by Civil_Disobedient at 7:44 PM on June 5, 2009


If you're familiar with perl, I'd look at the WWW::Mechanize module. It's designed for this kind of thing.
posted by hattifattener at 9:18 PM on June 5, 2009 [1 favorite]


Response by poster: Very specifically, I am looking at a citrix window. This window asks me for fields to be filled in . Name, Email, desired password. This would simply create a user in the AD on the far side. Then I can reload the same window and do that again for user #2,# 3- #289. Assuming I have a CSV, I would like to be able to automate the creation of these user accounts.
posted by BrodieShadeTree at 11:32 PM on June 5, 2009


Response by poster: I just figured out a way to get to the user creator page without using CITRIX if this helps.
Here is the way it looks.
1. I go to site https://xxxyyyzzz.org/site2/um/adduser.aspx, I click ADD USER.
2. I get to https://xxxyyyzzz.org/site2/um/adduser.aspx, and fill in fields. Click ADD,
GOTO 1.
Repeat.

Can I automate this two page process?
posted by BrodieShadeTree at 11:44 PM on June 5, 2009


Response by poster: I guess the question I am left with is, how do I get the csv to populate those forms now that I know how to submit them? Ie. I can create the script to run and fill the forms, but how to I get it to proceed through a csv file line by line each time it runs?
posted by BrodieShadeTree at 4:29 PM on June 6, 2009


« Older What is this tool? Seedling waterer? Bonsai?   |   Recommend post-apocalyptic man+woman team vs world... Newer »
This thread is closed to new comments.