Set Active Directory Object Property Action

Description

Sets the specified property of the specified Active Directory object to the desired value.

Declaration

<AMSETADPROPERTY LDAPPATH="text" PROPERTYNAME="text" PROPERTYVALUE="text" USERNAME="text" PASSWORD="text" />

Example

<AMSETADPROPERTY LDAPPATH="LDAP://servtest.com/CN=Harry,OU=Automated WorkflowUsers,DC=servtest,DC=com" USERNAME="administrator" PASSWORD="password" PROPERTYNAME="mail" PROPERTYVALUE="harry@servtest.com" />

General Tab Parameters

Path: Allows you to choose the LDAP path of active directory object whose property you want to set.

Text, Required
MARKUP: LDAPPATH="LDAP://OU=TestCases,DC=networkautomation,DC=com"

  • Click Select Object to find the object you want to delete. When you do, this launches a standard Windows Active Directory dialog box that allows you to select the object.

  • Click Select Container to select the parent container from the domain. You can also select objects like user, computer, group, contacts by clicking on select objects.

Property name: Allows you to specify active directory object's property.

Text, Required
MARKUP: PROPERTYNAME="mail"

Property value: Allows you to specify active directory object's property value.

Text, Required
MARKUP: PROPERTYVALUE="dli@networkautomation.com"

Credentials Tab Parameters

Username: Allows you to enter the name of the active directory user.

Text, Optional
MARKUP: USERNAME="ronak"

Password: Allows you to enter the password of the active directory user.

Text, Optional
MARKUP: PASSWORD="password"

Note: Leave these fields blank if you want to use current user's credentials. If you are trying to access the active directory information, then any Domain user is valid but in order to modify the user or group you need Domain Administrator. We recommend you use domain administrator for all the active directory actions.

Note: If you are using Query to get list of active directory object and username is required to connect to domain.

Provide username in this format username@domain. Refer to the following link for more information about LDAP: http://en.wikipedia.org/wiki/Lightweight_Directory_Access_Protocol

See Also

Get Active Directory Object Property, Get Active Directory Object Path