Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Well, after a few hours of googling, I still can't find an answer, not even partial one. Is this even possible, or it must be custom solution?

What I have tried:

I've played around with locked out feature of Identity, but it seems, that is not the answer, because in that scenario user is locked out for a fixed amount of time, not indefinitely.
Posted
Updated 5-Nov-18 4:23am
v2

1 solution

Welcome to the club of people looking for permanently disabling a user.

We have used different versions of Identity going back about a decade, the method we ended up with was going custom; adding a AccountLocked [bit] field to the db schema.
We do have an Admin interface to manage all of the users, so this method was not too hard to add in. It also would be easy to set the Lockout Time to some really far into the future date as well.

The NuGet package has a recent discussion on this; and it appears that this method is what they are considering for the future:
What is considered best practice for disabling / deactivating users? · Issue #1858[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900