This project is read-only.

Scripted User Account Creation

Topics: Administration, Core, Customizing Orchard
May 31, 2013 at 6:58 PM
Does anyone know of a way to script the creation of user accounts? I have an existing home grown web site that leverage aspnet membership provider and would like to migrate those accounts to Orchard. I read a previous post where you can bring over the password hash and salt so that password do not have to be reset (I tested this and it works). What I am looking for now is a way to script the creation of some 350 accounts. Simply creating the records in the Orchard_Users_UsersPartRecord and Orchard_roles_UserRolesPartRecord tables isn't enough. Any info on the database schema would be helpful but ideally an API hook would be best.
May 31, 2013 at 7:15 PM
IMembershipService in Orchard.Security has a CreateUser method that enables you to create users.
May 31, 2013 at 7:25 PM
Excellent. Thanks for the quick response. I will check it out.