Link to home
Start Free TrialLog in
Avatar of pvsbandi
pvsbandiFlag for United States of America

asked on

Postgres - force the users to change password periodically

Greetings, 

       We are on Postgres 13.4 on AWS RDS.

Is there a way to force users to change their password after 60 days.


Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

You can alter the role to set the 'valid until':
https://www.postgresql.org/docs/13/sql-alterrole.html

I don't know of a build in way to set a grace/reminder period nor do I know a way to have the valid until' reset for another 60 days.

Seem there are a few tricks using triggers on the web if you look around a little.
ASKER CERTIFIED SOLUTION
Avatar of lcohan
lcohan
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pvsbandi

ASKER

Thank you!