users = keystone.users.list()
for row in users:
print row.email
Getting below error :
/*******************************************/
File "/usr/lib/python2.7/site-packages/keystoneclient/base.py", line 496, in __getattr__
raise AttributeError(k)
AttributeError: email
/*******************************************/
becuase in the user details, email field does not exist:
<User domain_id=e07a8e155862444eb9e966121fd161ce, enabled=True, id=8cda896fe33e4ed58e39b97157d38280, links={u'self': u'http::5000/v3/users/8cda896fe33e4ed58e39b97157d38280'}, name=, password_expires_at=None>
if deafult project exist then only we can access email field?
<User default_project_id=8cb63b3a72894e18ad18b1c56b4dc3e9, domain_id=e07a8e155862444eb9e966121fd161ce,
<email address hidden>, enabled=True, id=9ba608bc868d4333be1d06a8db3e8cbc,
links={u'self': u'http://xyz:5000/v3/users/9ba608bc868d4333be1d06a8db3e8cbc'}, name=anil, password_expires_at=None>
So how to access user email field when default_project_id does not exist?
using V3 API we cannot access user email?
users = keystone. users.list( )
for row in users:
print row.email
Getting below error : ******* ******* ******* ******* ******* **/ python2. 7/site- packages/ keystoneclient/ base.py" , line 496, in __getattr__
/******
File "/usr/lib/
raise AttributeError(k)
AttributeError: email
/****** ******* ******* ******* ******* ******* **/ id=e07a8e155862 444eb9e966121fd 161ce, enabled=True, id=8cda896fe33e 4ed58e39b97157d 38280, links={u'self': u'http: :5000/v3/ users/8cda896fe 33e4ed58e39b971 57d38280' }, name=, password_ expires_ at=None>
becuase in the user details, email field does not exist:
<User domain_
if deafult project exist then only we can access email field? project_ id=8cb63b3a7289 4e18ad18b1c56b4 dc3e9, domain_ id=e07a8e155862 444eb9e966121fd 161ce, 4333be1d06a8db3 e8cbc, xyz:5000/ v3/users/ 9ba608bc868d433 3be1d06a8db3e8c bc'}, name=anil, password_ expires_ at=None>
<User default_
<email address hidden>, enabled=True, id=9ba608bc868d
links={u'self': u'http://
So how to access user email field when default_project_id does not exist?