How to lock a Magnus workflow to always run as the workflow owner?
Only admins can lock a workflow to always run as the workflow owner.
There are different ways to run a workflow. Depending on which, the user account that is used to run the workflow will be different.
- A workflow can be run manually by clicking on Run button. The workflow will be executed as the user who clicks the Run button.
- A workflow can be run by the scheduler. The workflow will be executed as the workflow owner.
- A workflow can be run remotely via the Remote Workflow Execute API. The workflow will be executed as the user whose credential is provided in the request.
- A workflow can be run from within a parent workflow via the Execute Workflow Task. The workflow will be executed as the current running user of the parent workflow.
When a workflow is locked to always run as the workflow owner, then under all circumstances, the workflow will be executed as the workflow owner.
To lock a workflow to always run as the workflow owner:
- If the workflow is not owned by you, nor delegated to you, then you need to first enable Advanced Admin.
- Click on [Workflows] to open the Workflows Browser.
- Type the workflow Id in the Content textbox.
- Select “All Workflows” in the dropdown.
- Click on the workflow Id to edit.
- An open lock means that this workflow is not yet locked to always run as the owner.
- Click on the lock icon until you see a closed lock.
- Click Save.