cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

how to execute action as admin

Jump to solution

I have a workflow where users submit a request for a new price on a part.  Once the form is filled out, it goes to a Price List Admin group for approval.  If the request is approved, the Price list is updated with the new price.

We are running into a problem in that the workflow is failing when it tries to create a new item in the price list.  The only people who have the ability to create or edit the price list are the price list admins.  Anyone can make a request, but only the admins can approve the request and modify the price list.

It appears that the workflow is attempting to create the new price in the price list under the credentials of the initiator.  Since the initiator does not have permissions to create a list item, or edit a list item in the price list, the workflow errors out.

I seem to remember that there used to be a way to run an action with elevated privileges but I can't find it.  Google searching doesn't help.  This seems like a very common use-case.  It should be obvious but I can't find it.

Thanks

Dave Petersen

Labels: (2)
Reply
4 Replies
Highlighted
Nintex Employee
Nintex Employee

Re: how to execute action as admin

Jump to solution

Hi David,

Which version of Nintex Workflow are you using?

For Nintex Workflow 2013, try using the Action Set action and placing the actions in it.  When you configure the Action Set, go to the Common tab and check the "Run as workflow owner" option.  Checking this option will cause this action, and any child actions, to run using the credentials of the user who published the workflow instead of the user who started the workflow.

For Nintex Workflow for Office 365, Nintex recently added the Action Set with an "Elevate permissions" option.  This allows you to run child actions in the Action Set with elevated app permissions. One thing to keep in mind is that the "Workflows can use app permissions" SharePoint site feature must be activated on your site to use the Action Set in Office 365.

View solution in original post

Reply
Highlighted
Nintex Newbie

Re: how to execute action as admin

Jump to solution

Thanks!  I knew there was something like that somewhere - just didn't know where to look.  I appreciate it.  Big time saver.

Reply
Highlighted
Nintex Newbie

Re: how to execute action as admin

Jump to solution

Hi Eric,

Is this solution for both on premise and office 365 ? Because I am not able to see the option 'Run as workflow owner' in the Action set in on premise. I have enabled the app permission in manage site features as well.

Thanks

Jag

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: how to execute action as admin

Jump to solution

If anybody looking for O365 based Nintex workflows to run with elevated privilege then use the "Action Set" action and check the option for "Elevated Permissions" will make the job done.

rkapiljith_0-1596123940729.png

 

 

Try to  use the Help menu from SPO designer Ribbon.

 

Caution: The App Step action has been incorporated into the Action Set action. Existing instances of App Step in workflows now appear as an Action set. For more information, see Action Set.

 

Hope you are aware of activating the site feature for "Workflows can use app permissions" before achieving this functionality. In case of a failure, you may try to deactivate and activate this feature again to make it functional.

 

Cheers,

Kapiljith Rajappan

0 Kudos
Reply