---
title: LDAP Web API & BizTalk LDAP Adapter Developer Guide | Nodinite
description: Comprehensive developer guide for Nodinite LDAP Web API and BizTalk LDAP Adapter. Manage users, groups, OUs with 37 operations supporting XML/JSON, batch processing, and transactions for on-premise and Azure deployments.
---

# Developer Guide for LDAP Web API & BizTalk LDAP Adapter

Unlock seamless directory integration and management with the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> LDAP Adapter for Microsoft BizTalk Server and the [LDAP Web API][]. This guide empowers developers and integration experts to build, test, and optimize solutions for both on-premise and cloud environments.

✅ Integrate with both BizTalk and modern web applications effortlessly  
✅ Accelerate development with shared, ready-to-use examples  
✅ Support on-premise and Azure App Service deployments  
✅ Rely on proven, enterprise-grade directory integration  

You will find:

* Clear, actionable examples for both <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> LDAP Adapter for Microsoft BizTalk Server and <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> LDAP Web API
* Guidance for on-premise and Azure App Service Environment (ASE) scenarios
* Unified documentation—test and run examples as best fit your runtime options

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> delivers robust, flexible LDAP integration for your enterprise, whether you use BizTalk, [IIS][], or Azure. All examples in this guide apply to both products, so you can develop and validate your solutions with confidence.

## Understanding the Message Flow

Both products share one backend: your integration sends a request message with one or more batches, the backend runs each operation against the LDAP directory, and you get a response message with the status and results of every operation.

<div class="mermaid">
graph LR
    subgraph "Client"
        roClient["fa:fa-code Logic Apps, MuleSoft, custom code"]
        roBizTalk["fab:fa-windows BizTalk Server send port"]
    end
    subgraph "Nodinite LDAP products"
        roAPI["fa:fa-cloud-arrow-up LDAP Web API"]
        roAdapter["fa:fa-plug BizTalk LDAP Adapter"]
        roEngine["fa:fa-gears Shared LDAP backend"]
    end
    subgraph "Directory"
        roLDAP["fa:fa-address-book Active Directory, AD LDS, DirX, eDirectory"]
    end
    roClient -->|"Request (XML or JSON)"| roAPI
    roBizTalk -->|"Request (XML)"| roAdapter
    roAPI --> roEngine
    roAdapter --> roEngine
    roEngine -->|"LDAP or LDAPS"| roLDAP
    roEngine -.->|"Response"| roAPI
    roEngine -.->|"Response"| roAdapter
</div>

*Diagram: the LDAP Web API and the [BizTalk LDAP Adapter][BizTalk Overview] pass the same request message to a shared backend, which runs the operations against the directory and returns a response message.*

## Features & Capabilities

The LDAP Web API and BizTalk LDAP Adapter provide comprehensive operations for managing directory services:

### Entity Management Operations

#### User Management

[User Management][] - 16 operations. Complete lifecycle management for user accounts including creation, updates, group membership, enable/disable, and advanced queries by date. Supports password management and account control flags.

#### Group Management

[Group Management][] - 9 operations. Full CRUD operations for security and distribution groups. Add/remove members, query membership, move and rename groups across organizational units.

#### OU Management

[OU Management][] - 6 operations. Organizational Unit hierarchy management with create, update, delete, move, and rename capabilities. Build and reorganize directory structures programmatically.

#### Schema Management

[Schema Management][] - 3 operations. Discover available LDAP classes and their mandatory/optional attributes. Essential for understanding schema requirements before creating or updating objects.

#### AD Management

[AD Management][] - 3 operations. Active Directory infrastructure queries including domain controllers, forest domains, and global catalog servers for multi-domain environments.

### Message Schema

#### Request Schema

The [Request Schema][Request] describes the XML/JSON request message structure including batches, entity records, search criteria (With), operations, properties, and transaction handling.

#### Response Schema

The [Response Schema][Response] describes the response message format with operation status, search results, error handling, execution metrics, and traceability information.

## Supported Entities

|Entity Type|Description|Operations Count|  
|---|---|---|  
|[User][User Management]|User accounts and security principals|16|  
|[Group][Group Management]|Security and distribution groups|9|  
|[OrganizationalUnit][OU Management]|Directory hierarchy containers|6|  
|[Schema][Schema Management]|LDAP schema introspection|3|  
|[AD][AD Management]|Active Directory infrastructure|3|  

## Common Operations

### Create Operations

* [Create User][User Management]: Provision new user accounts with passwords and properties
* [Create Group][Group Management]: Establish new security or distribution groups
* [Create OU][OU Management]: Build organizational unit hierarchies

### Query Operations

* [Select Users][User Management]: Search for users with flexible criteria
* [Select Groups][Group Management]: Find groups by name, description, or location
* [Select OUs][OU Management]: Query organizational structure

### Membership Operations

* [AddToGroups][User Management]: Add users to multiple groups
* [RemoveFromGroups][User Management]: Remove users from groups
* [SelectMembers][Group Management]: List all members of groups

### Account Management

* [Enable][User Management] / [Disable][User Management]: Control user account status
* [SelectActive][User Management] / [SelectDisabled][User Management]: Query by account state
* [SelectByDate][User Management]: Find users by creation or modification date

### Structural Operations

* [MoveTo][User Management]: Relocate users between OUs
* [MoveTo][Group Management]: Move groups to different locations
* [MoveTo][OU Management]: Reorganize OU hierarchy
* [Rename][User Management] / [Rename][Group Management] / [Rename][OU Management]: Change object names

## Getting Started

### 1. Understand the Message Structure

Start by reviewing the [Request Schema][Request] to understand how to construct LDAP operations with batches, entity records, search criteria, and operation parameters.

### 2. Review Response Handling

Explore the [Response Schema][Response] to learn how to parse operation results, handle errors, and interpret search results with properties.

### 3. Choose Your Entity Operations

Select the appropriate management guide based on your integration needs:

* **User provisioning & deprovisioning**: [User Management][User Management]
* **Group organization**: [Group Management][Group Management]
* **Directory structure**: [OU Management][OU Management]
* **Schema discovery**: [Schema Management][Schema Management]
* **Infrastructure queries**: [AD Management][AD Management]

### 4. Build Your Solution

Use the XML examples in each operation guide as templates. All examples work with both the BizTalk LDAP Adapter and LDAP Web API.

## Key Features

### Batch Processing

Execute multiple operations in a single request message. Control transaction behavior with `transactionScopeOption` and error handling with `continueOnError`.

### Flexible Search Criteria

Use the `With` record to define:

* **CN, OU, DC**: Distinguished name components
* **searchScope**: Base, OneLevel, or Subtree
* **searchFilter**: LDAP filter syntax for precise queries
* **returnProperties**: Limit returned attributes for performance
* **expectedMatchCount**: Validate operation expectations

### Transaction Support

Operations support [MSDTC][] transactions with configurable scope options (Required, RequiresNew, Suppress) and timeout settings.

### Error Handling

Comprehensive error information including:

* **ReturnStatus**: NotExecuted, Success, Warning, Failed
* **ExceptionMessage**: Detailed error descriptions
* **ExceptionMessageExtended**: Additional diagnostic information
* **Warnings**: Non-critical issues encountered

### Multi-Valued Attributes

Set multiple values for attributes like `url`, `proxyAddresses`, or `otherTelephone` in a single operation.

### Special Properties

Built-in handling for:

* **Password**: Secure password management for user operations
* **thumbnailPhoto** / **jpegPhoto**: Binary image data with special encoding
* **PassThruContent**: Include custom XML/JSON content in messages

## Development Environments

### BizTalk Server

Use the LDAP Adapter in orchestrations, ports, and pipelines. Configure connection settings via the BizTalk Administration Console. See [BizTalk Configuration][BizTalk Configuration].

### IIS / Azure App Service

Deploy the LDAP Web API as a REST API endpoint. Call operations via HTTP POST with XML or JSON payloads. Perfect for cloud integrations, Authentication workflows, and modern applications.

### Testing & Examples

All operation documentation includes working XML examples you can use immediately. Example files referenced as `%ExamplesFolder%\[Entity]\[Operation].xml` are available with product installations.

## Best Practices

### Use expectedMatchCount

Always specify `expectedMatchCount` to validate your search criteria returns the expected number of records. Prevents unintended bulk operations.

### Limit returnProperties

Only request the attributes you need. Improves performance and reduces response message size, especially for queries returning many records.

### Leverage Transactions

Use `transactionScopeOption="Required"` for operations that must succeed or fail atomically. Ensure MSDTC is properly configured.

### Handle Multi-Record Results

Operations like Update, Delete, Enable, Disable, and MoveTo support multiple records. Design your `With` criteria to match your intent.

### Test with Small Batches

When developing, test with limited scope (Base or OneLevel) and specific CN values before executing Subtree searches in production.

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* Review the [Request Schema][Request] to understand message structure  
* Explore the [Response Schema][Response] for result handling  
* Start with [User Management][User Management] for common provisioning scenarios  
* Check the [Prerequisites][Getting Started] for setup and hosting requirements  
* Review [Logging][Logging] for troubleshooting and monitoring  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* [LDAP Web API Getting Started][Getting Started]  
* [BizTalk LDAP Adapter Overview][BizTalk Overview]  
* [BizTalk Configuration][BizTalk Configuration]  
* [Troubleshooting][]  

[AD Management]:https://docs.nodinite.com/ldap-web-api/features/ad-management/
[BizTalk Configuration]:https://docs.nodinite.com/biztalk-ldap-adapter/getting-started/configuration/
[BizTalk Overview]:https://docs.nodinite.com/biztalk-ldap-adapter/overview/
[Getting Started]:https://docs.nodinite.com/ldap-web-api/getting-started/prerequisites/
[Group Management]:https://docs.nodinite.com/ldap-web-api/features/group-management/
[IIS]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/overview/
[LDAP Web API]:https://docs.nodinite.com/ldap-web-api/overview/
[Logging]:https://docs.nodinite.com/ldap-web-api/troubleshooting/logging/
[MSDTC]:https://docs.nodinite.com/install-and-update/troubleshooting/windows/transactions-msdtc/
[OU Management]:https://docs.nodinite.com/ldap-web-api/features/ou-management/
[Request]:https://docs.nodinite.com/ldap-web-api/features/request/
[Response]:https://docs.nodinite.com/ldap-web-api/features/response/
[Schema Management]:https://docs.nodinite.com/ldap-web-api/features/schema-management/
[Troubleshooting]:https://docs.nodinite.com/ldap-web-api/troubleshooting/overview/
[User Management]:https://docs.nodinite.com/ldap-web-api/features/user-management/