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 ...Delete user accountDelete user account
Previous
 
Next
New Post
10/24/2007 5:02 PM
 

I would like to disable access of some of the users to the site. I found 2 ways to do it. Delete and Unauthorize the user account. But none of them does what I wanted. I can not delete the user account as I have transaction records tied to the user. I can unauthorize the user but it shows up with the new users (not yet authorized). Is there a way I can unauthorize the user so they can not use the site and also disable them so they wont show up the unauthorized list. or any other means to achive this. I appreciate you help. Thanks.

 
New Post
10/25/2007 3:40 AM
 

I don't think there's another way.

For existing user accounts there are two statuses: authorized and unauthorized. DNN doesn't care if a person is not yet authorized (i.e. newly registered) or no longer authorized (i.e. has been aunoauthorized by admin), and will always place this account in the list of unauthorized user accounts. So when you authorize new accounts you will need to check for this particular user account to make sure you don't accidentally re-authorize it.

As long as the account is unauthorized, the user will not have access to any of the "registered users" areas of your website.

Vera

 
New Post
10/29/2007 4:10 PM
 
After little research I implemented the hiding of the disabled users from the unauthorized users list. I created a role called "Disabled Users" and assign it to all the users I wanted to unauthorized but don’t want them to show up in unauthorized new users. then I unauthorized those users. I modified the "BindData" method of "Users.ascx.vb". I modified the following 3 lines and rest is kept as it is. If SearchText = Localization.GetString("Unauthorized") Then Users = UserController.GetUnAuthorizedUsers(UsersPortalId, False) ctlPagingControl.Visible = False : : : Replace above 3 lines with the following: Dim delUsers As New List(Of UserInfo) If SearchText = Localization.GetString("Unauthorized") Then Users = UserController.GetUnAuthorizedUsers(UsersPortalId, False) Dim oRoleController As New DotNetNuke.Security.Roles.RoleController For Each oUser As UserInfo In Users Dim strRoles() As String = oRoleController.GetRolesByUser(oUser.UserID, UsersPortalId) For Each str As String In strRoles If str.ToString.ToUpper = "Disabled Users".ToUpper Then delUsers.Add(oUser) Exit For End If Next Next For Each oUser As UserInfo In delUsers Users.Remove(oUser) Next ctlPagingControl.Visible = False : : : Also add the following in the beginning Imports System.Collections.Generic I am not sure if it will any other behavior but so far it didn’t affect anything else in my tests and working fine. It would be nice feature if "Disabled Users" is added to default roles like "Registered Users" in future version of DNN.
 
New Post
10/29/2007 4:11 PM
 

Thanks Vera.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Delete user accountDelete user account


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