API Deletuser

Kelly Shepard asked on July 27, 2016 22:51

Do this also delete the user from any roles/memberships/sites, ect private bool DeleteUser() { // Get the user UserInfo deleteUser = UserInfoProvider.GetUserInfo("MyNewUser");

// Delete the user
UserInfoProvider.DeleteUser(deleteUser);

return (deleteUser != null);

}

Recent Answers


Laura Frese answered on July 28, 2016 03:47

Yes

1 votesVote for this answer Mark as a Correct answer

Chetan Sharma answered on July 28, 2016 14:53

Roles are assigned to a user and a User is unqiue row in a database. Considering this relationship deleting a user will make it so. Deletion of a user will delete all associations.

Thanks, Chetan

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.