---
title: "Schema Management with Nodinite LDAP Web API: Query Classes and Attributes"
description: Schema operations with the Nodinite LDAP Web API. Query LDAP schema classes and their mandatory and optional attributes with XML examples.
---

# Schema Management with the Nodinite LDAP Web API

Schema introspection operations for LDAP directories using the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [LDAP Web API][Overview]. Query available classes and their attribute requirements.

✅ **Discovery**: Get all available schema classes  
✅ **Attribute Inspection**: Query mandatory and optional attributes  
✅ **Read-Only**: Schema queries return results in SearchResult  
✅ **Integration Support**: Understand schema requirements programmatically  

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>Version 1.0 of the LDAP Adapter has limited operations for LDAP Schemas. Please provide feature requests and use cases to <a href="mailto:support@integrationsoftware.se">support@integrationsoftware.se</a></p></div>
</aside>

## Overview

Schema operations are available in the `Operations` section of the `Schema` record within the request message. These operations are read-only and do not require a `With` record for search criteria.

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

## Operations Summary

|Operation|Description|Parameters|  
|---|---|---|  
|[GetAllClasses](#getallclasses)|Retrieve all schema class names|None|  
|[GetAllOptionalAttributes](#getalloptionalattributes)|Get optional attributes for a class|className|  
|[GetAllMandatoryAttributes](#getallmandatoryattributes)|Get mandatory attributes for a class|className|  

## GetAllClasses

The `GetAllClasses` operation returns the names of all classes in the LDAP schema.

### Example: Retrieve All Schema Classes

```xml
<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">      
        <Schema>          
          <Operations>
            <GetAllClasses/>
          </Operations>
        </Schema>
    </Batch>    
  </Batches>
</ns0:LDAP>
```

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>Since this is a read-only query, results are listed in the <code>SearchResult</code> record of the response message.</p></div>
</aside>

## GetAllOptionalAttributes

The `GetAllOptionalAttributes` operation returns all optional attributes for a specified class.

### Attributes

|Attribute|Required|Description|  
|---|---|---|  
|`className`|✅ Yes|The name of the LDAP schema class to query for optional attributes, for example `user`|  

### Example: Get Optional Attributes for a Class

```xml
<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">      
        <Schema>          
          <Operations>
            <GetAllOptionalAttributes className="user"/>
          </Operations>
        </Schema>
    </Batch>    
  </Batches>
</ns0:LDAP>
```

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>Results are listed in the <code>SearchResult</code> record and include all attributes that can be optionally set for the specified class.</p></div>
</aside>

## GetAllMandatoryAttributes

The `GetAllMandatoryAttributes` operation returns all mandatory attributes for a specified class.

### Attributes

|Attribute|Required|Description|  
|---|---|---|  
|`className`|✅ Yes|The name of the LDAP schema class to query for mandatory attributes, for example `user`|  

### Example: Get Mandatory Attributes for a Class

```xml
<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">      
        <Schema>          
          <Operations>
            <GetAllMandatoryAttributes className="user"/>
          </Operations>
        </Schema>
    </Batch>    
  </Batches>
</ns0:LDAP>
```

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>Results are listed in the <code>SearchResult</code> record and include all attributes that must be set when creating objects of the specified class.</p></div>
</aside>

## Use Cases

### Schema Discovery

Query `GetAllClasses` to discover what object types are available in your LDAP directory (user, group, organizationalUnit, contact, etc.).

### Attribute Validation

Before creating or updating LDAP objects, query `GetAllMandatoryAttributes` to ensure you provide all required attributes and avoid operation failures.

### Dynamic Forms

Use `GetAllOptionalAttributes` to build dynamic user interfaces that allow setting additional properties based on the schema definition.

### Documentation & Compliance

Generate documentation of your LDAP schema structure by combining all three operations to create comprehensive attribute references.

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

* Review the [Request Schema][Request] for complete message structure  
* Explore the [Response Schema][Response] for understanding operation results  
* Learn about [User Management][User Management] for creating objects with proper attributes  
* Check [Logging][Logging] for troubleshooting schema queries  

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

* [LDAP Web API Overview][Overview]  
* [Group Management][Group Management]  
* [OU Management][OU Management]  
* [AD Management][AD Management]  
* [Developer Guide][Features Overview]  

[AD Management]:https://docs.nodinite.com/ldap-web-api/features/ad-management/
[Features Overview]:https://docs.nodinite.com/ldap-web-api/features/overview/
[Group Management]:https://docs.nodinite.com/ldap-web-api/features/group-management/
[Logging]:https://docs.nodinite.com/ldap-web-api/troubleshooting/logging/
[OU Management]:https://docs.nodinite.com/ldap-web-api/features/ou-management/
[Overview]:https://docs.nodinite.com/ldap-web-api/overview/
[Request]:https://docs.nodinite.com/ldap-web-api/features/request/
[Response]:https://docs.nodinite.com/ldap-web-api/features/response/
[User Management]:https://docs.nodinite.com/ldap-web-api/features/user-management/