LDAP.SearchResult.AttributeValues
---------------------------------

Returns the values for an attribute in an entry.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [LDAP](component_LDAP.md) | [6.0](newinversion60.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |

MBS( "LDAP.SearchResult.AttributeValues"; LDAPRef; EntryIndex; AttributeIndex { ; NoReturnEnding } ) 

**MBS**( **"LDAP.SearchResult.AttributeValues"** /\* Returns the values for an attribute in an entry. \*/  
**$LDAPRef**; /\* The reference number for the LDAP connection. e.g. $ldap \*/   
**$EntryIndex**; /\* The index in the search results.   
Range from 0 to LDAP.SearchResult.EntryCount-1. e.g. $index \*/   
**$AttributeIndex**; /\* The index of the attribute.  
From 0 to [LDAP.SearchResult.AttributeCount](LDAPSearchResultAttributeCount.md)-1. e.g. 0 \*/   
**$NoReturnEnding**) /\* Optional; Pass 1 to have no extra newline character on the end of the returned list. Default is 1 to include none, so a list with one value behaves as a text value. e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| LDAPRef | The reference number for the LDAP connection. | $ldap |  |
| EntryIndex | The index in the search results.    Range from 0 to LDAP.SearchResult.EntryCount-1. | $index |  |
| AttributeIndex | The index of the attribute.   From 0 to [LDAP.SearchResult.AttributeCount](LDAPSearchResultAttributeCount.md)-1. | 0 |  |
| NoReturnEnding | Pass 1 to have no extra newline character on the end of the returned list. Default is 1 to include none, so a list with one value behaves as a text value. | 1 | Optional |

### Result

Returns list or error.

### Description

Returns the values for an attribute in an entry.  
Value may be hex encoded if the attribute is considered binary data like an uuid (see [LDAP.SetBinaryKeys](LDAPSetBinaryKeys.md)).  
### See also

- [LDAP.Connect](LDAPConnect.md)
- [LDAP.JSON](LDAPJSON.md)
- [LDAP.Rename](LDAPRename.md)
- [LDAP.Search](LDAPSearch.md)
- [LDAP.SearchResult.AttributeName](LDAPSearchResultAttributeName.md)
- [LDAP.SearchResult.AttributeNames](LDAPSearchResultAttributeNames.md)
- [LDAP.SearchResult.AttributeValue](LDAPSearchResultAttributeValue.md)
- [LDAP.SearchResult.AttributeValuesByName](LDAPSearchResultAttributeValuesByName.md)
- [LDAP.SearchResult.Count](LDAPSearchResultCount.md)
- [LDAP.SetBinaryKeys](LDAPSetBinaryKeys.md)

### Release notes

- **Version 7.4**
    - Added [LDAP.SearchResult.AttributeValuesByName](http://www.mbsplugins.eu/LDAPSearchResultAttributeValuesByName.shtml) function.

### Example Databases

- [Network/LDAP Query](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Network/LDAP%20Query.shtml#1ScriptAnchor_)

### Blog Entries

- [LDAP in FileMaker](https://www.mbsplugins.de/archive/2015-12-16/LDAP_in_FileMaker/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 15th December 2015 , last changed 15th August 2025

  
[LDAP.SearchResult.AttributeValueCount](LDAPSearchResultAttributeValueCount.md) - [LDAP.SearchResult.AttributeValuesByName](LDAPSearchResultAttributeValuesByName.md)

[HTML Version](LDAPSearchResultAttributeValues.shtml)