<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hey Luis,<div><br></div><div>Through the admin API - there is:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">       /tenants/{tenant_id}/users/{user_id}/roles</span></div><div><br></div><div>and</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">       /users/{user_id}/roles</span></div><div><br></div><div>- these are coded in keystone/identity/core.py in the stable/essex release</div><div><br></div><div>and the diablo compatibility API</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">       </span>/users/{user_id}/roleRefs</div><div><br></div><div>which is also there - keystone/contrib/admin_crud/core.py</div><div><br></div><div>Is that what you're asking?</div><div><br></div><div>-joe</div><div><br><div><div>On May 2, 2012, at 1:44 PM, Luis Gervaso wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<div><div><br></div><div>In Diablo was:</div><div><br></div><div><span style="color:rgb(221,17,68);font-family:'Bitstream Vera Sans Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre;background-color:rgb(255,255,255)">GET /users/{user_id}/roleRefs</span><br clear="all">
<div><br></div><div>In Essex it is maintained for compatibility reasons. I understand that this is the obsolete now.</div><div><br></div><div>I can find:</div><div><br></div><div><span style="color:rgb(221,17,68);font-family:'Bitstream Vera Sans Mono',Courier,monospace;font-size:12px;line-height:16px;white-space:pre;background-color:rgb(255,255,255)">PUT & DELETE /users/{user_id}/roles/OS-KSADM/{role_id}</span></div>
<div><br></div><div>How can get all the roles having a user_id?</div><div><br></div><div>GET /users/{user_id}/roles (i can't find this on stable/essex)</div><div><br></div><div>Returning role list with tenant associated</div>
<div><br></div><div>Another option that would work for me is:</div><div><br></div><div>GET /users/{user_id}/tenants</div><div><br></div><div>Returning tenant list with role list associated per tenant</div><div><br></div><div>
<br></div><div>When i GET /user/{user_id} i obtain only this info</div><div><br></div><div><div>{"user": {"name": "admin", "enabled": true, "email": "<a href="mailto:admin@example.com">admin@example.com</a>", "id": "ef1e63df85b641d7bf3c575bb8670cef", "tenantId": null}}<br clear="all">
<div><br></div><div>Regards</div><div><br></div>-- <br>-------------------------------------------<br>Luis Alberto Gervaso Martin<div>Woorea Solutions, S.L<br>CEO & CTO<br>mobile: (+34) 627983344<br><a href="mailto:luis.gervaso@gmail.com" target="_blank">luis@</a><a href="http://woorea.es/" target="_blank">woorea.es</a></div>
<br>
</div><br>
</div></div></div>
_______________________________________________<br>Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></blockquote></div><br></div></body></html>