Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 AD Domain group info.

Author  Topic 

ravilobo
Master Smack Fu Yak Hacker

1184 Posts

Posted - 2008-11-19 : 11:42:38
I have users who have access to sql server because of the AD GROUP access. When a user connects to sql server, I need to capture which AD group he belongs to.

select suser_sname() gives me the login name. How can I find out which group the login belongs to?


------------------------
I think, therefore I am - Rene Descartes

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-11-19 : 13:30:53
I've got a blog on this: http://weblogs.sqlteam.com/tarad/archive/2008/06/23/How-to-get-information-about-Windows-users-and-groups-using.aspx

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

ravilobo
Master Smack Fu Yak Hacker

1184 Posts

Posted - 2008-11-19 : 13:36:25
Thank you, Tara.

------------------------
I think, therefore I am - Rene Descartes
Go to Top of Page
   

- Advertisement -