How would you grab just the distinguishedName value from the LDAP plugin output so it can be used for another action?

{{[“Active Directory Users”].[results].[0].[attributes].[distinguishedName]}} has never given me issues returning the dn. I use this both in Artifacts, Joins, and always use this output as the input to any password reset, enable, or disable action.
Just curious, what does this give you in an artifact?

{{#each ["Query For AD User"].[results]}}
{{#with attributes}}
 “dn”:"{{distinguishedName}}"
{{/with}}
{{/each}}
2 Likes