Get all users for a project

paul (at 8thlight)'s Avatar

paul (at 8thlight)

07 Jan, 2009 01:56 PM

Does the API let you query for all the users in a project?

  1. 1 Posted by Will Duncan on 07 Jan, 2009 03:04 PM

    Will Duncan's Avatar

    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

  2. 2 Posted by paul (at 8thlig... on 08 Jan, 2009 04:52 PM

    paul (at 8thlight)'s Avatar

    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.

    I have tried getting it from the project itself, but there is no memberships relation.

    Any suggestions would be helpful. Thanks

  3. 3 Posted by Rick on 08 Jan, 2009 09:13 PM

    Rick's Avatar

    Just pushed an update to

    Lighthouse.account = 'activereload'
    Lighthouse.token = '...'
    p = Lighthouse::Project.find 44
    puts { |m| "user_id #{m.user_id} can access #{m.url}" }
  4. 4 Posted by Eric Meyer on 08 Jan, 2009 11:14 PM

    Eric Meyer's Avatar

    Thanks for updating the ruby api. I was looking for something just like that.

  5. 5 Posted by Davyde on 09 Jan, 2009 07:38 PM

    Davyde's Avatar

    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.

    is there an easy way to get an array of users objects (as described in the API)?


  6. 6 Posted by Rick on 10 Jan, 2009 02:39 AM

    Rick's Avatar

    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.

  7. 7 Posted by davyde on 12 Jan, 2009 08:26 PM

    davyde's Avatar

    That would be WIN =)

  8. 8 Posted by System on 11 Mar, 2009 05:15 PM

    System's Avatar

    A Lighthouse ticket was created for this discussion

  9. brandi closed this discussion on 29 Jun, 2012 10:10 PM.

Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac