I need to implement a workflow/policy script that triggers onPostModify of the mail attribute, both for new users and changes to the mail attribute of existing users, and writes the user's employeeID and mail attribute to a CSV file and uploads it to an sFTP site for collection by our Workday HR system.
I can manage the poweshell script to create the CSV and upload it to the sFTP site.
It is the configuration of the workflow/policy that I am a little unclear on.
Does anybody have any pointers please? Or perhaps a link?