<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 07/17/2012 04:05 PM, Matt Joyce
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAGYSk8fWnHQeJE6W9=O1upx098nGkc_bNtFcCteAnKe=fy=POg@mail.gmail.com"
      type="cite">
      <pre>curl -H "X-Auth-Token:123456789001234" <a moz-do-not-send="true" href="http://localhost:5000/v2.0/tenants">http://localhost:5000/v2.0/tenants</a></pre>
      that seems to do the trick for me for now.<br>
    </blockquote>
    <br>
    Ah, I see that is hooked up to: get_tenants_for_token,  I was
    looking for the wrong API.  That then calls:  tenant_ids =
    self.identity_api.get_tenants_for_user(context, user_ref['id'])<br>
    <br>
    I'm not sure that this is the right semantics for it,  but it looks
    like it does what you want.<br>
    <br>
    <br>
    <br>
    <blockquote
cite="mid:CAGYSk8fWnHQeJE6W9=O1upx098nGkc_bNtFcCteAnKe=fy=POg@mail.gmail.com"
      type="cite"><br>
      <div class="gmail_quote">On Tue, Jul 17, 2012 at 1:03 PM, Adam
        Young <span dir="ltr"><<a moz-do-not-send="true"
            href="mailto:ayoung@redhat.com" target="_blank">ayoung@redhat.com</a>></span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000">
            <div>
              <div class="h5">
                <div>On 07/17/2012 03:55 PM, Matt Joyce wrote:<br>
                </div>
                <blockquote type="cite">On Tue, Jul 17, 2012 at 12:55
                  PM, Adam Young <span dir="ltr"><<a
                      moz-do-not-send="true"
                      href="mailto:ayoung@redhat.com" target="_blank">ayoung@redhat.com</a>></span>
                  wrote:<br>
                  <div class="gmail_quote">
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div>On 07/17/2012 03:47 PM, Matt Joyce wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex"> As a non admin user.
                           Querying the keystone v2 API is there a way
                          for me to get a list of the tenants that I am
                          a member of?  Or is that only a v3 thing?<br>
                          <br>
                          -Matt<br>
                        </blockquote>
                        <br>
                      </div>
                       I was just looking into it, and there is no such
                      API yet.  The underlying Identity provider call is
                      get_tenants_for_user and there does not seem to be
                      a route set up that calls that.<br>
                    </blockquote>
                  </div>
                  <br>
                  <br>
                  8(   <--- sad panda face.<br>
                  <br>
                  That would have been a very useful call for me right
                  now.  I hope we have something by folsom ( albeit
                  s/tenant/project/ig )<br>
                  <br>
                  -Matt<br>
                </blockquote>
              </div>
            </div>
            You can try this one out:<br>
            <br>
            <a moz-do-not-send="true"
href="https://github.com/admiyo/keystone/commit/997f9cb76fa908afebf434bef4905add085823ca"
              target="_blank">https://github.com/admiyo/keystone/commit/997f9cb76fa908afebf434bef4905add085823ca</a><br>
            <br>
            <br>
          </div>
        </blockquote>
      </div>
      <br>
    </blockquote>
    <br>
    <br>
  </body>
</html>