<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Getting the Employeeid from Active directory in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302786#M112020</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Guys any update on this &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jun 2011 11:45:45 GMT</pubDate>
    <dc:creator>qliksus</dc:creator>
    <dc:date>2011-06-24T11:45:45Z</dc:date>
    <item>
      <title>Getting the Employeeid from Active directory</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302778#M112012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im using the following code and macro&amp;nbsp; to fetch the data from Active directory&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Code:&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;&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;&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;&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;&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;&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;&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;&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;&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;&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;&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;&lt;P&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;CONNECT TO &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;[ &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;&amp;nbsp; Provider=ADsDSOObject; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;&amp;nbsp; Encrypt Password=False; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;&amp;nbsp; Integrated Security=SSPI; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;&amp;nbsp; Data Source=collercapital.com; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;&amp;nbsp; Mode=Read; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;&amp;nbsp; Bind Flags=0; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;&amp;nbsp; ADSI Flag=-2147483648; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;]; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;SET RootDse = 'DC=CTS, DC=com'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;CONNECT TO 'Provider=ADsDSOObject';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;LET arg=chr(01); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;DO &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;GroupTable:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;LOAD &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;&amp;nbsp; name as GroupName,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;&amp;nbsp; distinguishedName as GroupDN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;SQL select &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;&amp;nbsp; name, distinguishedName&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;FROM 'LDAP://$(RootDse)'&amp;nbsp; WHERE objectCategory='group'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;&amp;nbsp; and name='QlikView Experts (Cognizant)'; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;EXIT DO WHEN ScriptError &amp;gt; 1 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;EXIT DO WHEN NoOfRows('GroupTable') = 0; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;EXIT DO WHEN peek('GroupName') = '$(arg)';&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;LET arg=peek('GroupName'); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;LOOP&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;GroupMembers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;LOAD &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;GroupDN AS GroupKey,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;GroupName AS UserGroup,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;subfield(GroupMembers(GroupDN), ';') as GroupUser&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;RESIDENT GroupTable;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;/*&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;Clean up&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;SET arg=;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;SET vUserType=;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #993366;"&gt;Now the macro code is &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;Function GroupMembers(DN)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;Set objItem = GetObject("&lt;A href="https://community.qlik.com/"&gt;LDAP://"&amp;amp;DN&lt;/A&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;strmember = objItem.GetEx("sAMAccountName") &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;ret = "" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;For Each Item in strmember &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;ret = ret &amp;amp; Item &amp;amp; ";" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;Next &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;GroupMembers = Left(ret, Len(ret)-1) 'Drop trailing semicolon&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #333333;"&gt;End Function&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style=": ; color: #333333; font-size: 8pt;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;Everthing is working fine but i could not get the employee id&amp;nbsp; for a particuolar group&amp;nbsp; i.e the column&amp;nbsp; GroupUser which is returned &lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;through the macro is not having the employee id&amp;nbsp; SO please let me know how can take the employee id column &lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 12:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302778#M112012</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2011-06-20T12:46:59Z</dc:date>
    </item>
    <item>
      <title>Getting the Employeeid from Active directory</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302779#M112013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I use a similar macro, but with&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strmember = objItem.GetEx("member")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;instead of &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strmember = objItem.GetEx("sAMAccountName") &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the list of member DNs is linked to user information with the following script..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Users:&lt;BR /&gt; LOAD &lt;BR /&gt;&amp;nbsp; name as "Network ID",&lt;BR /&gt;&amp;nbsp; sn as "Last Name",&lt;BR /&gt;&amp;nbsp; givenName as "First Name",&lt;/P&gt;&lt;P&gt;&amp;nbsp; distinguishedName as GroupUser&lt;BR /&gt; ;&lt;BR /&gt; SQL select &lt;BR /&gt;&amp;nbsp; name, distinguishedName, sn, givenName&lt;BR /&gt; FROM 'LDAP://ou=Users,dc=company,dc=com';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 13:16:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302779#M112013</guid>
      <dc:creator>bnichol</dc:creator>
      <dc:date>2011-06-20T13:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the Employeeid from Active directory</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302780#M112014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI thanks for the reply im getting a Script error when i reload the table u have said&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Users:&lt;BR /&gt;LOAD &lt;BR /&gt;&amp;nbsp; name as "Network ID",&lt;BR /&gt;&amp;nbsp; sn as "Last Name",&lt;BR /&gt;&amp;nbsp; givenName as "First Name",&lt;/P&gt;&lt;P&gt;&amp;nbsp; distinguishedName as GroupUser&lt;BR /&gt;;&lt;BR /&gt;SQL select &lt;BR /&gt;&amp;nbsp; name, distinguishedName, sn, givenName&lt;BR /&gt;FROM 'LDAP://ou=Users,dc=company,dc=com'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i remove that &lt;STRONG&gt;ou=Users&lt;/STRONG&gt; then there is no error .Why is that happening&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2011 05:37:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302780#M112014</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2011-06-21T05:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the Employeeid from Active directory</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302781#M112015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Guys any updates &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2011 11:21:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302781#M112015</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2011-06-21T11:21:29Z</dc:date>
    </item>
    <item>
      <title>Getting the Employeeid from Active directory</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302782#M112016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Guys i have one more problem the load statement of the Employee table is just fetching the same records again &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&amp;nbsp; again its showing the same 20,000 records fetched intially its not going to the next record even though i am &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using the loop .Please suggest what&amp;nbsp; i am missing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2011 05:25:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302782#M112016</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2011-06-22T05:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the Employeeid from Active directory</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302783#M112017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;But when i remove that ou=Users then there is no error .Why is that happening&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I'm not sure what the organization of your AD structure is, but you probably don't have users in a separate folder.&amp;nbsp; My company has put all the users under the branch ou=Users, that's why the script works for me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2011 12:49:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302783#M112017</guid>
      <dc:creator>bnichol</dc:creator>
      <dc:date>2011-06-22T12:49:15Z</dc:date>
    </item>
    <item>
      <title>Getting the Employeeid from Active directory</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302784#M112018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure what you are refering to as the "Employees" table, based on the original load script you provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is the logic for the "Users" table, then the script should not be in the loop.&amp;nbsp; This will return all the users in your AD structure and will be associated to the GroupMembers table by the "GroupUser" field, that exists in both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2011 13:00:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302784#M112018</guid>
      <dc:creator>bnichol</dc:creator>
      <dc:date>2011-06-22T13:00:46Z</dc:date>
    </item>
    <item>
      <title>Getting the Employeeid from Active directory</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302785#M112019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi bnichol ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the reply i have missied one condition name&amp;gt;'$(arg)'&amp;nbsp; in the loop&amp;nbsp; of the original script so it was fetching all the records and joining was working fine But now i have one more problem some of the employees are not loaded in my script&amp;nbsp; .Here is the final and correct script i am using please refer this for ur further reply &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LET arg=chr(01); // Set search start name to a very low value&lt;/P&gt;&lt;P&gt;DO &lt;/P&gt;&lt;P&gt; UserTable:&lt;/P&gt;&lt;P&gt; LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; name as UserName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; sAMAccountName as LoginName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mid(SubField(distinguishedName,',OU',1),4) as GroupUser,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt; SQL select &lt;/P&gt;&lt;P&gt;&amp;nbsp; name, sAMAccountName, distinguishedName&amp;nbsp; // Fields to select &lt;/P&gt;&lt;P&gt; FROM 'LDAP://$(RootDse)'&amp;nbsp; &lt;/P&gt;&lt;P&gt; WHERE objectCategory='person' &lt;/P&gt;&lt;P&gt; AND name&amp;gt;'$(arg)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ; // Get rows where "name" is GT the arg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; EXIT DO WHEN ScriptError &amp;gt; 1; // Stop loop if SELECT has error&lt;/P&gt;&lt;P&gt; EXIT DO WHEN NoOfRows('nameTable') = 0;&amp;nbsp; // Stop loop if SELECT returns nothing&lt;/P&gt;&lt;P&gt; EXIT DO WHEN peek('UserName') = '$(arg)';&amp;nbsp; // If the last "name" read is EQ to arg -- no more entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LET arg = peek('UserName'); // Set the arg to the last "name" read&lt;/P&gt;&lt;P&gt;LOOP&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Now in the above script some employees are missed but when i load this table with their employee id the employees are loaded &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;can u guess any reason behind that &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 05:55:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302785#M112019</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2011-06-23T05:55:10Z</dc:date>
    </item>
    <item>
      <title>Getting the Employeeid from Active directory</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302786#M112020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Guys any update on this &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 11:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302786#M112020</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2011-06-24T11:45:45Z</dc:date>
    </item>
    <item>
      <title>Getting the Employeeid from Active directory</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302787#M112021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you solve this?&lt;/P&gt;&lt;P&gt;I'm having the same problem some users doesn't being fetched but if I set name=their name then they are fetched. I also have the annoying "No error" error. Guess it has something to do with that&lt;/P&gt;&lt;P&gt;/Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 15:31:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302787#M112021</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2011-11-03T15:31:26Z</dc:date>
    </item>
    <item>
      <title>Getting the Employeeid from Active directory</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302788#M112022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think my problem of some users doesn't being fetched may have come from some 1500 limit when reading the AD. I turned it the other way around for my specific problem by first fetching the groups and then retrieving their members.&lt;/P&gt;&lt;P&gt;Found some macro from Rob Wunderlich to grab the members it works when run on desktop but not on publisher even though I have checked system access in the file and allow macro and allow unsafe macros on QV 9 server. The user running the publisher is able to reload the document when in desktop.&lt;/P&gt;&lt;P&gt;Now I'm going for the logparser solution....&lt;/P&gt;&lt;P&gt;/Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 11:01:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302788#M112022</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2011-11-04T11:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the Employeeid from Active directory</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302789#M112023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The QVW which tries to load the data from LDAP loads only the partial data frequently. We are unable to find the root cause of the issue as the QVW doesn't fails but it loads only the partial data.Can someone please help us to identify the root cause of the issue. It has been happening from quite a long time but we didn't succeed in finding the root cause of the issue. Hope someone can help us for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;qvforum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 16:39:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-the-Employeeid-from-Active-directory/m-p/302789#M112023</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2013-07-22T16:39:25Z</dc:date>
    </item>
  </channel>
</rss>

