<?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 qlik sense api powershell user email in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/qlik-sense-api-powershell-user-email/m-p/2055425#M18335</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;I would like to know if it is possible to connect to Qlik Sense API via Powershell and take the user email attribute.&lt;/P&gt;
&lt;P&gt;I connected to URL https://&amp;lt;sense&amp;gt;:4242/qrs/user/full?xrfkey=12345678qwertyui"&lt;/P&gt;
&lt;P&gt;I expanded the attributes field, like this:&amp;nbsp; $variable | select -ExpandProperty attributes&lt;/P&gt;
&lt;P&gt;At this point, I do not know how to take the name and email attributes from my Qlik Sense Environment users.&lt;/P&gt;
&lt;P&gt;Does anyone know how to do that?&lt;/P&gt;
&lt;P&gt;I appreciate any help you can provide.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Marco&lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2023 21:31:08 GMT</pubDate>
    <dc:creator>makunii</dc:creator>
    <dc:date>2023-03-30T21:31:08Z</dc:date>
    <item>
      <title>qlik sense api powershell user email</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/qlik-sense-api-powershell-user-email/m-p/2055425#M18335</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;I would like to know if it is possible to connect to Qlik Sense API via Powershell and take the user email attribute.&lt;/P&gt;
&lt;P&gt;I connected to URL https://&amp;lt;sense&amp;gt;:4242/qrs/user/full?xrfkey=12345678qwertyui"&lt;/P&gt;
&lt;P&gt;I expanded the attributes field, like this:&amp;nbsp; $variable | select -ExpandProperty attributes&lt;/P&gt;
&lt;P&gt;At this point, I do not know how to take the name and email attributes from my Qlik Sense Environment users.&lt;/P&gt;
&lt;P&gt;Does anyone know how to do that?&lt;/P&gt;
&lt;P&gt;I appreciate any help you can provide.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 21:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/qlik-sense-api-powershell-user-email/m-p/2055425#M18335</guid>
      <dc:creator>makunii</dc:creator>
      <dc:date>2023-03-30T21:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: qlik sense api powershell user email</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/qlik-sense-api-powershell-user-email/m-p/2066972#M18502</link>
      <description>&lt;P&gt;If you use QlikSenseCLI&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/QlikProfessionalServices/QlikSenseCLI/" target="_blank"&gt;https://github.com/QlikProfessionalServices/QlikSenseCLI/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;you may find structuring these api calls much easier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on what you are asking for, I suspect that Option 2 below may best suit your needs&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;#option 1
Connect-QlikSense -TrustAllCertificates -Hostname "ifRequired" -VirtualProxy "ifRequired" 
$users = Get-QSUser -Full
foreach($user in $users){
$EmailAddress = $($user.Attributes|?{$_.AttributeType -eq "Email"}).Attributevalue
$EmailAddress 
}

#option 2
Connect-QlikSense -TrustAllCertificates -Hostname "ifRequired" -VirtualProxy "ifRequired" 
$users = Get-QSUser -Full
#Calculated properties
$users|Select-Object -Property id,Name,@{Name="Email";E={$($_.Attributes|?{$_.AttributeType -eq "Email"}).Attributevalue}}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 22:32:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/qlik-sense-api-powershell-user-email/m-p/2066972#M18502</guid>
      <dc:creator>Marc</dc:creator>
      <dc:date>2023-05-02T22:32:24Z</dc:date>
    </item>
  </channel>
</rss>

