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
Understanding Group Operations
Section titled “Understanding Group Operations”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.
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.
Operations Summary
Section titled “Operations Summary”| 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 |
Select
Section titled “Select”The Select operation retrieves group objects from the LDAP catalog using the search criteria provided in the With record.
Example: Select All Groups in an OU
Section titled “Example: Select All Groups in an OU”<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>Create
Section titled “Create”The Create operation creates a new group within an OU found using the With record search criteria.
Attributes
Section titled “Attributes”| 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 |
Properties Element
Section titled “Properties Element”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.
Update
Section titled “Update”The Update operation modifies existing group properties for one or multiple groups returned by the query.
Properties Element
Section titled “Properties Element”The attributes to be updated are provided in the name-value properties collection.
Example: Update Group Description
Section titled “Example: Update Group Description”<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>Delete
Section titled “Delete”The Delete operation removes group(s) returned by the With query part.
Example: Delete a Specific Group
Section titled “Example: Delete a Specific Group”<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.
Rename
Section titled “Rename”The Rename operation changes the name (CN part) of a group. This operation requires exactly one group in the search results.
Attributes
Section titled “Attributes”| Attribute | Required | Description |
|---|---|---|
name |
✅ Yes | The new name for the group object |
Example: Rename a Group
Section titled “Example: Rename a Group”<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>MoveTo
Section titled “MoveTo”The MoveTo operation moves groups found by the With search criteria to the destination OU specified in the operation arguments.
Attributes
Section titled “Attributes”| 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 |
Example: Move a Group to Another OU
Section titled “Example: Move a Group to Another OU”<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.
Member Element
Section titled “Member Element”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 |
Example: Add a User to Groups
Section titled “Example: Add a User to Groups”<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>Remove
Section titled “Remove”The Remove operation removes member(s) from group(s). If the member is not part of the group, the operation is skipped.
Member Element
Section titled “Member Element”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 |
Example: Remove a User from Groups
Section titled “Example: Remove a User from Groups”<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>SelectMembers
Section titled “SelectMembers”The SelectMembers operation retrieves information about members in groups found by the query.
Example: Get Members of Groups
Section titled “Example: Get Members of Groups”<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>Next Steps
Section titled “ Next Steps”- Review the Request Schema for complete message structure
- Explore the Response Schema for understanding operation results
- Learn about User Management operations
- Check Logging for troubleshooting and auditing