<?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 RE: System - Active Directory VBO Help in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/System-Active-Directory-VBO-Help/m-p/82533#M33939</link>
    <description>&lt;P&gt;Hi Syed,&lt;/P&gt;
&lt;P&gt;Can you try the below code stage to get the First Name, Last Name and Mail ID. You can refer the LDAP attribute names from&amp;nbsp;&lt;A href="https://docs.bmc.com/docs/fpsc121/ldap-attributes-and-associated-fields-495323340.html" target="_blank" rel="noopener"&gt;here.&lt;/A&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;Input :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23556.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23689i2016898A636CEF20/image-size/large?v=v2&amp;amp;px=999" role="button" title="23556.png" alt="23556.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Output :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23557.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23691iCC178CDBAEC45D9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="23557.png" alt="23557.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Code:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 80px;"&gt;firstName = ""&lt;BR /&gt;lastName &amp;nbsp;= ""&lt;BR /&gt;mailID &amp;nbsp; &amp;nbsp;= ""&lt;BR /&gt;Dim ds As New DirectoryServices.DirectorySearcher("(userPrincipalName=" &amp;amp; SearchString &amp;amp; ")")&lt;BR /&gt;ds.PropertiesToLoad.Add("givenName") ' First Name&lt;BR /&gt;ds.PropertiesToLoad.Add("sn") ' Last Name&lt;BR /&gt;ds.PropertiesToLoad.Add("mail") ' Mail&lt;BR /&gt;Exists = ds.FindOne() IsNot Nothing&lt;BR /&gt;Dim result As SearchResult = ds.FindOne()&lt;BR /&gt;&amp;nbsp; &amp;nbsp; If Exists Then&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim properties As ResultPropertyCollection = result.Properties&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ' Get the first name, last name, mail attributes&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; firstName = properties("givenName")(0)?.ToString()&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lastName = properties("sn")(0)?.ToString()&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mailID = properties("mail")(0)?.ToString()&lt;BR /&gt;&amp;nbsp; &amp;nbsp; End If&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Athiban Mahamathi - &lt;A href="https://www.linkedin.com/in/athiban-mahamathi-544a008b/" target="test_blank"&gt;https://www.linkedin.com/in/athiban-mahamathi-544a008b/&lt;/A&gt;&lt;BR /&gt;Technical Consultant,&lt;BR /&gt;SimplifyNext,&lt;BR /&gt;Singapore&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 21 Jul 2023 05:05:00 GMT</pubDate>
    <dc:creator>Athiban_Mahamathi</dc:creator>
    <dc:date>2023-07-21T05:05:00Z</dc:date>
    <item>
      <title>System - Active Directory VBO Help</title>
      <link>https://community.blueprism.com/t5/Product-Forum/System-Active-Directory-VBO-Help/m-p/82532#M33938</link>
      <description>&lt;P&gt;Dear Team,&lt;/P&gt;
&lt;P&gt;Currently we have the System - Active Directory&amp;nbsp; VBO as in which we can perform the Operations&amp;nbsp;&lt;/P&gt;
&lt;P&gt;like&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Create User&lt;/LI&gt;
&lt;LI&gt;User Exists&lt;/LI&gt;
&lt;LI&gt;User Exists (Display Name)&lt;/LI&gt;
&lt;LI&gt;User Exists (user Principle Name)&lt;/LI&gt;
&lt;LI&gt;Object Exist (Dynamic)&lt;/LI&gt;
&lt;LI&gt;Add User to Group&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Here I need help from you to create one page for getting the Active Directory (AD) user details like First Name, Last Name and Email Id of the user&lt;/P&gt;
&lt;P&gt;Could you please help me on this?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;SYED FAHEEM&lt;BR /&gt;RPA Developer&lt;BR /&gt;DAR-ME&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Jul 2023 12:26:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/System-Active-Directory-VBO-Help/m-p/82532#M33938</guid>
      <dc:creator>faheemsd</dc:creator>
      <dc:date>2023-07-20T12:26:00Z</dc:date>
    </item>
    <item>
      <title>RE: System - Active Directory VBO Help</title>
      <link>https://community.blueprism.com/t5/Product-Forum/System-Active-Directory-VBO-Help/m-p/82533#M33939</link>
      <description>&lt;P&gt;Hi Syed,&lt;/P&gt;
&lt;P&gt;Can you try the below code stage to get the First Name, Last Name and Mail ID. You can refer the LDAP attribute names from&amp;nbsp;&lt;A href="https://docs.bmc.com/docs/fpsc121/ldap-attributes-and-associated-fields-495323340.html" target="_blank" rel="noopener"&gt;here.&lt;/A&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;Input :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23556.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23689i2016898A636CEF20/image-size/large?v=v2&amp;amp;px=999" role="button" title="23556.png" alt="23556.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Output :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23557.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23691iCC178CDBAEC45D9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="23557.png" alt="23557.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Code:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="padding-left: 80px;"&gt;firstName = ""&lt;BR /&gt;lastName &amp;nbsp;= ""&lt;BR /&gt;mailID &amp;nbsp; &amp;nbsp;= ""&lt;BR /&gt;Dim ds As New DirectoryServices.DirectorySearcher("(userPrincipalName=" &amp;amp; SearchString &amp;amp; ")")&lt;BR /&gt;ds.PropertiesToLoad.Add("givenName") ' First Name&lt;BR /&gt;ds.PropertiesToLoad.Add("sn") ' Last Name&lt;BR /&gt;ds.PropertiesToLoad.Add("mail") ' Mail&lt;BR /&gt;Exists = ds.FindOne() IsNot Nothing&lt;BR /&gt;Dim result As SearchResult = ds.FindOne()&lt;BR /&gt;&amp;nbsp; &amp;nbsp; If Exists Then&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim properties As ResultPropertyCollection = result.Properties&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ' Get the first name, last name, mail attributes&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; firstName = properties("givenName")(0)?.ToString()&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lastName = properties("sn")(0)?.ToString()&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mailID = properties("mail")(0)?.ToString()&lt;BR /&gt;&amp;nbsp; &amp;nbsp; End If&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Athiban Mahamathi - &lt;A href="https://www.linkedin.com/in/athiban-mahamathi-544a008b/" target="test_blank"&gt;https://www.linkedin.com/in/athiban-mahamathi-544a008b/&lt;/A&gt;&lt;BR /&gt;Technical Consultant,&lt;BR /&gt;SimplifyNext,&lt;BR /&gt;Singapore&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Jul 2023 05:05:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/System-Active-Directory-VBO-Help/m-p/82533#M33939</guid>
      <dc:creator>Athiban_Mahamathi</dc:creator>
      <dc:date>2023-07-21T05:05:00Z</dc:date>
    </item>
    <item>
      <title>RE: System - Active Directory VBO Help</title>
      <link>https://community.blueprism.com/t5/Product-Forum/System-Active-Directory-VBO-Help/m-p/82534#M33940</link>
      <description>&lt;P&gt;&lt;A class="user-content-mention" data-sign="@" data-contactkey="e1e4c10a-aae8-4188-b921-01877e39f53b" data-tag-text="@Athiban Mahamathi Mathialagan" href="https://community.blueprism.com/network/profile?UserKey=e1e4c10a-aae8-4188-b921-01877e39f53b" data-itemmentionkey="d016b126-0d45-4c32-89d2-fd70f21beb5a"&gt;@Athiban Mahamathi Mathialagan&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;SYED FAHEEM&lt;BR /&gt;RPA Developer&lt;BR /&gt;DAR-ME&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 23 Jul 2023 12:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/System-Active-Directory-VBO-Help/m-p/82534#M33940</guid>
      <dc:creator>faheemsd</dc:creator>
      <dc:date>2023-07-23T12:52:00Z</dc:date>
    </item>
    <item>
      <title>RE: System - Active Directory VBO Help</title>
      <link>https://community.blueprism.com/t5/Product-Forum/System-Active-Directory-VBO-Help/m-p/82535#M33941</link>
      <description>&lt;P&gt;&lt;A class="user-content-mention" data-sign="@" data-contactkey="e1e4c10a-aae8-4188-b921-01877e39f53b" data-tag-text="@Athiban Mahamathi Mathialagan" href="https://community.blueprism.com/network/profile?UserKey=e1e4c10a-aae8-4188-b921-01877e39f53b" data-itemmentionkey="0bc939d8-6ccc-4c4a-ba63-34478b529d9d"&gt;@Athiban Mahamathi Mathialagan&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I'm not getting any results with the above code and it's sowing the Exist flag as false.&lt;/P&gt;
&lt;P&gt;The user details already exist in the AD group.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;SYED FAHEEM&lt;BR /&gt;RPA Developer&lt;BR /&gt;DAR-ME&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Sep 2023 08:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/System-Active-Directory-VBO-Help/m-p/82535#M33941</guid>
      <dc:creator>faheemsd</dc:creator>
      <dc:date>2023-09-14T08:27:00Z</dc:date>
    </item>
    <item>
      <title>RE: System - Active Directory VBO Help</title>
      <link>https://community.blueprism.com/t5/Product-Forum/System-Active-Directory-VBO-Help/m-p/82536#M33942</link>
      <description>&lt;P&gt;&lt;A class="user-content-mention" data-sign="@" data-contactkey="e1e4c10a-aae8-4188-b921-01877e39f53b" data-tag-text="@Athiban Mahamathi Mathialagan" href="https://community.blueprism.com/network/profile?UserKey=e1e4c10a-aae8-4188-b921-01877e39f53b" data-itemmentionkey="38987807-924f-4e8e-b918-f2cca2e55329"&gt;@Athiban Mahamathi Mathialagan&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I'm getting the AD details with the below code&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;firstName = ""&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;lastName&amp;nbsp; = ""&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;mailID&amp;nbsp; &amp;nbsp; = ""&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Dim ds As New DirectoryServices.DirectorySearcher("(samAccountName=" &amp;amp; SearchString &amp;amp; ")")&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;ds.PropertiesToLoad.Add("givenName") ' First Name&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;ds.PropertiesToLoad.Add("sn") ' Last Name&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;ds.PropertiesToLoad.Add("mail") ' Mail&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Exists = ds.FindOne() IsNot Nothing&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Dim result As SearchResult = ds.FindOne()&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; If Exists Then&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim properties As ResultPropertyCollection = result.Properties&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ' Get the first name, last name, mail attributes&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; firstName = properties("givenName")(0)?.ToString()&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lastName = properties("sn")(0)?.ToString()&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mailID = properties("mail")(0)?.ToString()&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; End If&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;SYED FAHEEM&lt;BR /&gt;RPA Developer&lt;BR /&gt;DAR-ME&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Sep 2023 14:19:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/System-Active-Directory-VBO-Help/m-p/82536#M33942</guid>
      <dc:creator>faheemsd</dc:creator>
      <dc:date>2023-09-14T14:19:00Z</dc:date>
    </item>
    <item>
      <title>RE: System - Active Directory VBO Help</title>
      <link>https://community.blueprism.com/t5/Product-Forum/System-Active-Directory-VBO-Help/m-p/82537#M33943</link>
      <description>&lt;P&gt;Glad that it worked out.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Athiban Mahamathi - &lt;A href="https://www.linkedin.com/in/athiban-mahamathi-544a008b/" target="test_blank"&gt;https://www.linkedin.com/in/athiban-mahamathi-544a008b/&lt;/A&gt;&lt;BR /&gt;Technical Consultant,&lt;BR /&gt;SimplifyNext,&lt;BR /&gt;Singapore&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Sep 2023 15:49:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/System-Active-Directory-VBO-Help/m-p/82537#M33943</guid>
      <dc:creator>Athiban_Mahamathi</dc:creator>
      <dc:date>2023-09-14T15:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: System - Active Directory VBO Help</title>
      <link>https://community.blueprism.com/t5/Product-Forum/System-Active-Directory-VBO-Help/m-p/112755#M50501</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;i need help with the code stage to extend the Active Directory object to be able to delete users and to set the expiry date on user accounts&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 17:14:12 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/System-Active-Directory-VBO-Help/m-p/112755#M50501</guid>
      <dc:creator>Miyelani</dc:creator>
      <dc:date>2024-07-30T17:14:12Z</dc:date>
    </item>
  </channel>
</rss>

