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 ...deleting users - not really deleteddeleting users - not really deleted
Previous
 
Next
New Post
3/31/2010 12:26 PM
 

I believe beginning with v5.02 the softdeletion is marked in the table userportals. Softdeleting will  as well harddelete the userroles in table userroles.

For the harddelete of a user I figure that first the aspnet_users and the aspnet_membership records will have to be deleted then the record in users, which should pass the deletion to relevant dnn tables. The ASPnet_users seem to be joined on the username/loweredusername, so it would be kind of hard to delete the records in users first.

When we do a harddelete, we only delete softdeleted users, which we first write (trigger) into a table when they are softdeleted. In that way we keep the userinformation of all harddeleted users.

We are aware, that any update of dotnetnuke might break that system (as 5.02 did compared to older versions) and that there might remain harddeleted userids in tables of other modules and that we have to pay attention to not delete userids which are registered on several portals.

We just setup an environment for that and for now it works. I am very curious about other opinions or risks we did not consider yet.

 
New Post
3/31/2010 12:35 PM
 

Chris, I setup some SQL to for hard deleting soft deleted users, you can see it in my recent blog post.

http://www.dnndaily.com/tips/itemId/3...

 


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
3/31/2010 2:01 PM
 

Chris, I am really glad to have someone to discuss that matter.

What we found is that executing a softdelete in dnn will not only set isdeleted in userportals but delete the corresponding userroles. If there are any roles left to the userid, they will belong to another subportal!? It might be an idea to do a count on userroles und to only proceed the harddelete if there isnt any role left!
I think there is no need to delete the userroles or userprofiles cause they will be automatically deleted if you delete in users.

Anyway, I am a little afraid of what will happen if dnn changes the dbprofile again, as done with 5.2. Before 5.2 isdeleted in userportals wasnt used. If you have an idea where to quickly pick up what is changed in releases concerning db structures I'd be very happy.

 
New Post
4/19/2010 6:17 AM
 
Hi I am running DNN 5.02.01. I've tried running the scritps to hard delete the users but they didn't work. I checked the data and found that the users still existed in the aspnet_membership table. I removed them from there and I was able to add them again. What is the current situation regarding this mess? Is there a new DNN version that fixes this? It all appears very broken to me. I'm a little bit shocked that DNN was released in this state. Who needs soft delete anyway? I'd rather have seen bulk delete or role based delete or 'delete all' rather than an unfinished soft/hard delete. It's a critical area and should have been treated as such. Gus Gus

"if the only tool you have is a hammer you tend to see every problem as a nail" http://www.carawaydesign.com
 
New Post
4/19/2010 6:47 AM
 
Sorry I realise now that the scripts do work. The client had deleted about 50 users so I had to run it over and again until it cleared the back log. I will have to modify it to delete all the soft deleted users in one hit and not just the top 1. gus

"if the only tool you have is a hammer you tend to see every problem as a nail" http://www.carawaydesign.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...deleting users - not really deleteddeleting users - not really 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