<p>I'm looking for a way to find a the windows login associated with a specific group. I'm trying to add permissions to a tool that only allows names formatted like:</p>

<pre><code>DOMAIN\USER 
DOMAIN\GROUP
</code></pre>

<p>I have a list of users in active directory format that I need to add:</p>

<pre><code>ou=group1;ou=group2;ou=group3
</code></pre>

<p>I have tried adding DOMAIN\Group1, but I get a 'user not found' error.</p>

<p>P.S.  should also be noted that I'm not a Lan admin </p>

[{'answer_id': 23611, 'author': 'Michael Stum', 'author_id': 91, 'author_profile': 'https://Stackoverflow.com/users/91', 'pm_score': 0, 'selected': False, 'text': '<p>OU is an Organizational Unit (sort of like a Subfolder in Explorer), not a Group, Hence group1, 2 and 3 are not actually groups.</p>\n\n<p>You are looking for the DN Attribute, also called "distinguishedName". You can simply use DOMAIN\\DN once you have that.</p>\n\n<p>Edit: For groups, the CN (Common Name) could also work. </p>\n\n<p>The full string from Active Directory normally looks like this:</p>\n\n<blockquote>\n  <p>cn=Username,cn=Users,dc=DomainName,dc=com</p>\n</blockquote>\n\n<p>(Can be longer or shorter, but the important bit is that the "ou" part is worthless for what you\'re trying to achieve.</p>\n'}, {'answer_id': 23656, 'author': 'Michael Stum', 'author_id': 91, 'author_profile': 'https://Stackoverflow.com/users/91', 'pm_score': 3, 'selected': False, 'text': '<p>Programatically or Manually?</p>\n\n<p>Manually, i prefer <a href="http://technet.microsoft.com/en-us/sysinternals/bb963907.aspx" rel="noreferrer">AdExplorer</a>, which is a nice Active directory Browser. You just connect to your domain controller and then you can look for the user and see all the details. Of course, you need permissions on the Domain Controller, not sure which though.</p>\n\n<p>Programatically, it depends on your language of couse. On .net, the <a href="http://msdn.microsoft.com/en-us/library/system.directoryservices.aspx" rel="noreferrer">System.DirectoryServices</a> Namespace is your friend. (I don\'t have any code examples here unfortunately)</p>\n\n<p>For Active Directory, I\'m not really an expert apart from how to query it, but here are two links I found useful:</p>\n\n<p><a href="http://www.computerperformance.co.uk/Logon/LDAP_attributes_active_directory.htm" rel="noreferrer">http://www.computerperformance.co.uk/Logon/LDAP_attributes_active_directory.htm</a></p>\n\n<p><a href="http://en.wikipedia.org/wiki/Active_Directory" rel="noreferrer">http://en.wikipedia.org/wiki/Active_Directory</a> (General stuff about the Structure of AD)</p>\n'}, {'answer_id': 23660, 'author': 'adeel825', 'author_id': 324, 'author_profile': 'https://Stackoverflow.com/users/324', 'pm_score': 2, 'selected': False, 'text': '<p>You need to go to the Active Directory Users Snap In after logging in as a domain admin on the machine:</p>\n\n<ol>\n<li>Go to start --> run and type in mmc.</li>\n<li>In the MMC console go to File --></li>\n<li>Add/Remove Snap-In Click Add Select</li>\n<li>Active Directory Users and Computers and select Add. </li>\n<li>Hit Close and then hit OK.</li>\n</ol>\n\n<p>From here you can expand the domain tree and search (by right-clicking on the domain name).</p>\n\n<p>You may not need special privileges to view the contents of the Active Directory domain, especially if you are logged in on that domain.  It is worth a shot to see how far you can get.  </p>\n\n<p>When you search for someone, you can select the columns from View --> Choose Columns.  This should help you search for the person or group you are looking for.</p>\n'}, {'answer_id': 23663, 'author': 'Roy Rico', 'author_id': 1580, 'author_profile': 'https://Stackoverflow.com/users/1580', 'pm_score': 0, 'selected': False, 'text': "<p>Thanks adeel825 &amp; Michael Stum. </p>\n\n<p>My problem is, though, i'm in a big corporation and do not have access to log in as the domain admin nor to view the active directory, so i guess my solution is to try and get that level of access.</p>\n"}, {'answer_id': 23679, 'author': 'Michael Stum', 'author_id': 91, 'author_profile': 'https://Stackoverflow.com/users/91', 'pm_score': 0, 'selected': False, 'text': "<p>Well, AdExplorer runs on your Local Workstation (which is why I prefer it) and I believe that most users have read access to AD anyway because that's actually required for stuff to work, but I'm not sure about that.</p>\n"}, {'answer_id': 23709, 'author': 'Euro Micelli', 'author_id': 2230, 'author_profile': 'https://Stackoverflow.com/users/2230', 'pm_score': 2, 'selected': False, 'text': "<p>You do not need domain admin rights to <em>look</em> at the active directory. By default, any (authenticated?) user can read the information that you need from the directory.</p>\n\n<p>If that wasn't the case, for example, a computer (which has an associated account as well) could not verify the account and password of its user.</p>\n\n<p>You only need admin rights to <em>change</em> the contents of the directory.</p>\n\n<p>I think it is possible to set more restricted permissions, but that's not likely the case.</p>\n"}, {'answer_id': 809012, 'author': 'Doug Seelinger', 'author_id': 98167, 'author_profile': 'https://Stackoverflow.com/users/98167', 'pm_score': 0, 'selected': False, 'text': '<p>Install the "Windows Support Tools" that is on the Windows Server CD (CD 1 if it\'s Windows 2003 R2).  If your CD/DVD drive is D: then it will be in D:\\Support\\Tools\\SuppTools.msi</p>\n\n<p>This gives you a couple of additional tools to "get at" AD:\nLDP.EXE - good for reading information in AD, but the UI kinda stinks.\nADSI Edit - another snap-in for MMC.EXE that you can both browse AD with and get to all those pesky AD attributes you\'re looking for.</p>\n\n<p>You can install these tools on your local workstation and access AD from there without domain admin privileges.  If you can log on to the domain, you can at least query/read AD for this information.</p>\n'}]
['https://Stackoverflow.com/questions/23610', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1580/']