Hi everyone,
I have a stored proc I created in my database that is meant to run some processes for me and then start an SQL Agent Job using the sp_start_job.
I was able to run this successfully because I am a sysadmin. However, I need a user with no admin right to be able to execute this stored proc. I came across an article that mentioned that a certificate can be used to manage the permission I don't want to use impersonation or cross database authentication to do this because of other security reasons.
I have created the certificate and granted access to the sp_start_job in msdb and added the following roles (SQLAgentOperatorRole, SQLAgentReaderRole, SQLAgentUserRole, TargetServersRole). However, I am still gettting the following error: The EXECUTE permission was denied on the object 'sp_start_job', database 'msdb', schema 'dbo'.
Anyone with similar experience that could assist.
Thanks@!