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);
}
Yes
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
Please, sign in to be able to submit a new answer.