Skip to content

Instantly share code, notes, and snippets.

@davidyack
Created February 8, 2020 11:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidyack/5233af4c26a43d174689effcc5ad843c to your computer and use it in GitHub Desktop.
Save davidyack/5233af4c26a43d174689effcc5ad843c to your computer and use it in GitHub Desktop.
Query Users In a Team
<fetch mapping="logical" output-format="xml-platform" version="1.0" distinct="true">
<entity name="systemuser">
<attribute name="fullname" />
<attribute name="systemuserid" />
<attribute name="internalemailaddress" />
<order descending="false" attribute="fullname" />
<link-entity name="teammembership" visible="false" to="systemuserid" from="systemuserid" intersect="true">
<link-entity name="team" to="teamid" from="teamid" alias="ac">
<filter type="and">
<condition value="{E9E72366-Bind to your Team ID" attribute="teamid" operator="eq" />
</filter>
</link-entity>
</link-entity>
</entity>
</fetch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment