Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Adding 400 users Adding 400 users 'behind the scenes'...
Previous
 
Next
New Post
10/31/2006 4:14 PM
 

Hello.

I've finally figured out how to code a module, and now about to use DNN for our intranet.

Question, is there an easy way to add 400 new users with the same generic role into DNN?

I have 400 users from another database taht I'd like to 'import' into the DNN database. Is there a set of
SP's that I should call?

I assume:

for (int i=0;i<users.count;i++){

call SP to create user
call SP to assign role to user
call SP to add to portal

}

Or something like that?

Any help would greatly be appreciated.

Thanks

whirley

 
New Post
11/1/2006 4:53 AM
 

I recommend getting a third party module to do this. You may find it very difficult to do with a SQL script. There are many modules on Snowcovered, for example Bulk User Import & Export .

If you want to use SQL, the tables you need to update are:

Users, UserPortals, Roles, UserRoles, aspnet_Users and aspnet_Membership

The aspnet_Users and aspnet_Membership tables will be the hardest to update. The aspnet_Membership record needs an application_id = application_id from aspnet_Applications where ApplicationName = 'DotNetNuke' and a user_id = user_id from aspnet_Users where username = your username. The trouble is you also have to enter values for password & passwordsalt (encrypted password). If you have password encryption turned on in your web.config this could be tough - maybe copy the values from another user?

Note: in past versions of DNN a user needed to have records in all the aspnet_ tables, but in the latest DNN version it looks like the only aspnet_ tables that are used are aspnet_Applications, aspnet_Users and aspnet_Membership.

 
New Post
11/2/2006 9:00 PM
 

If you want to import user accounts from OLEDB data sources (ex. MS SQL, Oracle, DB 2, Excel, CSV, mySQL, etc.) check out this product:  http://www.workcontrol.com/Products/UserImport/ProductInformation/tabid/104/Default.aspx

 


Fuji Nguyen
FREE Visitor Hit Counter
Visit opensource.indyneinc.com for detail.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Adding 400 users Adding 400 users 'behind the scenes'...


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out