Re: Deactivate/disable User id in Postgres

From: John Scalia <jayknowsunix(at)gmail(dot)com>
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 11:50:30
Message-ID: 1590FC39-7BA9-4B29-953E-7C01E70E52E9@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Setting the role for NOLOGIN is probably your best route. You could also revoke their privileges on any database object, if you were especially concerned.
—
Jay

Sent from my iPad

> On May 4, 2020, at 7:30 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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Rui DeSousa 2020-05-04 14:45:49 Re: Deactivate/disable User id in Postgres
Previous Message Rajin Raj 2020-05-04 11:29:43 Deactivate/disable User id in Postgres