I need to change the ownership of my workflows. At this moment I'm creating a few workflows for a customer, but my user-account will be gone in a while. The workflows contain steps which run with elevated privileges, and off course I need those to keep working after I'm gone. Running them via the webservice is not an option. So my question; how do I change the ownership of my workflows?
Solved! Go to Solution.
the owner is the user who publish the workflow, so if you (or someone at your customer) publish the workflow using an account that will not expire you can avoid the problem
Thank you for your reply. It does not really answer my question though. I'm looking for a way to change the owner, maybe via powershell? Or are you saying the only way to do this, is republishing all my workflows?
Vadim Tabakman has posted on his blog a script powershell to export all workflows and republish them, it's a script for SharePoint 2010 on-premises: Nintex Workflow - PowerShell Find All Workflows and Export or Republish Part 3 - Vadim Tabakman but I think it can be adjusted for SharePoint 2013 if it doesn't work (if you are on O365 this solution isn't applicable)
I don't know if there is a different way to change the owner of a workflow without republishing it, sorry!
You need to create an initiation workflow, which uses the 'Call A Web Service' component.
From there you can get that to run your original workflow with whatever user is configured within 'Call A Web Service'
That's not really an answer...do you know how to do that? The run as owner just runs it as the person who created the workflow and I don't have access to a system-account to republish the workflow as such.
No...it is called run as (workflow) owner, as I just said. But if you read my answer, you'd see that doesn't solve the problem, as was also stated in the original question .