Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restrict access to specific user group

Status
Not open for further replies.

Gill1978

Programmer
Joined
Jun 12, 2001
Messages
277
Location
GB
Hi,

I need to restrict a user group (WORLD\LONIB SQLD-CWA-RO) from a specific sql server table Audit_Auditors:

I've tried going into the permissions on the table and unclicking the public access and clicking on SELECT/ UPDATE/ DELETE for all roles except the above but that hasn't worked ...

Can anyone help ?

Thanks

Julie
 
Hi ...

This seems to have worked :
Code:
revoke select on dbo.Audit_Auditors to [LONIB SQLD-CWA-RO];
revoke INSERT on dbo.Audit_Auditors to [LONIB SQLD-CWA-RO];
revoke UPDATE on dbo.Audit_Auditors to [LONIB SQLD-CWA-RO];
revoke DELETE on dbo.Audit_Auditors to [LONIB SQLD-CWA-RO];
 
You will probably want to look into the DENY command, if you want to forbid them absolutely. If one of these users gets added to the db_datareader group, they will have access to read the table again.
 
Yes, as yelworcm says, SQL Server recommends using DENY to a user group, that way the entire group cannot access an object, eases administration
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top