---
title: LDIF_PARSE
url: https://www.tines.com/docs/formulas/functions/ldif-parse/
kind: formula-function
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/llms.txt) › [Formulas](https://www.tines.com/llm/docs/formulas.md) › [Functions](https://www.tines.com/llm/docs/formulas/functions.md)*

# LDIF_PARSE

*[View on tines.com](https://www.tines.com/docs/formulas/functions/ldif-parse/)*

Parse text from a LDAP Data Interchange Format (LDIF) file into an object

**Categories:** Data Parsing/Conversion

## Syntax

```
LDIF_PARSE(ldif_file_text)
```

## Examples

### Example 1

Input:

```json
{
  "my_action": {
    "message": "dn: cn=The Postmaster,dc=example,dc=com\nobjectClass: organizationalRole\ncn: The Postmaster"
  }
}
```

Formula:

```
LDIF_PARSE(my_action.message)
```

Output:

```json
[
  {
    "cn": [
      "The Postmaster"
    ],
    "objectclass": [
      "organizationalRole"
    ]
  }
]
```

## Sample actions

```json
{
  "standardLibVersion": "13",
  "actionRuntimeVersion": "1",
  "agents": [
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "message": "dn: CN=John Smith,OU=Legal,DC=example,DC=com\nchangetype: modify\nreplace: employeeID\nemployeeID: 1234\n-\nreplace: employeeNumber\nemployeeNumber: 98722\n-\nreplace: extensionAttribute6\nextensionAttribute6: JSmith98"
        }
      },
      "position": {
        "x": 60,
        "y": 3390
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "LDIF_PARSE",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "ldif_parse": "=LDIF_PARSE(my_action.message)"
        }
      },
      "position": {
        "x": 60,
        "y": 3480
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 0,
      "receiverIdentifier": 1
    }
  ],
  "diagramNotes": []
}
```
