Skip to main content
Nintex Community Menu Bar

Impersonation step in Nintex workflow?

  • Feb 12, 2016 12:18 AM UTC
  • 14 replies
  • 85 views
  • Translate All

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.

Translate

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

Translate

Forum|alt.badge.img+11
  • Nintex Partner
  • Feb 12, 2016 3:49 PM UTC

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

Translate

Forum|alt.badge.img+9
  • Author
  • Scholar
  • Feb 12, 2016 5:57 PM UTC

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

Translate

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

Translate

Forum|alt.badge.img+9
  • Author
  • Scholar
  • Feb 12, 2016 6:27 PM UTC

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?

Translate

vadim_tabakman
Forum|alt.badge.img+11

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

Translate

Forum|alt.badge.img
  • Dec 1, 2016 1:03 AM UTC

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?

Translate

Forum|alt.badge.img+2
  • Jan 4, 2017 1:23 PM UTC

I have the same question!

Translate

Forum|alt.badge.img+11
  • Nintex Partner
  • Jan 4, 2017 1:35 PM UTC

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

Translate

Forum|alt.badge.img+9

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.

Translate

Forum|alt.badge.img+11
  • Nintex Partner
  • Mar 10, 2017 12:53 PM UTC

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

Translate

Forum|alt.badge.img+9
  • Mar 10, 2017 2:55 PM UTC

brilliant2.jpg?w=720

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

Translate

Forum|alt.badge.img+9

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

Translate