Try our conversational search powered by Generative AI!

Delete an user via admin gui does not delete the profile

Vote:
 

When I delete an user from admin page. I can see that I still have a row for that deleted user in aspnet_Profile

Next time I create a new user with same username as the deleted one. It automatically gets that old profile connected to the new user.

Is this correct behaviour?

Expected for me is that when I delete an user, the profile gets deleted as well from aspnet_Profile.

or that I can call something like EPiServerProfile.Delete(..) would be nice.

Thanks for taking your time

#183560
Oct 17, 2017 14:57
Vote:
 

Hey, Stefan,

If you are using latest Episerver, you could intercept user provider, see Dejan's blogpost here.

BR,
Marija

#183639
Oct 18, 2017 16:44
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.