tag:help.lighthouseapp.com,2008-09-20:/discussions/api-developers/1029-determine-admin-users-in-domain-membershipsLighthouse: Discussion 2014-04-07T18:16:29Ztag:help.lighthouseapp.com,2008-09-20:Comment/256190982013-03-06T17:51:57Z2013-03-06T17:51:57ZDetermine admin users in domain memberships<div><p>Joe -</p>
<p>If I'm understanding your question, you'll want to checkout
membership versus members. Here are the API docs on Users and
Membership - <a href=
"http://help.lighthouseapp.com/kb/api/users-and-membership">http://help.lighthouseapp.com/kb/api/users-and-membership</a>.
Let us know if that doesn't cover your questions.</p>
<p>Thanks,<br>
Nicole</p></div>Nicoletag:help.lighthouseapp.com,2008-09-20:Comment/256190982013-03-06T17:58:07Z2013-03-06T17:58:07ZDetermine admin users in domain memberships<div><p>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?</p></div>Joe Keeleytag:help.lighthouseapp.com,2008-09-20:Comment/256190982013-03-06T18:25:45Z2013-03-06T18:25:45ZDetermine admin users in domain memberships<div><p>Hi Joe,</p>
<p>With the current API, you would have to:</p>
<ul>
<li>Fetch all the members to get their IDs</li>
<li>Loop over each member and get its membership using
<code>/users/#{ID}/memberships.json</code>. There you will see if
he is an account owner, or just a project member.</li>
</ul>
<p>Let me know if you have questions.</p></div>Julien