<?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 REST connector between QlikView and Nprinting - 403 Forbidden in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-REST-connector-between-QlikView-and-Nprinting-403-Forbidden/m-p/1823760#M32896</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What user should you use? User with Administrator role in NPrinting console and Domain account properly populated:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.jpg" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58968i3325289541F64900/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.jpg" alt="2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Your statement here is not entirely right:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If we look at the&amp;nbsp;&lt;STRONG&gt;URL&lt;/STRONG&gt;&amp;nbsp;https//yourNprintingServer:4993/api/v1/login/ntlm&amp;nbsp;it&amp;nbsp; fails if we copy/paste it to a web-browser (should we be able to access anything from a web-browser?)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;question to the above: where in the that question you define method of your connection (GET or POST)?...exactly - nowhere, which is why you get a default response (GET) by running it from web browser. The main reason is that GET method by default does not require BODY of the message you are sending via URL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when you copy/paste the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;URL&lt;/STRONG&gt;&amp;nbsp;https//yourNprintingServer:4993/api/v1/login/ntlm&lt;/EM&gt; to the browser by default you get a GET command response which is working for you already judging by fact that you followed instructions and you got stuck on POST connection setup - that is in later stages of instruction steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the walkthrough I just stiched up quickly for presentation.&lt;/P&gt;&lt;P&gt;In a GET connection I did not used query headers at all and my connection works OK&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-07-22_09-29-22 (1).gif" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58964iD471C1FD047B6AAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-07-22_09-29-22 (1).gif" alt="2021-07-22_09-29-22 (1).gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In POST method I used headers Origin - value: &lt;A href="https://my" target="_blank" rel="noopener"&gt;https://myqlikview servername.&lt;/A&gt;&amp;nbsp;The same value for origin needs to be populated in NPrinting--&amp;gt;ADMIN--&amp;gt;Settings--&amp;gt;OnDemand--&amp;gt;Trusted origin list.&lt;/P&gt;&lt;P&gt;Bit I am unclear is when you say: "&lt;FONT size="2"&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Query Headers&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;are the same name and value (&lt;/SPAN&gt;&lt;A href="http://../" target="_blank" rel="nofollow noopener noreferrer"&gt;http://..&lt;/A&gt;&lt;SPAN&gt;.) of the Nprinting origin."&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;So just want to confirm that this is the same value in both places: address of the qlikview server.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-07-22_09-38-51 (1).gif" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58965i52ABD5D7ACF78A2D/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-07-22_09-38-51 (1).gif" alt="2021-07-22_09-38-51 (1).gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58967i9A5898E918992988/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jul 2021 00:19:34 GMT</pubDate>
    <dc:creator>Lech_Miszkiewicz</dc:creator>
    <dc:date>2021-07-22T00:19:34Z</dc:date>
    <item>
      <title>Qlik REST connector between QlikView and Nprinting - 403 Forbidden</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-REST-connector-between-QlikView-and-Nprinting-403-Forbidden/m-p/1823560#M32879</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are trying to set up a connection (trigger) between QlikView and Nprinting by using&amp;nbsp;&lt;EM&gt;Qlik REST connector.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;We downloaded the latest&amp;nbsp;&lt;EM&gt;Qlik REST connector v.&lt;/EM&gt;2.11 and have &lt;EM&gt;QlikView &lt;/EM&gt;(April 2020 SR4) v 12.50.20400.0 and Nprinting (September 2020) v20.31.2.0&lt;/P&gt;&lt;P&gt;We followed the new article&amp;nbsp;&lt;EM&gt;&lt;A href="https://community.qlik.com/t5/Qlik-NPrinting-Documents/Run-a-Qlik-NPrinting-API-POST-command-via-QlikView-reload-script/ta-p/1822137" target="_blank"&gt;Run a Qlik NPrinting API POST command via QlikView... - Qlik Community - 1822137&lt;/A&gt;&amp;nbsp;&lt;/EM&gt;but got stuck on error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 200px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58918iA8DEEB05C8CC71D0/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The error 403 "&lt;EM&gt;The user is not authorized to create a new connection.&lt;/EM&gt;"&amp;nbsp; (&lt;A href="https://help.qlik.com/en-US/nprinting/May2021/APIs/NP+API/index.html?page=23" target="_blank"&gt;Qlik NPrinting API − post /connections - Qlik | Help&lt;/A&gt;) however, what credentials should we use? - &lt;STRONG&gt;Is it the services account that runs QlikNprinting?&lt;/STRONG&gt;&amp;nbsp;(We are using Win NTLM so i guess that is should be the service account? - Domain\serviceaccount)&lt;/P&gt;&lt;P&gt;The &lt;EM&gt;trusted origin&lt;/EM&gt;&amp;nbsp; (Admin-&amp;gt;Settings-&amp;gt;On-Demand ) on Nprinting server is setup to point at QlikView (Where the QDS is installed)&lt;/P&gt;&lt;P&gt;The installation of the&amp;nbsp;&lt;EM&gt;Qlik REST connector&amp;nbsp;&amp;nbsp;&lt;/EM&gt;was a simple "&lt;EM&gt;next - next - next&lt;/EM&gt;"&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we look at the&amp;nbsp;&lt;STRONG&gt;URL&lt;/STRONG&gt; &lt;EM&gt;https//yourNprintingServer:4993/api/v1/login/ntlm&amp;nbsp;&lt;/EM&gt;it&amp;nbsp; fails if we copy/paste it to a web-browser (should we be able to access anything from a web-browser?)&lt;/P&gt;&lt;P&gt;User name: doman\serviceaccount&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 368px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58921iA22A857BB77C301F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The &lt;EM&gt;Query Headers&lt;/EM&gt;&amp;nbsp;are the same name and value (&lt;A href="http://.." target="_blank"&gt;http://..&lt;/A&gt;.) of the Nprinting origin.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 370px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58922i18FA41771682AFCF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 09:44:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-REST-connector-between-QlikView-and-Nprinting-403-Forbidden/m-p/1823560#M32879</guid>
      <dc:creator>Sahal</dc:creator>
      <dc:date>2021-07-21T09:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik REST connector between QlikView and Nprinting - 403 Forbidden</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-REST-connector-between-QlikView-and-Nprinting-403-Forbidden/m-p/1823760#M32896</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What user should you use? User with Administrator role in NPrinting console and Domain account properly populated:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.jpg" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58968i3325289541F64900/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.jpg" alt="2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Your statement here is not entirely right:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If we look at the&amp;nbsp;&lt;STRONG&gt;URL&lt;/STRONG&gt;&amp;nbsp;https//yourNprintingServer:4993/api/v1/login/ntlm&amp;nbsp;it&amp;nbsp; fails if we copy/paste it to a web-browser (should we be able to access anything from a web-browser?)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;question to the above: where in the that question you define method of your connection (GET or POST)?...exactly - nowhere, which is why you get a default response (GET) by running it from web browser. The main reason is that GET method by default does not require BODY of the message you are sending via URL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when you copy/paste the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;URL&lt;/STRONG&gt;&amp;nbsp;https//yourNprintingServer:4993/api/v1/login/ntlm&lt;/EM&gt; to the browser by default you get a GET command response which is working for you already judging by fact that you followed instructions and you got stuck on POST connection setup - that is in later stages of instruction steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the walkthrough I just stiched up quickly for presentation.&lt;/P&gt;&lt;P&gt;In a GET connection I did not used query headers at all and my connection works OK&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-07-22_09-29-22 (1).gif" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58964iD471C1FD047B6AAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-07-22_09-29-22 (1).gif" alt="2021-07-22_09-29-22 (1).gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In POST method I used headers Origin - value: &lt;A href="https://my" target="_blank" rel="noopener"&gt;https://myqlikview servername.&lt;/A&gt;&amp;nbsp;The same value for origin needs to be populated in NPrinting--&amp;gt;ADMIN--&amp;gt;Settings--&amp;gt;OnDemand--&amp;gt;Trusted origin list.&lt;/P&gt;&lt;P&gt;Bit I am unclear is when you say: "&lt;FONT size="2"&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Query Headers&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;are the same name and value (&lt;/SPAN&gt;&lt;A href="http://../" target="_blank" rel="nofollow noopener noreferrer"&gt;http://..&lt;/A&gt;&lt;SPAN&gt;.) of the Nprinting origin."&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;So just want to confirm that this is the same value in both places: address of the qlikview server.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-07-22_09-38-51 (1).gif" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58965i52ABD5D7ACF78A2D/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-07-22_09-38-51 (1).gif" alt="2021-07-22_09-38-51 (1).gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58967i9A5898E918992988/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 00:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-REST-connector-between-QlikView-and-Nprinting-403-Forbidden/m-p/1823760#M32896</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2021-07-22T00:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik REST connector between QlikView and Nprinting - 403 Forbidden</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-REST-connector-between-QlikView-and-Nprinting-403-Forbidden/m-p/1823793#M32899</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything was setup correctly except the &lt;EM&gt;Query headers&lt;/EM&gt;&amp;nbsp;"&lt;STRONG&gt;Name"&amp;nbsp;&lt;/STRONG&gt;I used the Query headers name and value the i setup in Nprinting but that is not correct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Nprinting when creating a &lt;EM&gt;trusted origin&amp;nbsp;&lt;/EM&gt;you type in &lt;EM&gt;name&lt;/EM&gt; = &lt;STRONG&gt;QlikviewServerName&lt;/STRONG&gt; and &lt;EM&gt;Address&lt;/EM&gt; = &lt;STRONG&gt;http(s)://QlikViewServerName&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But in the &lt;EM&gt;REST connection&lt;/EM&gt; you type in N&lt;EM&gt;ame&lt;/EM&gt; = &lt;STRONG&gt;origin&lt;/STRONG&gt; and &lt;EM&gt;Value&lt;/EM&gt; =&amp;nbsp;&lt;STRONG&gt;http(s)://QlikViewServerName&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 07:17:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-REST-connector-between-QlikView-and-Nprinting-403-Forbidden/m-p/1823793#M32899</guid>
      <dc:creator>Sahal</dc:creator>
      <dc:date>2021-07-22T07:17:22Z</dc:date>
    </item>
  </channel>
</rss>

