<?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>article How to manage Qlik NPrinting users by using API in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-manage-Qlik-NPrinting-users-by-using-API/ta-p/1775662</link>
    <description>&lt;P&gt;This document describes some examples of Qlik NPrinting APIs used to manage users using POSTMAN.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;NOTE&lt;/STRONG&gt;: Before proceeding below, ensure that the user which is used for authentication (in the following) should have the &lt;U&gt;NPrinting '&lt;STRONG&gt;Administrator&lt;/STRONG&gt;' security role&lt;/U&gt; assigned to it.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;To login:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open POSTMAN&lt;/LI&gt;
&lt;LI&gt;Create a&amp;nbsp;&lt;STRONG&gt;get /login/ntlm&lt;/STRONG&gt; call to your Qlik NPrinting server address.&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/nprinting/November2020/APIs/NP+API/index.html?page=9#Users" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/nprinting/November2020/APIs/NP+API/index.html?page=9#Users&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Open the &lt;STRONG&gt;Authorization&lt;/STRONG&gt; tab&lt;/LI&gt;
&lt;LI&gt;Set NTLM in the TYPE dropdown menu&lt;/LI&gt;
&lt;LI&gt;Insert your username, password and domain. They must be the credentials of a Windows user that is also a Qlik NPrinting user with the related domain account configured.&lt;/LI&gt;
&lt;LI&gt;Click on &lt;STRONG&gt;Send&lt;/STRONG&gt;. If everything is fine you will receive a status 200 ok as answer.&lt;/LI&gt;
&lt;LI&gt;I suggest you to save this tab for future usages&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ruggero_Piccoli_0-1611065145109.png" style="width: 752px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47354i3E23F455B516CFED/image-dimensions/752x468?v=v2" width="752" height="468" role="button" title="Ruggero_Piccoli_0-1611065145109.png" alt="Ruggero_Piccoli_0-1611065145109.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;We can retrieve the list of all available users by using a&amp;nbsp;&lt;STRONG&gt;get /users&lt;/STRONG&gt; call&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/nprinting/November2020/APIs/NP+API/index.html?page=56" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/nprinting/November2020/APIs/NP+API/index.html?page=56:&lt;/A&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open a new tab&lt;/LI&gt;
&lt;LI&gt;Insert the get /users call and run it&lt;/LI&gt;
&lt;LI&gt;In the Body you will see the JSON with all your users&lt;/LI&gt;
&lt;LI&gt;You could also save this API call for future usages&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ruggero_Piccoli_1-1611065385407.png" style="width: 749px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47355iCB2FBE8BDFCD4219/image-dimensions/749x480?v=v2" width="749" height="480" role="button" title="Ruggero_Piccoli_1-1611065385407.png" alt="Ruggero_Piccoli_1-1611065385407.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;We want to use APIs to delete the user with&amp;nbsp;&lt;SPAN&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;2511d333-0e3b-4a05-a1fa-5918cbef5e19. The user ID is visible in JSON retrived before and, if you open its profile in a web browser, in the related URL that appears like&amp;nbsp;&lt;A href="https://YourServer:4993/#/admin/users/2511d333-0e3b-4a05-a1fa-5918cbef5e19" target="_blank"&gt;https://YourServer:4993/#/admin/users/2511d333-0e3b-4a05-a1fa-5918cbef5e19&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;STRONG&gt;delete /users/{id}&lt;/STRONG&gt; is described in&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/nprinting/November2020/APIs/NP+API/index.html?page=57" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/nprinting/November2020/APIs/NP+API/index.html?page=57&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Before proceeding we need to retrieve the connection&amp;nbsp;&lt;SPAN&gt;X-XSRF-TOKEN from the get ntml/login call. Open it and click on Cookies on the right side.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;Click on the NPWEBCONSOLE_XSRF-TOKEN tab. Select the token string from the first character after the equal sign to the semicolon and copy it. We will use that token code in the DELETE API.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-01-19 15_46_28-Postman.png" style="width: 720px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47362i4097FAD506905511/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-01-19 15_46_28-Postman.png" alt="2021-01-19 15_46_28-Postman.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;To run the DELETE API:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Create a new POSTMAN tab&lt;/LI&gt;
&lt;LI&gt;Select DELETE from the drop down menu on the left side&lt;/LI&gt;
&lt;LI&gt;Insert the DELETE URL. It looks like&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://YourServer:4993/api/v1/users/2511d333-0e3b-4a05-a1fa-5918cbef5e19" target="_blank" rel="noopener"&gt;https://YourServer:4993/api/v1/users/2511d333-0e3b-4a05-a1fa-5918cbef5e19&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Click on the Headers tab&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Insert the Key&amp;nbsp;X-XSRF-TOKEN&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Insert the Value of the token we retrieved before&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Click on Send&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;You can save the call for future usages. In this case you have to start by running&amp;nbsp;the get NTLM connection API again and retrieve the new&amp;nbsp;X-XSRF-TOKEN connection token because it is different for every session.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-01-19 15_59_08-Postman.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47365i86DBF1F9268ACB6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-01-19 15_59_08-Postman.png" alt="2021-01-19 15_59_08-Postman.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you refresh the web browser tab where you opened the user profile you will get an error because it is no more available.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-01-19 16_01_22-Qlik NPrinting.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47366i285FC1E4046CB9D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-01-19 16_01_22-Qlik NPrinting.png" alt="2021-01-19 16_01_22-Qlik NPrinting.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2022 11:31:52 GMT</pubDate>
    <dc:creator>Ruggero_Piccoli</dc:creator>
    <dc:date>2022-04-19T11:31:52Z</dc:date>
    <item>
      <title>Re: How to manage Qlik NPrinting users by using API</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-manage-Qlik-NPrinting-users-by-using-API/tac-p/1792382#M6180</link>
      <description>&lt;P&gt;It is a great start to learn the API. One thing to add to the above is that the user which we use for authentication needs to have a NPrinting role which will allow him to use API (Admin role will do &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; )&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 22:41:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-manage-Qlik-NPrinting-users-by-using-API/tac-p/1792382#M6180</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2021-03-17T22:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage Qlik NPrinting users by using API</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-manage-Qlik-NPrinting-users-by-using-API/tac-p/1792449#M6181</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1326"&gt;@Lech_Miszkiewicz&lt;/a&gt;&amp;nbsp;Thanks for the suggestion! I'm not able to edit the article, but the user must have a role with the&amp;nbsp;&lt;SPAN class="ui_item"&gt;&lt;SPAN class="CommonComponentsOn-Demand"&gt;On-Demand&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;-&amp;gt; Create privilege flagged on the&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="ui_item"&gt;Roles&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;administration page for the correct Qlik NPrinting Apps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 09:12:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-manage-Qlik-NPrinting-users-by-using-API/tac-p/1792449#M6181</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2021-03-18T09:12:05Z</dc:date>
    </item>
    <item>
      <title>How to manage Qlik NPrinting users by using API</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-manage-Qlik-NPrinting-users-by-using-API/ta-p/1775662</link>
      <description>&lt;P&gt;This document describes some examples of Qlik NPrinting APIs used to manage users using POSTMAN.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;NOTE&lt;/STRONG&gt;: Before proceeding below, ensure that the user which is used for authentication (in the following) should have the &lt;U&gt;NPrinting '&lt;STRONG&gt;Administrator&lt;/STRONG&gt;' security role&lt;/U&gt; assigned to it.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;To login:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open POSTMAN&lt;/LI&gt;
&lt;LI&gt;Create a&amp;nbsp;&lt;STRONG&gt;get /login/ntlm&lt;/STRONG&gt; call to your Qlik NPrinting server address.&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/nprinting/November2020/APIs/NP+API/index.html?page=9#Users" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/nprinting/November2020/APIs/NP+API/index.html?page=9#Users&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Open the &lt;STRONG&gt;Authorization&lt;/STRONG&gt; tab&lt;/LI&gt;
&lt;LI&gt;Set NTLM in the TYPE dropdown menu&lt;/LI&gt;
&lt;LI&gt;Insert your username, password and domain. They must be the credentials of a Windows user that is also a Qlik NPrinting user with the related domain account configured.&lt;/LI&gt;
&lt;LI&gt;Click on &lt;STRONG&gt;Send&lt;/STRONG&gt;. If everything is fine you will receive a status 200 ok as answer.&lt;/LI&gt;
&lt;LI&gt;I suggest you to save this tab for future usages&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ruggero_Piccoli_0-1611065145109.png" style="width: 752px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47354i3E23F455B516CFED/image-dimensions/752x468?v=v2" width="752" height="468" role="button" title="Ruggero_Piccoli_0-1611065145109.png" alt="Ruggero_Piccoli_0-1611065145109.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;We can retrieve the list of all available users by using a&amp;nbsp;&lt;STRONG&gt;get /users&lt;/STRONG&gt; call&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/nprinting/November2020/APIs/NP+API/index.html?page=56" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/nprinting/November2020/APIs/NP+API/index.html?page=56:&lt;/A&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open a new tab&lt;/LI&gt;
&lt;LI&gt;Insert the get /users call and run it&lt;/LI&gt;
&lt;LI&gt;In the Body you will see the JSON with all your users&lt;/LI&gt;
&lt;LI&gt;You could also save this API call for future usages&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ruggero_Piccoli_1-1611065385407.png" style="width: 749px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47355iCB2FBE8BDFCD4219/image-dimensions/749x480?v=v2" width="749" height="480" role="button" title="Ruggero_Piccoli_1-1611065385407.png" alt="Ruggero_Piccoli_1-1611065385407.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;We want to use APIs to delete the user with&amp;nbsp;&lt;SPAN&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;2511d333-0e3b-4a05-a1fa-5918cbef5e19. The user ID is visible in JSON retrived before and, if you open its profile in a web browser, in the related URL that appears like&amp;nbsp;&lt;A href="https://YourServer:4993/#/admin/users/2511d333-0e3b-4a05-a1fa-5918cbef5e19" target="_blank"&gt;https://YourServer:4993/#/admin/users/2511d333-0e3b-4a05-a1fa-5918cbef5e19&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;STRONG&gt;delete /users/{id}&lt;/STRONG&gt; is described in&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/nprinting/November2020/APIs/NP+API/index.html?page=57" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/nprinting/November2020/APIs/NP+API/index.html?page=57&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Before proceeding we need to retrieve the connection&amp;nbsp;&lt;SPAN&gt;X-XSRF-TOKEN from the get ntml/login call. Open it and click on Cookies on the right side.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;Click on the NPWEBCONSOLE_XSRF-TOKEN tab. Select the token string from the first character after the equal sign to the semicolon and copy it. We will use that token code in the DELETE API.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-01-19 15_46_28-Postman.png" style="width: 720px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47362i4097FAD506905511/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-01-19 15_46_28-Postman.png" alt="2021-01-19 15_46_28-Postman.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;To run the DELETE API:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Create a new POSTMAN tab&lt;/LI&gt;
&lt;LI&gt;Select DELETE from the drop down menu on the left side&lt;/LI&gt;
&lt;LI&gt;Insert the DELETE URL. It looks like&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://YourServer:4993/api/v1/users/2511d333-0e3b-4a05-a1fa-5918cbef5e19" target="_blank" rel="noopener"&gt;https://YourServer:4993/api/v1/users/2511d333-0e3b-4a05-a1fa-5918cbef5e19&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Click on the Headers tab&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Insert the Key&amp;nbsp;X-XSRF-TOKEN&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Insert the Value of the token we retrieved before&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Click on Send&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;You can save the call for future usages. In this case you have to start by running&amp;nbsp;the get NTLM connection API again and retrieve the new&amp;nbsp;X-XSRF-TOKEN connection token because it is different for every session.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-01-19 15_59_08-Postman.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47365i86DBF1F9268ACB6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-01-19 15_59_08-Postman.png" alt="2021-01-19 15_59_08-Postman.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you refresh the web browser tab where you opened the user profile you will get an error because it is no more available.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-01-19 16_01_22-Qlik NPrinting.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47366i285FC1E4046CB9D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-01-19 16_01_22-Qlik NPrinting.png" alt="2021-01-19 16_01_22-Qlik NPrinting.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 11:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-manage-Qlik-NPrinting-users-by-using-API/ta-p/1775662</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2022-04-19T11:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage Qlik NPrinting users by using API</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-manage-Qlik-NPrinting-users-by-using-API/tac-p/1792615#M6182</link>
      <description>&lt;P&gt;Note added...thanks &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1326"&gt;@Lech_Miszkiewicz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 15:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-manage-Qlik-NPrinting-users-by-using-API/tac-p/1792615#M6182</guid>
      <dc:creator>Frank_S</dc:creator>
      <dc:date>2021-03-18T15:49:53Z</dc:date>
    </item>
  </channel>
</rss>

