I am trying to change active directory user account password using ‘change user password’ activity under ‘Active directory domain services’ package.
but when i execute the password i get the following error
“Change User Password: An error has occurred: Exception has been thrown by the target of an invocation.”
The userDN’s value might not be correct - try getting the user eg by sAMAccountName with the GetObjectDistinguishedName activity and check afterwards if UserExists
I have tried getting the user with GetObjectDistinguishedName activity .A screenshot with the output of this activity which is Distinguished name of the user is attached. I have provided sAMAccountName as the input.
You have suggested us to use UserExists after retrieving the DistinguishedName. But the ‘UserExists’ activity expects sAMAccountName as one of the input.
a) If DN retrieved in the previous step is passed to UserExist without sAMAccountName the activity does not work.
b) If DN along with sAMAccountName is provided to UserExist then the activity identifies that the UserExists but we are still not able to change the password.
could you please explain how to achieve this?
I have double checked the ActiveDirectoryScope activity credentials and they are working as expected. As mentioned we are able to retrieve the user DN.
Other AD operations like unlock a user using the credentials are working as expected except the ‘ChangePassword’ acivity
Fyi am the ActiveDirectory Admin, do let me know if something needs to be changed at AD level.
I did some tests on my side with all 1.2.x AD activity packs, all looks good.
Another cause that I think can generate an error is if you have password policies enforced - does the password you are setting respect the minimum complexity?