---
title: ParseDn
slug: neurons-for-itsm/admin-user-help/enu/latest/parsedn
createdAt: 2026-07-14T19:16:40.278Z
---

Parses a distinguished name. Only use this function in the LDAP expression field mappings.

## Syntax

`ParseDn(dn,index)`

## Enabled For

For a description of the business object categories, see [Notes on "Enabled For"](docId\:u26v9feCFs6iLwA0-PVJd).

| Business Object Category                                                                                                 | Yes/No |
| ------------------------------------------------------------------------------------------------------------------------ | ------ |
| Business Rules: Before-Save Rules                                                                                        | No     |
| Business Rules: Calculation Rules (After Save, with or without Also Recalculate on Load)                                 | No     |
| Business Rules: Calculation Rules (Before Save or Always, without Also Recalculate On Load)                              | No     |
| Business Rules: Calculation Rules (Before Save or Always, with Recalculate On Load)                                      | No     |
| Business Rules: Editing Rules                                                                                            | No     |
| Business Rules: Initialization Rules                                                                                     | No     |
| Business Rules: Read Only Rules                                                                                          | No     |
| Business Rules: Required Rules                                                                                           | No     |
| Business Rules: Validation Rules                                                                                         | No     |
| Client Expressions                                                                                                       | No     |
| Object Permissions                                                                                                       | No     |
| Services                                                                                                                 | No     |
| LDAP                                                                                                                     | Yes    |
| Mobile                                                                                                                   | No     |
| Quick Actions (except UI Quick Actions)                                                                                  | No     |
| UI Quick Actions                                                                                                         | No     |
| Reports                                                                                                                  | No     |
| Search/Dashboard without field references                                                                                | No     |
| Search/Dashboard with field references                                                                                   | No     |
| 1. Except in services.<br />2. Except in services and when this field appears on a form or is triggered by such a field. |        |

## Parameters

| Parameter | Description                                                                                                                                                                                                                                                                |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| dn        | Distinguished name of the form k1=v1, k2=v2, k3=v3, ..., kn=vn                                                                                                                                                                                                             |
| index     | (Optional) The zero-based segment of the distinguished name to return.<br />If you omit this parameter, if the parameter is less than zero, or if the parameter is greater than or equal to the number of segments, the application returns the entire distinguished name. |

## Return Value

:::Paragraph{indent="1"}
Unicode text value.
:::

## Example

:::BlockQuote
$(ParseDN("CN=Paul Stedman,OU=Disabled,OU=Users,OU=California,DC=na,DC=frs", 0))
returns "Paul Stedman"
$(ParseDN(manager, 0))
:::

*ParseDN() Example*

::Image[]{src="https://api.archbee.com/api/optimize/parib0MC3hVoUNdfQdnac/CgBMbgO7VhGVgiktqu7EQ_parsedn.png" position="flex-start" size="40" initialPath="../../Resources/Images/help-images/ParseDn.png" githubPath="Content/Resources/Images/help-images/ParseDn.png" showCaption="false" width="836" height="167" darkWidth="836" darkHeight="167" indent="1"}
