tag:help.lighthouseapp.com,2008-09-20:/discussions/api-developers/57-get-all-users-for-a-projectLighthouse: Discussion 2012-07-20T12:23:49Ztag:help.lighthouseapp.com,2008-09-20:Comment/317192009-01-07T15:04:42Z2009-06-20T20:14:43ZGet all users for a project<div><p>Yes, you can use something like
/projects/{projid}/memberships.xml but I'll have to see if Rick
(technoweenie) can reply and give you some more detail, as I'm not
the most knowledgeable of the Lighthouse API</p></div>Will Duncantag:help.lighthouseapp.com,2008-09-20:Comment/317192009-01-08T16:52:33Z2009-06-20T20:14:57ZGet all users for a project<div><p>That is the xml that I need (works when i curl), I just can't
figure out the ruby API for it, using active resource.</p>
<p>I have tried getting it from the project itself, but there is no
memberships relation.</p>
<p>Any suggestions would be helpful. Thanks</p></div>paul (at 8thlight)tag:help.lighthouseapp.com,2008-09-20:Comment/317192009-01-08T21:13:42Z2009-06-20T20:15:01ZGet all users for a project<div><p>Just pushed an update to
http://github.com/caged/lighthouse-api</p>
<pre>
<code class="ruby">Lighthouse.account = 'activereload'
Lighthouse.token = '...'
p = Lighthouse::Project.find 44
puts p.memberships.map { |m| "user_id #{m.user_id} can access #{m.url}" }</code>
</pre></div>Ricktag:help.lighthouseapp.com,2008-09-20:Comment/317192009-01-08T23:14:05Z2009-06-20T20:15:03ZGet all users for a project<div><p>Thanks for updating the ruby api. I was looking for something
just like that.</p></div>Eric Meyertag:help.lighthouseapp.com,2008-09-20:Comment/317192009-01-09T19:38:54Z2009-06-20T20:15:16ZGet all users for a project<div><p>I'm having a little trouble getting a list of users for the
purpose of scaring up the user name attached to a user-id.</p>
<p>is there an easy way to get an array of users objects (as
described in the API)?</p>
<p>thanks</p></div>Davydetag:help.lighthouseapp.com,2008-09-20:Comment/317192009-01-10T02:39:21Z2009-06-20T20:15:23ZGet all users for a project<div><p>Right now you have to query them individually. I should add a
group method so you can get a bunch of them in one http call
though.</p></div>Ricktag:help.lighthouseapp.com,2008-09-20:Comment/317192009-01-12T20:26:30Z2009-06-20T20:15:52ZGet all users for a project<div><p>That would be WIN =)</p></div>davydetag:help.lighthouseapp.com,2008-09-20:Comment/317192009-03-11T17:15:10Z2012-07-20T15:35:22ZGet all users for a project<div><p>A Lighthouse ticket was created for this discussion</p></div>System