users in msdb

what scenario situations will need to add specific users in msdb.. with public/guest, do everyone get default access to msdb?
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.

msdb generally holds information pertaining to the SQL Server Agent (alerts, jobs and scheduling), DBmail, SSIS and the service broker.

If you are operating with a least privileged security model (which is always a good plan), you would use permissions here to control:
what access users have to the SQL Server Agent (via database roles: SQLAgentOperatorRole, SQLAgentReaderRole, and SQLAgentUserRole),
what access users have to SSIS packages (via database roles: db_ssisadmin, db_ssisltduser, and db_ssisoperator), and
control access to the views/tables that hold all the information for DBmail, SQL Server Agent jobs/history/etc.


I completely neglected to answer the other part of your question.  With public permissions to the msdb database, a user would have access to a very, very limited subset of the tables in the msdb database.  Additionally, they would have no access to even see the SQL Server Agent tree in SSMS (same with the Maintenance Plans tree).
25112Author Commented:
thanks didnthaveaname. like the roles SQLAgentOperatorRole or db_ssisadmin, are there roles/permissions specific for DBMail or Service Broker?
As far as DBmail is concerned, whenever you have enabled DBmail, there is a DatabaseMailUserRole database role that is added to the msdb database roles, which controls the ability to execute the sp_send_dbmail stored procedure (the other SPs require sysadmin fixed server role permissions to execute:

I have never had to utilize the Service Broker, so I am not sure off the top of my head, but I will do a little digging and post back what I figure out.
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

25112Author Commented:
thanks .. is DatabaseMailUserRole  needed to be specified even if the profile is PUBLIC (any user can access and use it)?
Yes.  You would need to specifically add the users or group to the DatabaseMailUserRole database role.  Alternatively, you could make the public db role a member of the DatabaseMailUserRole db role.  I would caution against that, as you really want only those who need access to an object (regardless of how trivial you may view it) to have access to that object.

For the service broker, the permissions are database level securables and users are granted permission within the database context with the service broker enabled in them.  The catalog views are in the msdb (  I'm not 100% on where the metadata is stored, but I do believe it's at the database level - the service broker is enabled via an alter database statement ( and the permissions for configuring the various pieces of it are database level securables (

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
25112Author Commented:
thanks a lot for your helpful guidance. it worked.
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.