Skip to main content
Nintex Community Menu Bar

Impersonation step in Nintex workflow?

  • February 12, 2016
  • 14 replies
  • 73 views

Forum|alt.badge.img+9

I have an action in the workflow where I want to create an item in a list where the user who initiated the workflow doesn't have access. In another scenario I have a workflow where user who initiated it will have read only access to the item but I still want the workflow to be able to modify it. How do I do it? On some actions there is an option to run it as a workflow owner but I don't see it on the "Create Item" action.

14 replies

Forum|alt.badge.img+8

Igor - Simply add an Action Set to your workflow, and then put the Create Item action into the Action Set.  The Action Set has the "Run as Workflow Owner" option.


vadim_tabakman
Forum|alt.badge.img+11

To add to Tom's response.  When you open the Action Set setting, in the ribbon of the settings window, click on Common.  You'll find the Run as Workflow Owner option, there.

It will run everything inside the Action Set, as the person who published the workflow.

Vadim


Forum|alt.badge.img+11
  • Nintex Partner
  • February 12, 2016

As further addition, if the action is nested inside other action (as inside an Action Set or in a branch of a Set condition action, or anything similar), the Run as Workflow Owner isn't available and you to mark that flag on the upper action (the action set, the set condition, ecc..)

Giacomo


Forum|alt.badge.img+9
  • Author
  • Scholar
  • February 12, 2016

I think that is the case here as I am not able to find it. Can you please tell me where can I find it in the example below? Thanks!

actionset01.png

actionset02.png


vadim_tabakman
Forum|alt.badge.img+11

Hi Igor,

the option of Run as Workflow Owner, will only be available if your Action Set is at the root (top level) of the workflow.  Not within another branch of an action.

Vadim


Forum|alt.badge.img+9
  • Author
  • Scholar
  • February 12, 2016

Ok - so whats the best solution here? Can I for example set a variable on the Approve branch, move the action set to the root path and combine it with Run If?


vadim_tabakman
Forum|alt.badge.img+11

Oh definitely.. As long as it outside of the child branches, that'll be fine.


Forum|alt.badge.img
  • December 1, 2016

Hi Tom,

Quick question, what happens when the person who published the workflow either leaves the organization or no longer has elevated privileges?  Is it better to publish using a service-like account?


Forum|alt.badge.img+2
  • January 4, 2017

I have the same question!


Forum|alt.badge.img+11
  • Nintex Partner
  • January 4, 2017

Hi,

in my experience, when the "run as workflow owner" option has been ticked, it's better to publish the workflow with a service-like account, otherwise using a "user-like" account, if it's disabled or it loses some authorizations, the workflow could error because of that.

Giacomo


Forum|alt.badge.img+9
  • Novice
  • March 9, 2017

Do you if this would work if I put a full state machine inside the action set? My stat machine has some change permission actions for the initiator.

And the actions inside the state machine doesn't have (even the action set within StatM.) the run as workflow owner option.


Forum|alt.badge.img+11
  • Nintex Partner
  • March 10, 2017

Hi Christine, yes, it would work, but you could also set the "run as workflow owner" directly in the state machine if it isn't nested inside other actions..

Giacomo


Forum|alt.badge.img+9
  • March 10, 2017

brilliant2.jpg?w=720

I did not know this was even an option in the Action Set.  Learned something new today. happy.png


Forum|alt.badge.img+9
  • Novice
  • March 10, 2017

Thanks Giacomo.. I didn't find it in the stat machine, but I did put the full state machine inside the action set and ran as sharepoint admin (republished using the admin account instead of my account).. works smoothly.. Very happy that I found this post, this was causing me a lot of trouble.. Thank you guys.. you're the best..