tag:help.lighthouseapp.com,2008-09-20:/discussions/api-developers/227-get-all-accounts-andor-projectsLighthouse: Discussion 2013-10-21T17:39:53Ztag:help.lighthouseapp.com,2008-09-20:Comment/140185202012-02-27T22:35:18Z2012-02-27T22:35:18ZGet all accounts and/or projects?`<div><p>Jeremy -</p>
<p>Does <a href=
"http://my.lighthouseapp.com/users/{user_id}/memberships.json">http://my.lighthouseapp.com/users/{user_id}/memberships.json</a>
give you the results you're looking for?</p>
<p>Let us know.</p>
<p>Thanks,<br>
Nicole</p></div>Nicoletag:help.lighthouseapp.com,2008-09-20:Comment/140185202012-02-28T00:16:35Z2012-02-28T00:16:35ZGet all accounts and/or projects?`<div><p>Hi Nicole,<br>
That was actually my first instinct, but it keeps giving me an
error that<br>
that API key isn't valid for that account. I also tried www but it
said<br>
that account doesn't exist (obviously).</p>
<p>I think "my" is probably <em>supposed</em> to be where I'd do
that, but either my<br>
token is funky or it's a bug!</p>
<p>Thanks,<br>
Jeremy</p></div>Jeremy McAnallytag:help.lighthouseapp.com,2008-09-20:Comment/140185202012-02-28T19:13:45Z2012-02-28T19:13:45ZGet all accounts and/or projects?`<div><p>Hi Jeremy,</p>
<p>It's not currently possible to query membership information for
users besides yourself. It's important to remember that users
belong to themselves, and not an account, so having ownership
rights on a Lighthouse account does not afford any special access
to Lighthouse user resources. Now, in the case of this endpoint, I
think it would be reasonable to show memberships for public/shared
projects, but that's something we'll need to add. I can make a
ticket to address this, and let you know here when it's done or we
have more information.</p>
<p>Hope this helps,</p>
<p>-hobson</p></div>Hobsontag:help.lighthouseapp.com,2008-09-20:Comment/140185202012-02-28T19:32:45Z2012-02-28T19:32:45ZGet all accounts and/or projects?`<div><p>That doesn't make sense because if I know one of their accounts,
I can get all of their memberships for all accounts by hitting the
/users/:id/memberships action.</p>
<p>All I need is the project or account memberships for the user
whose token I'm using. I have their token already. Being able to
hit the "my" subdomain for that info seems perfectly logical.</p>
<p>-j</p>
<p>Sent from my iPhone</p></div>Jeremy McAnallytag:help.lighthouseapp.com,2008-09-20:Comment/140185202012-02-29T20:21:17Z2012-02-29T20:21:17ZGet all accounts and/or projects?`<div><p>Yes, it's correct to use your own subdomain for API calls, and
if you're using the token of the user whose membership you're
querying, then you should be able to see all of their memberships.
You are correct that this info is available from the web site but
not the API, so this seems like a simple oversight. As I said, we
can correct this, so I'll make a ticket and we'll let you know when
it's fixed.</p>
<p>Thanks for bringing this to our attention,</p>
<p>-hobson</p></div>Hobson