Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Read only user for security users in a database Expand / Collapse
Author
Message
Posted Monday, August 4, 2014 12:19 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, September 10, 2014 1:14 PM
Points: 28, Visits: 129
I'm not new to SQL, but there are some things I've never done. Creating a read-only user who can see all of the users in a database is one of them. Is this possible?
Post #1599362
Posted Monday, August 4, 2014 12:50 PM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Yesterday @ 7:07 AM
Points: 803, Visits: 720
Add the user to db_datareader, and grant the user VIEW DEFINITION on database level:

GRANT VIEW DEFINITION TO nisse

Note that this gives the user right to see any definition in the database, that is stored procedures, tables, certificates etc. And users.


Erland Sommarskog, SQL Server MVP, www.sommarskog.se
Post #1599366
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse