Reference > Expressions > Built-in Functions > LDAP Functions > ParseDn

ParseDn

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

Syntax

ParseDn(dn,index)

Enabled for

Search/Dashboard No
Business Rules No
Quick Actions No
Workflow Objects No
Reports No

Parameters

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.

 

Note: 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 system returns the entire distinguished name.

Return Value

Unicode text value.

Example

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

returns "Paul Stedman"

$(ParseDN(manager, 0))

ParseDN() Example