Determine admin users in domain memberships

Joe Keeley's Avatar

Joe Keeley

05 Mar, 2013 11:28 PM

Is there a way currently to determine which users in the domain/account membership list are admin users? For example, if I make this call:

http://mydomain.lighthouseapp.com/members.json

I get a list of members for the domain, but only see id, avatar_url, job, name, and website for each user. Thanks!

  1. 1 Posted by Nicole on 06 Mar, 2013 05:51 PM

    Nicole's Avatar

    Joe -

    If I'm understanding your question, you'll want to checkout membership versus members. Here are the API docs on Users and Membership - http://help.lighthouseapp.com/kb/api/users-and-membership. Let us know if that doesn't cover your questions.

    Thanks,
    Nicole

  2. 2 Posted by Joe Keeley on 06 Mar, 2013 05:58 PM

    Joe Keeley's Avatar

    Hmm - unfortunately the memberships are only available at a project level or user level if I'm reading that correctly. My question is in the context of creating a new project, so having project level memberships wouldn't help. Also - which field in there indicates admin or not? ID?

  3. 3 Posted by Julien on 06 Mar, 2013 06:25 PM

    Julien's Avatar

    Hi Joe,

    With the current API, you would have to:

    • Fetch all the members to get their IDs
    • Loop over each member and get its membership using /users/#{ID}/memberships.json. There you will see if he is an account owner, or just a project member.

    Let me know if you have questions.

  4. Nicole closed this discussion on 20 Mar, 2013 06:49 PM.

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

Keyboard shortcuts

Generic

? 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