> Automation > Objects > Active Directory > Delete AD User

Delete AD User

Deletes a user object from the domain.



Input Parameters

Name Type Required Description
Domain Name String Yes The name of the user object Domain. For example, DC=California,DC=local or California.locall
CommonName String Yes The CommonName of the user to be deleted.
OU String No Organizational Unit container where the user object is contained. If undefined, the user object will be deleted from the standard users container for the domain.

Output Parameters

Name Type Description
Result Number Returns a success value of zero or any value other than zero to indicate failure.

Example Input Parameters

Name Type Required Example
Common Name String Yes Jsmith
Domain String Yes Abc.com
OU String Yes OU=Marketing,DC=ABC,DC=com