Read only user for security users in a database

  • 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?

  • 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.

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply