Re: Guidance on user deletion - Mailing list pgsql-admin

From David G. Johnston
Subject Re: Guidance on user deletion
Date
Msg-id CAKFQuwbzfRCo3FhAK+ae51gV65N5judL7x7TnURY4UZo9r23Jg@mail.gmail.com
Whole thread Raw
In response to Re: Guidance on user deletion  (Ron Johnson <ronljohnsonjr@gmail.com>)
List pgsql-admin


On Sunday, May 12, 2024, Ron Johnson <ronljohnsonjr@gmail.com> wrote:
On Sun, May 12, 2024 at 6:56 AM vrms <vrms@netcologne.de> wrote:

The five account systems I've had experience with (OpenVMS, Linux, Active Directory, SQL Server, Postgresql) all have the ability to expire users, and to unexpire them if the person ever returns.
how do you practically expire an account in postgres?

ALTER ROLE ... VALID UNTIL 'timestamp';
 

I suppose, but that only expires the password, not invalidates the role.  There isn’t a concept of “invalid role”.  If you want to prevent a role from being used to login remove the login attribute.

David J.
 

pgsql-admin by date:

Previous
From: Wasim Devale
Date:
Subject: Postgis
Next
From: Edwin UY
Date:
Subject: ora2pg partitioned table DDL 'not working'