# Get Object Distinguished Name

> `UiPath.ActiveDirectoryDomainServices.Activities.GetObjectDistinguishedName`

`UiPath.ActiveDirectoryDomainServices.Activities.GetObjectDistinguishedName`

## Description

Retrieves the distinguished name of a given Active Directory object.

## Project compatibility

Windows - Legacy | Windows

## Configuration

### Common

* **DisplayName** - The display name of the activity.

### Input

* **SAMAccountName** - The Security Accounts Manager (SAM) account name of the object.
* **Connection** - Establish the connection that needs to be used. There are two available options, **Primary** and **Secondary**. The default option is **Primary**.

### Misc

* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.

### Output

* **DistinguishedName** - The distinguished name of the given object.
