I have a script run that pulls AD data into a SharePoint list, this pulls the Line Manager field as:
CN="Manager name",OU="1st OU",OU="2nd OU",OU="3rd OU",OU="4th OU",DC="FQDN"
However I want to then copy that data into a new list but only keeping the "Manager Name" This will need to be done in a SharePoint designer 2013 Workflow.
I know the regex that'll work is (?<=CN=)(.*?)(?=\,) but I can't work out how to get that into a SharePoint Workflow to actually work!
Any help would be great.