While Create User in Active directory - Create User: An error has occurred: Exception has been thrown by the target of an invocation

While Create User in Active directory - Create User: An error has occurred: Exception has been thrown by the target of an invocation.


EmployeeOnboarding.zip (29.8 KB)
please find the below work flow and excel used for user creation

@ARIHARAN

Please open the exception details from locals panel…there you would see a more detailed explanation of the rror and we can accordingly try fixing

Cheers

@Anil_G
please find the remote exception i got — please specify what kind of access
i should have for active directory

RemoteException wrapping UiPath.ActiveDirectoryDomainServices.Activities.ActiveDirectoryException: An error has occurred: Exception has been thrown by the target of an invocation. —> RemoteException wrapping System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> RemoteException wrapping System.UnauthorizedAccessException: Access is denied. (0x80070005 (E_ACCESSDENIED))
Remote Exception.txt (2.6 KB)

@ARIHARAN

The user should be having the create access or admin accessto create users…I believe the account you are using does not have it

The error is evident now…

Cheers

@Anil_G
please clarify me i have a managerial access which means i could create user manually without any issue ----- in that case i should need admin access am i correct to create user using create user activity in UiPath.

thanks

@ARIHARAN

What connection type are you using?

Can you or verify your connection details…are you using same id in the scope?

Cheers

@Anil_G

As you Guided i have checked the connection type and the user.
1.User name = username
getting below access denied exception while using only username

2.User name = domin\username
getting below The specified directory service attribute or value does not exist while using domin\username.

@Anil_G

i can create user in the OU but the fields I passed such as Firstname,lastname etc is not in the Please find the below screenshot.

@ARIHARAN

Can you please confirm if fields are passed properly

cheers

@Anil_G
Please find this the user property I am passing , correct me if I am wrong