Ask Your Question

jackmmmmm's profile - activity

2019-05-21 21:43:12 -0500 received badge  Popular Question (source)
2019-05-14 04:57:05 -0500 asked a question python-keystoneclient API: set user password expiration

I notice the API UserManager.get returns following data structure:

[<User domain_id=default, enabled=True, id=2413b2f667d2471a9ed39cbf213ad03d, links={u'self': u''}, name=admin, options={}, password_expires_at=None>]

I would like to set the field password_expires_at but couldn't find out how to format the date. I have tried:

UserManager.update(userid, password_expires_at='2020-01-01T15:09:45.000000')

It didn't work out. Any advise?