Just a quick entry to post this sample.  A few folks have had trouble getting the Account Management API to work correctly.  This is a simple sample I wrote to enumerate the accounts in a profile that hopefully will help.  Download it here.