Skip to main content
Nintex Community Menu Bar

How do I change the ownership of a workflow?

  • August 14, 2015
  • 9 replies
  • 118 views

Forum|alt.badge.img+1

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?

9 replies

Forum|alt.badge.img+11
  • Nintex Partner
  • August 14, 2015

Hi,

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

Giacomo


Forum|alt.badge.img+1
  • Author
  • August 14, 2015

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?


Forum|alt.badge.img+11
  • Nintex Partner
  • August 14, 2015

Hi,

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!

Giacomo


Forum|alt.badge.img+1
  • Author
  • August 14, 2015

No worries, thanks anyway!


Forum|alt.badge.img+11
  • August 28, 2015

I think you can get the workflow to run as the system account which has elevated privileges and should always exist.


Forum|alt.badge.img+1
  • Author
  • September 2, 2015

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.


Forum|alt.badge.img+11
  • September 2, 2015

Select the action 'Run as elevated priviliages' I think its called.


Forum|alt.badge.img+1
  • Author
  • September 2, 2015

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 wink.png.


Forum|alt.badge.img+11
  • September 2, 2015

Sorry, my bad!