Hi can anyone help me on this Getting error when creating user through flow Create User: An error has occurred: Access is denied.
@ovidiuponoran Please have a look … I am just getting all the things but showing this error
@Vijay_RPA: are you refering to AzureActiveDirectory package or ActiveDirectory package?
Anyway, the user that you specify in the scope activity shall have the appropriate permissions in Active Directory to perform ‘create user’ action.
Please talk with your Active Directory admin to give you the needed permissions for the actions you want to implement in the workflow.
Hi @ovidiuponoran …Thanks for the quick response …I am talking about Active directory and I am able to create the user manually … i was worried facing this issue while doing automation
- Do you explicitly set a value in Active Directory Scope activity for Username, Password and ActiveDirectoryPath parameters? If you don’t, the credentials of the current logged in user are used to connect to the AD it belongs to. Under which user account is your Robot running?
- Have you tested other read or create/update/delete activities in the same workflow? Are they working fine?
I have set the active directory credentials from orchestrator . User account running on VM machine (same user). And also bot running on same user account
User exists kind of things working fine @ovidiuponoran
If read-activities like
User Exists are working in the same workflow when using the same AD credentials, then access denied can happen only if the user specified in scope activity has no permissions to create new AD objects in the location (i.e. OU) you set in the
Location parameter of the Create User activity. Use “Active Directory Explorer” tool to make sure you are providing the correct distinguished name for the OU where you want to create the user.
Thank you @ovidiuponoran will check that
Hi @ovidiuponoran you are absolutely Right … Checked in Local Adding users to group working fine as it access denied error in VM … But coming to creating user its throwing below error . I think the same error some one posted in IT automation thread but no resolution there
Source: Create User
Message: An error has occurred: Unspecified error
Can you please help me on this
@ovidiuponoran Please find the screeshot and my workflow for referenceCraete new User (1).zip (19.4 KB)
Hi @Vijay_RPA That issue you’ve mentioned was solved in a private message exchanged having the reporter reviewing his workflow for preparing the user properties.
My suggestion is to take it step by step:
- Create the user without any properties, i.e. Create User’s Properties field is empty; if this works continue with the next steps;
- Add the properties one by one to see which one is causing the workflow to fail.
One observation: I had a quick look at your workflow and I didn’t understood why you set the SAMAccountName for the user to employee(“Reporting Manager”).ToString which is supposed to be his/her manager than the new user itself (and it is expected to already exists in AD). User’s common name seems to be well constructed, based on first and last name on the employee.
I cannot help you more than this. My recommendation is to open an official technical support ticket at https://www.uipath.com/company/contact-us/contact-technical-support , somebody shall help you.
Thank you @ovidiuponoran … will check your suggestions and Thanks for the response … Cheers … Good day