﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 7,2000 / Security  / How to determine SQL Security Login group for windows login when user is member of  active directory security group. / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 18 May 2013 03:29:53 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: How to determine SQL Security Login group for windows login when user is member of  active directory security group.</title><link>http://www.sqlservercentral.com/Forums/Topic368179-6-1.aspx</link><description>SQL Secure does a fine job of determining inherited permissions.Jeff BennettSaint Louis</description><pubDate>Mon, 30 Jan 2012 12:28:39 GMT</pubDate><dc:creator>chudman</dc:creator></item><item><title>RE: How to determine SQL Security Login group for windows login when user is member of  active directory security group.</title><link>http://www.sqlservercentral.com/Forums/Topic368179-6-1.aspx</link><description>SQL Secure does a fine job of determining inherited permissions.Jeff BennettSaint Louis</description><pubDate>Mon, 30 Jan 2012 12:27:40 GMT</pubDate><dc:creator>chudman</dc:creator></item><item><title>RE: How to determine SQL Security Login group for windows login when user is member of  active directory security group.</title><link>http://www.sqlservercentral.com/Forums/Topic368179-6-1.aspx</link><description>Good question, I was also looking for a query to tell me quickly which grp does a domain\user belongs to, the closest I think is(not a complete answer), xp_logininfoEXEC XP_LOGININFO 'domain\groupname','members'EXEC XP_LOGININFO 'domain\groupname','all'-- let me know if there is another easier way.</description><pubDate>Tue, 13 Jul 2010 18:19:21 GMT</pubDate><dc:creator>SQLRocker</dc:creator></item><item><title>RE: How to determine SQL Security Login group for windows login when user is member ofactive directory security group.</title><link>http://www.sqlservercentral.com/Forums/Topic368179-6-1.aspx</link><description>Yes, a Windows account can be a member of multiple security groups. Yes, Windows security groups can nest within Active Directory. To be honest, as a former directory services administrator, your directory services administrators should be able to provide these mappings to you. There's nothing native within SQL Server that gets it all. Your DS admins should have the tools which do.</description><pubDate>Wed, 04 Feb 2009 14:02:04 GMT</pubDate><dc:creator>K. Brian Kelley</dc:creator></item><item><title>RE: How to determine SQL Security Login group for windows login when user is member ofactive directory security group.</title><link>http://www.sqlservercentral.com/Forums/Topic368179-6-1.aspx</link><description>i've a similar requirement. My server has a really messy security system. there are different domains with different trust level and users are granted access to the SQL server by 1) directly granting access to their domain ids or 2)sometimes through group membership or 3) domain local groups or 4) local groups etc. So when ever we have a server migration, there will be some people who complain they had access onthe old server but doesn't have access on the new server. So finally it would come up to determine, how they had permission on the first place. So is there an option anywhere in sQL to determine, what are the access levels through which the user have access right now.</description><pubDate>Wed, 04 Feb 2009 12:19:26 GMT</pubDate><dc:creator>smk-127973</dc:creator></item><item><title>RE: How to determine SQL Security Login group for windows login when user is member of  active directory security group.</title><link>http://www.sqlservercentral.com/Forums/Topic368179-6-1.aspx</link><description>&lt;P&gt;2 issues&lt;/P&gt;&lt;P&gt;1st....can a user belong to more than 1 AD security group...(for different reasons).  Technically I think the answer would be yes....so I think you need to cater for looping through multiple results.&lt;/P&gt;&lt;P&gt;2nd....you should be looking to build an AD lookup/interface routine to execute this functionaility...I've seen others point to resources for doing such actions....search for "AD, SQL, Lookup/interface" and see if anything useful comes up.  I don't think it's a native SQL "system variable".&lt;/P&gt;</description><pubDate>Fri, 25 May 2007 02:41:00 GMT</pubDate><dc:creator>AndrewMurphy</dc:creator></item><item><title>RE: How to determine SQL Security Login group for windows login when user is member of  active directory security group.</title><link>http://www.sqlservercentral.com/Forums/Topic368179-6-1.aspx</link><description>&lt;P&gt;Thanks EdVassie, but that does not really address the issue.  I don't have a problem with internal SQL security on objects.&lt;/P&gt;&lt;P&gt;The issue is the delegated permission from Active Directory.  I want to know the DOMAIN\SecurityGroup with which the DOMAIN\User has gained access to the database.  As a work around I have a mapping table in my database that maps Active Directory users to their groups.  This can be handled by .NET in the front end, but I won't even mention the legacy platform I'm working with here.&lt;/P&gt;&lt;P&gt;If I know the  DOMAIN\SecurityGroup, which I have used for login and object permissions, then I can query sp_helprotect and determine what permissions the current user has on the object, and hence what controls to enable.  Otherwise I would have to wait for a fail on commit, which would be annoying for the user as they would not know until the end of a process whether it will succeed.  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description><pubDate>Thu, 24 May 2007 17:04:00 GMT</pubDate><dc:creator>Jamie Johnson-406551</dc:creator></item><item><title>RE: How to determine SQL Security Login group for windows login when user is member of  active directory security group.</title><link>http://www.sqlservercentral.com/Forums/Topic368179-6-1.aspx</link><description>If the user is a member of a DOMAIN\SecurityGroup that has Sysadmin authority in SQL, then that will be used when accessing databases.  Otherwise you need to look at what DOMAIN\SecurityGroup(s) have ben given authority in each database.  If the user is a member of 2 SecurityGroups, with SecGroupA having select authority and SecGroupB having insert authority, then the user can select and insert.</description><pubDate>Thu, 24 May 2007 03:04:00 GMT</pubDate><dc:creator>EdVassie</dc:creator></item><item><title>How to determine SQL Security Login group for windows login when user is member of  active directory security group.</title><link>http://www.sqlservercentral.com/Forums/Topic368179-6-1.aspx</link><description>&lt;P&gt;My users login to SQLServer through Active Directory security group memberships.  These groups are security groups in SQLServer and used to assign permissions to database objects.&lt;/P&gt;&lt;P&gt;My problem is that when I query system_user, current_user, suser_sname and user I get the individual user, not the group they are a member of.&lt;/P&gt;&lt;P&gt;So where they login in through 'DOMAIN\SecurityGroup' I get back 'DOMAIN\UserName'&lt;/P&gt;&lt;P&gt;When I try User_ID and user_name I get back the SQLServer role like 'dbo' and 'public'.&lt;/P&gt;&lt;P&gt;How can I detemine which 'DOMAIN\SecurityGroup' is being used by 'DOMAIN\UserName' to access the database.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description><pubDate>Wed, 23 May 2007 00:29:00 GMT</pubDate><dc:creator>Jamie Johnson-406551</dc:creator></item></channel></rss>