Skip to content
Documentation
Updated 8 minutes to read
Markdown

Group Management with the Nodinite LDAP Web API

Section titled “Group Management with the Nodinite LDAP Web API”

Comprehensive group management operations for LDAP directories using the Nodinite LDAP Web API. This page covers all 9 group-specific operations with detailed XML examples.

✅ CRUD Operations: Select, Create, Update, Delete groups
✅ Organization: Rename and Move groups between OUs
✅ Membership Management: Add, Remove, and Select members
✅ Batch Support: Process multiple groups in single operations
✅ Flexible Queries: Use searchFilter for precise group targeting

Group operations are available in the Operations section of the Group record within the request message. Every operation uses the With record to define search criteria and scope; the LDAP Web API first finds the matching groups, then runs each operation on them.

flowchart LR Client["fa:fa-code Client"] -->|"Execute request (XML or JSON)"| API["fa:fa-cloud LDAP Web API"] API -->|"With: CN, OU, DC, searchScope, searchFilter"| Dir["fa:fa-address-book LDAP directory"] Dir -->|"Matching groups"| API API -->|"Operations on each matched group"| Dir API -->|"SearchResult and OperationResult"| Client

Diagram: the LDAP Web API resolves the With query against the directory, then runs the group operations on every group found and returns both results.

Both XML and JSON formats are supported. See the Request Schema for message structure details.


Operation Description Multiple Records
Select Retrieve group records from LDAP ✅ Yes
Create Create new group with properties ❌ No
Update Update existing group properties ✅ Yes
Delete Delete group records ✅ Yes
Rename Rename group (CN part) ❌ No
MoveTo Move groups to different OU ✅ Yes
Add Add member(s) to group(s) ✅ Yes
Remove Remove member(s) from group(s) ✅ Yes
SelectMembers Retrieve group membership details ✅ Yes

The Select operation retrieves group objects from the LDAP catalog using the search criteria provided in the With record.

<ns0:LDAP xmlns:ns0="http://integrationsoftware.se/BizTalk/Adapters/LDAP/Request/1.0">
<Batches guid="2B25B9E6-4AF2-4094-9AE7-E1E4C99B6C8D" returnResponseMessageOnExceptions="true">
<Batch guid="3B25B9E6-4AF2-4094-9AE7-E1E4C99B6C8E">
<Group>
<With OU="Old hackers" DC="DC=ibiz,DC=local" searchScope="Subtree"
returnProperties="name,description" />
<Operations>
<Select/>
</Operations>
</Group>
</Batch>
</Batches>
</ns0:LDAP>

The Create operation creates a new group within an OU found using the With record search criteria.

Attribute Required Description
name ✅ Yes The common name (CN part) of the group to create
allowUpdateIfExists ❌ No Updates the existing group with the properties collection content if the group already exists. When false (default), the operation fails if the group already exists

The name-value pair collection with attributes for the group object to be set by the operation.

Example: Create a New Group with Description

Section titled “Example: Create a New Group with Description”
<ns0:LDAP xmlns:ns0="http://integrationsoftware.se/BizTalk/Adapters/LDAP/Request/1.0">
<Batches guid="2B25B9E6-4AF2-4094-9AE7-E1E4C99B6C8D" returnResponseMessageOnExceptions="true">
<Batch guid="3B25B9E6-4AF2-4094-9AE7-E1E4C99B6C8E">
<Group>
<With OU="OU=Old hackers" DC="DC=ibiz,DC=local" searchScope="Base"/>
<Operations>
<Create name="LDAP Adapter Users">
<Properties>
<Property name="description" value="Mighty People."/>
</Properties>
</Create>
</Operations>
</Group>
</Batch>
</Batches>
</ns0:LDAP>

The response shows the OU found and the group created within this OU.

The Update operation modifies existing group properties for one or multiple groups returned by the query.

The attributes to be updated are provided in the name-value properties collection.

<ns0:LDAP xmlns:ns0="http://integrationsoftware.se/BizTalk/Adapters/LDAP/Request/1.0">
<Batches guid="2B25B9E6-4AF2-4094-9AE7-E1E4C99B6C8D" returnResponseMessageOnExceptions="true">
<Batch transactionScopeOption="Required" continueOnError="false"
guid="2B25B9E6-4AF2-4094-9AE7-E1E4C99B6C8D">
<Group>
<With CN="CN=LDAP Adapter Users" OU="OU=Old hackers" DC="DC=ibiz,DC=local"
searchScope="Base" expectedMatchCount="1"/>
<Operations>
<Update>
<Properties>
<Property name="description" value="Secret society."/>
</Properties>
</Update>
</Operations>
</Group>
</Batch>
</Batches>
</ns0:LDAP>

The Delete operation removes group(s) returned by the With query part.

<ns0:LDAP xmlns:ns0="http://integrationsoftware.se/BizTalk/Adapters/LDAP/Request/1.0">
<Batches guid="2B25B9E6-4AF2-4094-9AE7-E1E4C99B6C8D" returnResponseMessageOnExceptions="true">
<Batch guid="3B25B9E6-4AF2-4094-9AE7-E1E4C99B6C8E">
<Group>
<With CN="CN=LDAP Adapter Users" OU="OU=Old hackers" DC="DC=ibiz,DC=local"
searchScope="Base" expectedMatchCount="1"/>
<Operations>
<Delete/>
</Operations>
</Group>
</Batch>
</Batches>
</ns0:LDAP>

The response SearchResult displays the group found for deletion, and the operation result confirms deletion.

The Rename operation changes the name (CN part) of a group. This operation requires exactly one group in the search results.

Attribute Required Description
name ✅ Yes The new name for the group object
<ns0:LDAP xmlns:ns0="http://integrationsoftware.se/BizTalk/Adapters/LDAP/Request/1.0">
<Batches guid="2B25B9E6-4AF2-4094-9AE7-E1E4C99B6C8D" returnResponseMessageOnExceptions="true">
<Batch guid="2B25B9E6-4AF2-4094-9AE7-E1E4C99B6C8D">
<Group>
<With CN="CN=LDAP Adapter Users" OU="OU=Old hackers" DC="DC=ibiz,DC=local"
searchScope="Base" expectedMatchCount="1" returnProperties="name,description,whenChanged"/>
<Operations>
<Rename name="Users of the LDAP Adapter"/>
</Operations>
</Group>
</Batch>
</Batches>
</ns0:LDAP>

The MoveTo operation moves groups found by the With search criteria to the destination OU specified in the operation arguments.

Attribute Required Description
DC ✅ Yes Domain Component for the destination
OU ✅ Yes Organizational Unit path for the destination
CN ❌ No Common Name for the destination
<ns0:LDAP xmlns:ns0="http://integrationsoftware.se/BizTalk/Adapters/LDAP/Request/1.0">
<Batches guid="2B25B9E6-4AF2-4094-9AE7-E1E4C99B6C8D">
<Batch guid="3B25B9E6-4AF2-4094-9AE7-E1E4C99B6C8E">
<Group>
<With CN="CN=LDAP Adapter Users" OU="OU=Old hackers" DC="DC=ibiz,DC=local"
searchScope="Subtree"/>
<Operations>
<MoveTo OU="OU=3l1t hackers,OU=Old hackers" DC="DC=ibiz,DC=local"/>
</Operations>
</Group>
</Batch>
</Batches>
</ns0:LDAP>

The Add operation adds member(s) to group(s). If the member already belongs to the group, the operation is skipped.

You must specify which member(s) to add using the Member record.

Attribute Required Description
CN ❌ No Common name of the member to add
OU ❌ No OU part of the member to add
DC ✅ Yes Domain component part
<ns0:LDAP xmlns:ns0="http://integrationsoftware.se/BizTalk/Adapters/LDAP/Request/1.0">
<Batches guid="2B25B9E6-4AF2-4094-9AE7-E1E4C99B6C8D" returnResponseMessageOnExceptions="true">
<Batch guid="3B25B9E6-4AF2-4094-9AE7-E1E4C99B6C8E">
<Group>
<With OU="OU=Old hackers" DC="DC=ibiz,DC=local" searchScope="Subtree"
expectedMatchCount="*" searchFilter="(name=LDAP*)"/>
<Operations>
<Add>
<Member CN="CN=Jane Doe" OU="OU=Old hackers" DC="DC=ibiz,DC=local" />
</Add>
</Operations>
</Group>
</Batch>
</Batches>
</ns0:LDAP>

The Remove operation removes member(s) from group(s). If the member is not part of the group, the operation is skipped.

You must specify which member(s) to remove using the Member record.

Attribute Required Description
CN ❌ No Common name of the member to remove
OU ❌ No OU part of the member to remove
DC ✅ Yes Domain component part
<ns0:LDAP xmlns:ns0="http://integrationsoftware.se/BizTalk/Adapters/LDAP/Request/1.0">
<Batches guid="2B25B9E6-4AF2-4094-9AE7-E1E4C99B6C8D" returnResponseMessageOnExceptions="true">
<Batch guid="3B25B9E6-4AF2-4094-9AE7-E1E4C99B6C8E">
<Group>
<With OU="OU=Old hackers" DC="DC=ibiz,DC=local" searchScope="Subtree"
expectedMatchCount="*" searchFilter="(name=LDAP*)"/>
<Operations>
<Remove>
<Member CN="CN=Jane Doe10" OU="OU=Old hackers" DC="DC=ibiz,DC=local" />
</Remove>
</Operations>
</Group>
</Batch>
</Batches>
</ns0:LDAP>

The SelectMembers operation retrieves information about members in groups found by the query.

<ns0:LDAP xmlns:ns0="http://integrationsoftware.se/BizTalk/Adapters/LDAP/Request/1.0">
<Batches guid="2B25B9E6-4AF2-4094-9AE7-E1E4C99B6C8D" returnResponseMessageOnExceptions="true">
<Batch guid="2B25B9E6-4AF2-4094-9AE7-E1E4C99B6C8D">
<Group>
<With OU="OU=Old hackers" DC="DC=ibiz,DC=local" searchScope="Subtree"
returnProperties="name, description" />
<Operations>
<SelectMembers/>
</Operations>
</Group>
</Batch>
</Batches>
</ns0:LDAP>

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...