Home All Groups Group Topic Archive Search About

Determining Roles from Windows Authenticated Login

Author
2 Dec 2005 3:01 PM
richard.deyoung@gmail.com
I have a few database Roles that map to Active Directory groups.  Is
there a way to determine from either system stored procedures or tables
what Roles a logged-in user belongs to if the user is logged in with
Windows Authentication.

Essentially what I'm trying to determine programmatically with T-SQL is
if the currently logged in user has permissions to any arbitrary
object, such as a table or stored procedure.  Is this common?  Wacky?

AddThis Social Bookmark Button