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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DotNetNuke 5.1 User Accounts Not Actually Deleted?DotNetNuke 5.1 User Accounts Not Actually Deleted?
Previous
 
Next
New Post
7/30/2009 1:22 PM
 

We are unsure how to delete old users as well.

When building websites or testing custom registration modules that we have built, we often have to add test users to live sites to make sure it works as it should.

How do we delete these test users without having to modify the database manually?

 
New Post
7/30/2009 2:45 PM
 

Basically with the change to soft delete, this is no longer really an option.

You "could" bypass the API and do it yourself, but the risks are a bit high.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
7/30/2009 3:57 PM
 

cathal connolly wrote
you should never do direct database access of dotnetnuke core tables in your modules, it's simply too dangerous. If we alter schema, or functionality of these, your modules may not work correctly. You should instead use the DotNetNuke API as it will always be in sync with any changes.

Cathal

I would call this an "orphaned user". 
There is no way I can find to "undelete" a user either thru the DNN API or the UI.

How would I "restore" a soft deleted user to active status through DNN API code or the UI?

What is the practical difference between an "unauthorized" user and a "soft deleted" user?

It would seem that this feature is not fully implemented.

mikez

 
New Post
7/30/2009 4:26 PM
 

Jay Mathis wrote

Another interesting fact, is that deleting the User trhough the UI does not actually set the IsDelete flag on the User table, but rather the UserPortals table.  In factm I am not sure how the IsDeleted flag on User ever gets set.

Regular users (and administrators) are soft-deleted through a set on the IsDeleted bit in the UserPortals table; host users are soft-deleted via the Users table.  As far as I am aware this is the only distinction (and consequentially the only use of the IsDeleted flag on the Users table).  This is perhaps a bit unintuitive -- there will be lots of users in the Users table that are really deleted from all portals but have IsDeleted=0, but c'est la vie.

Beyond that, while there are some considerations introduced with this change, keep in mind that there also some upsides.  In addition to the enhanced non-repudiation offered by ensuring that users can't suddenly vanish, consider also that module developers no longer have to deal with references to users who suddenly vanish.

Brandon

 


Brandon Haynes
BrandonHaynes.org
 
New Post
7/30/2009 7:16 PM
 

cathal connolly wrote
 

you should never do direct database access of dotnetnuke core tables in your modules, it's simply too dangerous. If we alter schema, or functionality of these, your modules may not work correctly. You should instead use the DotNetNuke API as it will always be in sync with any changes.

Cathal

Absolutly right.  Great advice. May we know where this API is documented?


Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DotNetNuke 5.1 User Accounts Not Actually Deleted?DotNetNuke 5.1 User Accounts Not Actually Deleted?


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