I am trying to create a workflow in 2013 to create an AD User.
I have an LDAP query that is working perfectly, but when it gets to creating the AD User it errors stating the folder location is incorrect.
Failed to create Active Directory account. An invalid directory pathname was passed
I have used the picker when configuring the function. I have even setup to use the root folder of the AD and it still does not work.
The current LDAP is;
Any help would be greatly appreciated.
Does the account you are using in the workflwo have access to that location? Also try looking into your ULS logs to see exactly what SharePoint is saying about the workflow error.
Hope that helps.
I think that the AD group needs to be already created and you may need to be an owner of the group to able to add to it.
I would make sure of those two things first. Then you can log in the Error Message that you receive that is very helpful.
Try those things and let me know if you need additional help.
Does the account really need to be an owner of the of the group to be able to add to it? Ownership gives all permissions to that service account which is not desirable. Would full control/ add/delete be sufficient?