Re: Deactivate/disable User id in Postgres

From: Rui DeSousa <rui(at)crazybean(dot)net>
To: Rajin Raj <rajin(dot)raj(at)opsveda(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Deactivate/disable User id in Postgres
Date: 2020-05-04 14:45:49
Message-ID: C7E7153B-3CE6-4B58-8C75-5B2FEAAC014B@crazybean.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> On May 4, 2020, at 7:29 AM, Rajin Raj <rajin(dot)raj(at)opsveda(dot)com> wrote:
>
> Hi,
>
> Is there any option to deactivate/disable a user id in Postgres?
> I can think of below two options,
>
> ALTER USER <user_id> WITH CONNECTION LIMIT 0;
> ALTER USER <user_id> WITH NOLOGIN
>
> Is there any better approach?
>
> Regards,
> Rajin

Using external authentication is an option too. i.e. using LDAP; disabling the account in LDAP means the user cannot login.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Brian Hansen 2020-05-04 15:28:58 Error Message
Previous Message John Scalia 2020-05-04 11:50:30 Re: Deactivate/disable User id in Postgres