On Mon, Aug 24, 2020, 5:46 PM Kamakshi Aggarwal
<
kamaks...@gmail.com> wrote:
>
> Now if user leaves the company how should I set "is_active" field to
> False.
>
There are two ways to do it. One is to write a view which lets someone
in HR turn it off. The other is to use Django Admin with the correct
privileges and do the same.
If is_active == False, django.auth will disable login for that user. I
don't know about your SSO backend. You need to ensure that it respects
is_active in the same way as Django.
Cheers
Mike
--
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Just
ask and I'll send it to you. Your email software can handle signing.