# add-association

<add-association> is used to return the unique key of an object added as the result of an <add> command.

Example

>     <add-association dest-dn="\Users\Samuel" dest-entry-id="33974">{BC3E7155-CDF9-d311-9846-0008C76B16C2}</add-association>

## 1. Allowed Content

> #PCDATA
> operation-data
>   Operation additional custom data.

## 2. Attributes

> Attribute | Value(s) | Default Value
> --- | --- | ---
> dest-dn | CDATA The distinguished name of the target object in the namespace of the receiver. Should be set to the src-dn of the <add>. | #REQUIRED
> dest-entry-id | CDATA The entry id of the target object in the namespace of the receiver. Should be set to the src-entry-id of the <add>. | #IMPLIED
> event-id | CDATA An identifier used to tag the results of an event or command. Should be set to the event-id of the <add>. | #IMPLIED

## 3. Content Rule

> ( #PCDATA | operation-data ) *

## 4. Parent Elements

> input
>   Input events or commands.
> output
>   Results of events or commands.

Top Elements || All Elements || Tree