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.
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.
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
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
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!
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
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?
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?
I have the same question!
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
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.
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
I did not know this was even an option in the Action Set. Learned something new today.
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..
Reply
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.