SQL Agent runs when account is sysadmin

Hello Experts Exchange
I have a SQL Agent job that runs under a user, when the user has sysadmin rights, but when I remove sysadmin right the job does not run, and has the following error.

Executed as user: TELFORD\SqlAgent. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.5058.0 for 32-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  16:56:21  Error: 2015-10-15 16:56:24.02     Code: 0xC0202009     Source: Data Flow Task OLE DB Source [119]     Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E09.  An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80040E09  Description: "The SELECT permission was denied on the object 'Master_Selection_Criteria', database 'BPC_LOOKUPS', schema 'dbo'.".  End Error  Error: 2015-10-15 16:56:24.02     Code: 0xC004706B     Source: Data Flow Task SSIS.Pipeline     Description: "OLE DB Source" failed validation and returned validation status "VS_ISBROKEN".  End Error  Error: 2015-10-15 16:56:24.02     Code: 0xC004700C     Source: Data Flow Task SSIS.Pipeline     Description: One or more component failed validation.  End Error  Error: 2015-10-15 16:56:24.02     Code: 0xC0024107     Source: Data Flow Task      Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  16:56:21  Finished: 16:56:24  Elapsed:  2.157 seconds.  The package execution failed.  The step failed.

The job runs a SSIS package.

I want to remove sysadmin rights from the user account, what rights do I have to give this user to get the job to work?

Regards

SQLSearcher
SQLSearcherAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

arnoldCommented:
Setup and Use a separate service account instead of using an existing user's account.
SQL agent needs to be a sysadmin role.
see link
https://msdn.microsoft.com/en-us/library/ms190926.aspx
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
When you set an user as Sysadmin it will have full access to all databases so when you remove that role for the user you'll need to explicitly give him the permissions that he needs on the database.
In your case he needs at least the SELECT permission on the table 'Master_Selection_Criteria' in database 'BPC_LOOKUPS'. Of course that he might need more permissions since I don't know which objects and operations are used in your SSIS package.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.