"Background scripts" in AM
I've created a workflow that runs a certain script when the stock status of an asset is changed from a specific status to a different specific status (from "Pending installation" to "installed", they were created manually..)
When a user which is not an administrator changes this field and the workflow is triggered he gets an error message that he cannot run this script causing that user not to be able to make that update.
Is there a way to make a script a "background script" so it will run regardless to the user that triggers it and seamlessly?
Re: "Background scripts" in AM
Yes, you can make the workflow "Log event and process by server". Although the user still triggers it, the workflow activities are actually executed by the Automated Process Manager, and so run under whatever account it logs in as. Since this must be an Administrative account, it shouldn't have any problems executing the script.
However, because the workflow doesn't run until the execution group that it's assigned to executes on the APM, there is a delay between when it is triggered and when it processes, which depends on how often the APM triggers that execution group. You can make the delay quite short (I would not recommend faster than every 1 minute), but the user will not see the changes the workflow executes immediately no matter what.
HPE Software Support
If this post has helped you resolve the issue, please flag it as solved.