Need publish permissions to run runbook

Nickolas Poppy 1 Reputation point
2022-02-03T20:55:18.403+00:00

I'm trying to get a runbook to run by using C:\Windows\System32\SCOJobRunner.exe -RunBookPath:"PathToMyRunbook" in powershell but each time I go to execute this I get this error back:

C:\Windows\System32\SCOJobRunner.exe :
At line:3 char:1

  • C:\Windows\System32\SCOJobRunner.exe -RunBookPath:"\In Production\Imp ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : NotSpecified: (:String) [], RemoteException
  • FullyQualifiedErrorId : NativeCommandError

Unhandled Exception:

System.Data.Services.Client.DataServiceRequestException: An error occurred while processing this request. ---> System.Data.Services.Client.DataServiceClientException: <?xml version="1.0" encoding="utf-8"
standalone="yes"?>
<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<code></code>
<message xml:lang="en-US">The requested operation requires Publish permissions on the Runbook</message>
</error>
at System.Data.Services.Client.DataServiceContext.SaveResult.<HandleBatchResponse>d__50.MoveNext()
--- End of inner exception stack trace ---
at System.Data.Services.Client.DataServiceContext.SaveResult.HandleBatchResponse()
at System.Data.Services.Client.DataServiceContext.SaveResult.EndRequest()
at System.Data.Services.Client.DataServiceContext.SaveChanges(SaveChangesOptions options)
at System.Data.Services.Client.DataServiceContext.SaveChanges()
at Microsoft.SystemCenter.Orchestrator.Integration.Administration.SCOJobRunner.SCOJobRunner.InvokeRunbook()
at Microsoft.SystemCenter.Orchestrator.Integration.Administration.SCOJobRunner.SCOJobRunner.Main(String[] args)

I am able to run the Runbook perfectly fine through the Runbook designer itself.
I've tried running "TRUNCATE TABLE [Microsoft.SystemCenter.Orchestrator.Internal].AuthorizationCache" on the scorch db but I still get the same error when trying after.
I've made sure that the account I'm using has publish permissions on the permissions window for the runbook.

Strangely enough, there is another runbook that when I execute C:\Windows\System32\SCOJobRunner.exe -RunBookPath:"PathToMyOtherRunook" runs perfectly fine.

Any help would be much appreciated.

System Center Orchestrator
System Center Orchestrator
A family of System Center products that provide an automation platform for orchestrating and integrating both Microsoft and non-Microsoft IT tools.
214 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Stefan Horz 3,461 Reputation points
    2022-03-10T20:58:52.157+00:00

    Hi @Nickolas Poppy ,
    sorry for the late reply.Not sure if you need still help here.
    The user running SCOJobRunner needs Publish Permissions to the Runbook. You can set this in Runbook Designer with right mouse click to the folder and "Permissions ..." in context menu. In "Advanced" you will find "Publish" to check....
    181994-publish.jpg

    Regards,
    Stefan

    0 comments No comments

  2. Sourav_MSFT 1 Reputation point
    2022-03-16T06:02:38.653+00:00
    0 comments No comments