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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Delete Child Portal UserDelete Child Portal User
Previous
 
Next
New Post
2/15/2007 12:24 PM
 

Hi,
I'm using V04.03.05 and building a site with multiple child portals.
I found when a user registers at the main portal (portalId 0) and later at a child portal everything seems to work just fine.
When I delete the user later from the child portal (I use the UserController.DeleteUser() function), the user is deleted from the DNN tables (for this child portal) and remains as a DNN user for portal 0. This is what I want.
But... the user is also deleted from the ASP Membership and ASP User tables and won't be able to login on the main portal.
There was only one record for this user in the ASP tables to begin with even if the user registered on multiple child portals and this record seems to be deleted with the DeleteUser call.
Is this normal behaviour or am I missing something?
Thanks in advance!!
Dirk

 
New Post
2/16/2007 3:15 AM
 

I know how it works in the database, but am not sure for the API.

Did you try searching for a DeletePortalUser function (or something named like that) in the user API?

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
New Post
2/16/2007 10:16 AM
 

I noticed there is a stored procedure with this name and as a workaround I use the same procedure to just delete the user record from the UserPortals table. This seems to work! (user can still login to the main portal but no longer to the child)
I think it should be addressed in the core also because the same happens when you delete a user from a child portal with the user mananger (as site admin user).

I'm wondering if I can just add an exsting user (registered on portal 0) to a child portal by adding a record to the UserPortals table instead of using the UserController.CreateUser function? It seems there is only one DNN and ASP User anyway. (different from V3 where each child portal had its own user, password, etc.)

Thanks!

 
New Post
2/18/2007 6:09 AM
 

That's great!

You should be able to add / delete a user from portal like that, only be carefull because in DNN you need to sync changes with DNN various user tables and ASPNET membership ones.

Take a look at those procedures and check if they do the work in both areas, if they do, great! if not check out the data in the ASPNET ones and see how to delete them (it's quite easy as I remember)

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Delete Child Portal UserDelete Child Portal User


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