<?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: Qlik Engine API authentication failure - UnknownUser in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Engine-API-authentication-failure-UnknownUser/m-p/2449133#M20477</link>
    <description>&lt;P&gt;Hard to say what is wrong in your particular case. Getting the authentication part right can be kind of tricky. Have you looked at at this page?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/February2024/Subsystems/EngineAPI/Content/Sense_EngineAPI/GettingStarted/connecting-to-engine-api.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/February2024/Subsystems/EngineAPI/Content/Sense_EngineAPI/GettingStarted/connecting-to-engine-api.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It gives some instructions regarding setting up connections to the engine. In particular there is "Example 1: Connect directly to Qlik Engine JSON API using certificates" which shows you how to do this in JavaScript.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 May 2024 08:14:59 GMT</pubDate>
    <dc:creator>Øystein_Kolsrud</dc:creator>
    <dc:date>2024-05-06T08:14:59Z</dc:date>
    <item>
      <title>Qlik Engine API authentication failure - UnknownUser</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Engine-API-authentication-failure-UnknownUser/m-p/2447558#M20464</link>
      <description>&lt;P&gt;Hello, I'm trying to use the Engine API to extract information about apps in my Qlik Sense environment, but I'm getting the following error: `Access to the app is denied: UnknownUser`&lt;/P&gt;
&lt;P&gt;I'm using the same header as I successfully use for the QRS API (&lt;SPAN&gt;'X-Qlik-User: UserDirectory=&amp;lt;directory&amp;gt;;UserId=&amp;lt;user&amp;gt;'), and I have verified that the user has access to the app I'm trying to fetch details from.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is the relevant code:&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;load_app&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;json&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;dumps&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;"method"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"OpenDoc"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;"params"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;"qDocName"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;app_id&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; },&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;"handle"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;"id"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;"jsonr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;
&lt;DIV&gt;&lt;SPAN&gt; ws.send(&lt;/SPAN&gt;&lt;SPAN&gt;load_app&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; ws.send(&lt;/SPAN&gt;&lt;SPAN&gt;get_objects&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;The error is occurring at the second execution statement (ws.send(get_objects)) so presumably loading the app is successful.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 May 2024 22:39:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Engine-API-authentication-failure-UnknownUser/m-p/2447558#M20464</guid>
      <dc:creator>jjb427</dc:creator>
      <dc:date>2024-05-01T22:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Engine API authentication failure - UnknownUser</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Engine-API-authentication-failure-UnknownUser/m-p/2447665#M20465</link>
      <description>&lt;P&gt;It might be that you simply need to wait for the first request to successfully complete before sending the second request. If you send the second one too early, then the handle you use in that call won't be associated with anything yet.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 07:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Engine-API-authentication-failure-UnknownUser/m-p/2447665#M20465</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2024-05-02T07:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Engine API authentication failure - UnknownUser</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Engine-API-authentication-failure-UnknownUser/m-p/2447962#M20467</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/41242"&gt;@Øystein_Kolsrud&lt;/a&gt;&amp;nbsp;it seems I was wrong above about it occurring during execution of the second request, I've temporarily removed that request from my code and the UnknownUser error is still occurring, so it seems it is not able to load the app&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 13:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Engine-API-authentication-failure-UnknownUser/m-p/2447962#M20467</guid>
      <dc:creator>jjb427</dc:creator>
      <dc:date>2024-05-02T13:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Engine API authentication failure - UnknownUser</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Engine-API-authentication-failure-UnknownUser/m-p/2449133#M20477</link>
      <description>&lt;P&gt;Hard to say what is wrong in your particular case. Getting the authentication part right can be kind of tricky. Have you looked at at this page?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/February2024/Subsystems/EngineAPI/Content/Sense_EngineAPI/GettingStarted/connecting-to-engine-api.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/February2024/Subsystems/EngineAPI/Content/Sense_EngineAPI/GettingStarted/connecting-to-engine-api.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It gives some instructions regarding setting up connections to the engine. In particular there is "Example 1: Connect directly to Qlik Engine JSON API using certificates" which shows you how to do this in JavaScript.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 08:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Engine-API-authentication-failure-UnknownUser/m-p/2449133#M20477</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2024-05-06T08:14:59Z</dc:date>
    </item>
  </channel>
</rss>

