This example search condition retrieves a list of users belonging to the specified group, executed with the call similar to this one:
http://demo.teradp.com/Tark4/do.ashx?Cmd=search&name=usersInGroup&pars=groupName:planners
The search criteria for this configuration is defined as follows:
<SearchConditions
xmlns="http://www.teradp.com/schemas/GN4/1/SearchConditions.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
ObjectTypeName="user"
SavedSearchName="">
<SearchNode xsi:type="SearchConditionList">
<List xsi:type="SearchCondition" Path="[user.groups.name]" Op="Containing">
<From xsi:type="VariableSearchNode" Name="groupName" Type="String"/>
</List>
</SearchNode>
<OrderList IsAscending="true">
<Item xsi:type="AttributeRef" ObjectTypeName="user" AttributeTypeName="name"/>
</OrderList>
</SearchConditions>
The returned results will look similar to this:
<?xml version="1.0" encoding="utf-8" ?>
<result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.teradp.com/schemas/GN4/1/Results.xsd">
<searchResult n="3" from="0" count="3" queryTimeSpan="0">
<xml>
<objects xmlns="urn:schemas-teradp-com:gn4tera">
<user nav:objectType="user" id="obj28308" name="Muriel"
lockLevel="0" password="" ownQuestion="" answer=""
disabled="false" fullName="Muriel Warner"
xmlns:nav="http://www.teradp.com/schemas/GN4/1/ObjNav.xsd">
...
</user>
<user nav:objectType="user" id="obj35543" name="dario"
lockLevel="0" password="" ownQuestion="" answer=""
disabled="false" fullName="Dario Meroni"
xmlns:nav="http://www.teradp.com/schemas/GN4/1/ObjNav.xsd">
...
</user>
<user nav:objectType="user" id="obj28301" name="Belinda"
lockLevel="0" password="" ownQuestion="" answer=""
disabled="false" fullName="Belinda van Steijn"
xmlns:nav="http://www.teradp.com/schemas/GN4/1/ObjNav.xsd">
...
</user>
</objects>
</xml>
</searchResult>
</result>