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 Community Exchange, where community members ask and answer questions about DNN. To get started, just start typing your question below and either select one of the suggested questions or ask a new question of your own.

Roles are deleting when the user is deleted?

Return to previous page

  • 12/9/2012
  • 2345 Views

Question:

Srinubabu Ravilla long time ago

Hi i am deleting the user as follows.

UserController userController = new UserController(); 

 UserInfo user = userController.GetUser(currentUser.PortalID, currentUser.UserID);

 UserController.DeleteUser(ref user, true, false); // soft delete of user

When i am deleting the user the user roles are also deleting. I dont want to delete the  user roles. how could i implement this. is there any solution for this.....


Roles are deleting when the user is deleted?

Srinubabu Ravilla
Srinubabu Ravilla long time ago
Add an Answer

Answers

Sign In to Participate
Or register to become a member