jochem
Nintex Newbie

How do I change the ownership of a workflow?

Jump to solution

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?

0 Kudos
Reply
10 Replies
jackgelo
Automation Master
Automation Master

Re: How do I change the ownership of a workflow?

Jump to solution

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

0 Kudos
Reply
jochem
Nintex Newbie

Re: How do I change the ownership of a workflow?

Jump to solution

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?

0 Kudos
Reply
jackgelo
Automation Master
Automation Master

Re: How do I change the ownership of a workflow?

Jump to solution

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

0 Kudos
Reply
jochem
Nintex Newbie

Re: How do I change the ownership of a workflow?

Jump to solution

No worries, thanks anyway!

0 Kudos
Reply
burkslm
Nintex Newbie

Re: How do I change the ownership of a workflow?

Jump to solution

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

0 Kudos
Reply
Not applicable

Re: How do I change the ownership of a workflow?

Jump to solution

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'

0 Kudos
Reply
jochem
Nintex Newbie

Re: How do I change the ownership of a workflow?

Jump to solution

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.

0 Kudos
Reply
burkslm
Nintex Newbie

Re: How do I change the ownership of a workflow?

Jump to solution

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

View solution in original post

0 Kudos
Reply
jochem
Nintex Newbie

Re: How do I change the ownership of a workflow?

Jump to solution

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 .

0 Kudos
Reply