RE: exec sp_help_job user account rights
- From: struchnjak <struchnjak@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 15 May 2009 01:28:01 -0700
Hi,
found this limitations in BOL:
_____________________
Permissions
Execute permissions default to the public role in the msdb database. A user
who can execute this procedure and is a member of the sysadmin fixed role can
also create, delete, or update a job, job step, job category, job schedule,
job server, task, or job history information. A user who is not a member of
the sysadmin fixed role can use sp_help_job to view only the jobs he/she owns.
When sp_help_job is invoked by a user who is a member of the sysadmin fixed
server role, sp_help_job will be executed under the security context in which
the SQL Server service is running. When the user is not a member of the
sysadmin group, sp_help_job will impersonate the SQL Server Agent proxy
account, which is specified using xp_sqlagent_proxy_account. If the proxy
account is not available, sp_help_job will fail. This is true only for
Microsoft® Windows NT® 4.0 and Windows 2000. On Windows 9.x, there is no
impersonation and sp_help_job is always executed under the security context
of the Windows 9.x user who started SQL Server.
_______________
I'm not sure if I can make a workaround for this, or we need to redevelop
our monitoring tools to comply our new security policies.
If you have any tip, please heeeeeeeeeeeeeelp :)
Thank you,
Vladimir
"struchnjak" wrote:
Hi All,.
Which access rights are required for one user to be able to get results from
the following:
exec msdb..sp_help_job @job_name = 'TEST',@job_aspect = N'job';
the same user can get the list of jobs from:
select * from sysjobs order by name
I can make it working only if I put the user into the sysadmin server role.
This is rather to much for a monitoring purpose.
Thank you,
Vladimir
- Follow-Ups:
- RE: exec sp_help_job user account rights
- From: Manpreet Singh
- RE: exec sp_help_job user account rights
- References:
- exec sp_help_job user account rights
- From: struchnjak
- exec sp_help_job user account rights
- Prev by Date: exec sp_help_job user account rights
- Next by Date: RE: exec sp_help_job user account rights
- Previous by thread: exec sp_help_job user account rights
- Next by thread: RE: exec sp_help_job user account rights
- Index(es):
Relevant Pages
|