AccessDeniedException for running ssrs report

Occasional Visitor



We have tried to give permissions to a service account to run reports as a batch process, but we have succeeded with that only when we give local admin permissions to the service account and we don't wish to do that.

The command we are running is 

"C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\rs.exe" -l 18000 -i %RSSSCRIPT% -s "http://%BISERVER%/%BIURL%" -v FILEPATH="%PATHVAR%" -v FILENAME="%FILENAMEVAR%" -v REPORT="%BIREPORTLONGNAME%" -v FORMAT="%BIFORMAT%" -v PARAMS=%BIPARAMS% -v PARAM_REPORT="%BIMETA%" -v PARAM_FILENAME="%BIREPORT%_Meta.csv" -v SKIPROWS="1" -e Exec2005 -t 1> %LOGFOLDER%\%BIREPORT%.log 2>&1


And these lines are in ReportServerService log file:

runningjobs!ReportServer_0-26!4e80!09/10/2020-11:03:21:: i INFO: Adding: 1 running jobs to the database
library!ReportServer_0-26!4e34!09/10/2020-11:03:32:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: , Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: The permissions granted to user 'domain\serviceaccount' are insufficient for performing this operation.;


The account has permissions to run web reports as defined in MS document.

0 Replies