<?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: Problem getting full list of users with Nprinting API in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/Problem-getting-full-list-of-users-with-Nprinting-API/m-p/2112075#M39882</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/211297"&gt;@davila&lt;/a&gt;&amp;nbsp;- understand, now back to my 1st point - what is the version of NPrinting you are using? And update label on the post please...&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2023 00:05:21 GMT</pubDate>
    <dc:creator>Lech_Miszkiewicz</dc:creator>
    <dc:date>2023-09-01T00:05:21Z</dc:date>
    <item>
      <title>Problem getting full list of users with Nprinting API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Problem-getting-full-list-of-users-with-Nprinting-API/m-p/2112069#M39878</link>
      <description>&lt;P&gt;Hi, I happen to have created an NPrinting API connection, so far I've been able to GET to filters, apps,connections, etc without any problems. But when I do GET user I get the error "HTTP protocol error 500. An unhandled exception occurred."&lt;/P&gt;
&lt;P&gt;This happens to me when I try with a limit of 15 (in total I have 248 users)&lt;/P&gt;
&lt;P&gt;For example this link if it takes me →&lt;A href="http://nprinting.server.domain:4993/api/v1/users?limit=15" target="_blank" rel="noopener"&gt;http://nprinting.server.domain:4993/api/v1/users?limit=15&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;But the following longer throws me the error → &lt;A href="http://nprinting.server.domain:4993/api/v1/users?limit=16" target="_blank" rel="noopener"&gt;http://nprinting.server.domain:4993/api/v1/users?limit=16&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please I need help on this.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 11:48:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Problem-getting-full-list-of-users-with-Nprinting-API/m-p/2112069#M39878</guid>
      <dc:creator>davila</dc:creator>
      <dc:date>2023-09-01T11:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting full list of users with Nprinting API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Problem-getting-full-list-of-users-with-Nprinting-API/m-p/2112071#M39879</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Update label on the post so it reflects version of NPrinting you are using - answer will depend on the version.&lt;/P&gt;
&lt;P&gt;2. Is user used to communicate via API full Admin in NPrinting (does it have Administrator Role?) - when using API the same restrictions apply as via UI&lt;/P&gt;
&lt;P&gt;3. How do you execute your API?&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;is it via external software?&lt;/LI&gt;
&lt;LI&gt;do you want to use Qlik script to execute it?
&lt;UL&gt;
&lt;LI&gt;If you do yo umay want to check my repository which has procedures ready to explore:&amp;nbsp;&lt;A href="https://nprintingadventures.com/2019/04/08/nprinting-api-qlik-rest-subroutines/" target="_blank"&gt;https://nprintingadventures.com/2019/04/08/nprinting-api-qlik-rest-subroutines/&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;do you use POSTMAN?&lt;/LI&gt;
&lt;LI&gt;do you just use web browser?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;Lech&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 23:20:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Problem-getting-full-list-of-users-with-Nprinting-API/m-p/2112071#M39879</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2023-08-31T23:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting full list of users with Nprinting API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Problem-getting-full-list-of-users-with-Nprinting-API/m-p/2112073#M39881</link>
      <description>&lt;P&gt;Hi, Lech.&lt;/P&gt;
&lt;P&gt;The user I use to connect to the api has full admin permissions.&lt;/P&gt;
&lt;P&gt;I connect from the qliksense script, I make the queries with this format:&lt;/P&gt;
&lt;P&gt;SQL SELECT&lt;BR /&gt;"__KEY_data",&lt;BR /&gt;(SELECT&lt;BR /&gt;"id",&lt;BR /&gt;"name",&lt;BR /&gt;"description",&lt;BR /&gt;"created",&lt;BR /&gt;"lastUpdate",&lt;BR /&gt;"__FK_items"&lt;BR /&gt;FROM "items" FK "__FK_items")&lt;BR /&gt;FROM JSON (wrap off) "data" PK "__KEY_data"&lt;BR /&gt;WITH CONNECTION(&lt;BR /&gt;URL "$(vURL)",&lt;BR /&gt;HTTPHEADER "cookie" "$(vCookie)"&lt;BR /&gt;);&lt;/P&gt;
&lt;P&gt;For example, it doesn't throw me an error when it assigned the variable vURL → &lt;A href="http://nprinting.server.domain:4993/api/v1/apps?limit=1000" target="_blank"&gt;http://nprinting.server.domain:4993/api/v1/apps?limit=1000&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I only have the problem when I do the GET for "user".&lt;/P&gt;
&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 23:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Problem-getting-full-list-of-users-with-Nprinting-API/m-p/2112073#M39881</guid>
      <dc:creator>davila</dc:creator>
      <dc:date>2023-08-31T23:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting full list of users with Nprinting API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Problem-getting-full-list-of-users-with-Nprinting-API/m-p/2112075#M39882</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/211297"&gt;@davila&lt;/a&gt;&amp;nbsp;- understand, now back to my 1st point - what is the version of NPrinting you are using? And update label on the post please...&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 00:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Problem-getting-full-list-of-users-with-Nprinting-API/m-p/2112075#M39882</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2023-09-01T00:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting full list of users with Nprinting API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Problem-getting-full-list-of-users-with-Nprinting-API/m-p/2112103#M39886</link>
      <description>&lt;P&gt;I have also checked on my end using my NPrinting.qvs file which I provided you link to and it works as expected loading all users data.&lt;/P&gt;
&lt;P&gt;My code is as simple as:&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt; $(Must_Include='$(vConnection)\Script\NPrinting.qvs');&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;Call NP_Authenticate&lt;/DIV&gt;
&lt;DIV&gt;Call NP_GetUsers&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Query limits I put in with connection parameters and details are in qvs file:&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;....WITH&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp;CONNECTION( URL &lt;/SPAN&gt;&lt;SPAN&gt;"$(vURL_User)"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt; HTTPHEADER &lt;/SPAN&gt;&lt;SPAN&gt;"cookie"&lt;/SPAN&gt; &lt;SPAN&gt;"$(vCookie)"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt; QUERY &lt;/SPAN&gt;&lt;SPAN&gt;"Limit"&lt;/SPAN&gt; &lt;SPAN&gt;"$(vQueryLimit)"&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 Sep 2023 03:11:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Problem-getting-full-list-of-users-with-Nprinting-API/m-p/2112103#M39886</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2023-09-01T03:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting full list of users with Nprinting API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Problem-getting-full-list-of-users-with-Nprinting-API/m-p/2112151#M39887</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I just tested all limits between 1 and 20 in a Qlik NPrinting May 2023 SR1 installation and all worked correctly. I don't know which version you are using and I don't remember a solved bug on this.&lt;/P&gt;
&lt;P&gt;HTTP error 500 is related to permissions so check the role and related rights of the user you are logged in.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could also check the Qlik NPrinting Log files.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ruggero&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 06:53:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Problem-getting-full-list-of-users-with-Nprinting-API/m-p/2112151#M39887</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2023-09-01T06:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting full list of users with Nprinting API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Problem-getting-full-list-of-users-with-Nprinting-API/m-p/2112269#M39895</link>
      <description>&lt;P&gt;Hi, this is my version NPrinting:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davila_0-1693568962676.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115543i3DF4F4A57AED1C92/image-size/medium?v=v2&amp;amp;px=400" role="button" title="davila_0-1693568962676.png" alt="davila_0-1693568962676.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The user I use to connect to the api has full admin permissions.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davila_1-1693569041363.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115544i7072414EC33AFFAD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="davila_1-1693569041363.png" alt="davila_1-1693569041363.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here I show you the message that it throws when I do limit 16&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davila_2-1693569184773.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115545iD1E2841FEC644691/image-size/medium?v=v2&amp;amp;px=400" role="button" title="davila_2-1693569184773.png" alt="davila_2-1693569184773.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But with limit 15 it works.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davila_3-1693569241908.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/115546iC00C0035D4DAD2DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="davila_3-1693569241908.png" alt="davila_3-1693569241908.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 11:56:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Problem-getting-full-list-of-users-with-Nprinting-API/m-p/2112269#M39895</guid>
      <dc:creator>davila</dc:creator>
      <dc:date>2023-09-01T11:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting full list of users with Nprinting API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Problem-getting-full-list-of-users-with-Nprinting-API/m-p/2112286#M39896</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/211297"&gt;@davila&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where did you get your script from?&lt;/P&gt;
&lt;P&gt;Your version of NPrinting does not have all the fields you have in your statements in the API documentation&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/nprinting/April2020/APIs/NP+API/index.html?page=54" target="_blank"&gt;https://help.qlik.com/en-US/nprinting/April2020/APIs/NP+API/index.html?page=54.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Fields in documentation for GET Users call support following structure:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "data" : {
    "totalItems" : 0,
    "offset" : 6,
    "limit" : 1,
    "items" : [ {
      "domainAccount" : "aeiou",
      "subFolder" : "aeiou",
      "created" : "2000-01-23T04:56:07.000+00:00",
      "timezone" : "aeiou",
      "alternateEmail1" : "aeiou",
      "userName" : "aeiou",
      "locale" : "de",
      "enabled" : true,
      "folder" : "aeiou",
      "alternateEmail3" : "aeiou",
      "lastUpdate" : "2000-01-23T04:56:07.000+00:00",
      "alternateEmail2" : "aeiou",
      "id" : "00000000-0000-0000-0000-000000000000",
      "email" : "aeiou"
    } ]
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is hard to test anything on such old version as it is not supported for more than a year so I suggest to upgrade to currently supported version and for API call you may need to alter your SQL Select statement.&lt;/P&gt;
&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 12:29:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Problem-getting-full-list-of-users-with-Nprinting-API/m-p/2112286#M39896</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2023-09-01T12:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting full list of users with Nprinting API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Problem-getting-full-list-of-users-with-Nprinting-API/m-p/2112297#M39899</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1326"&gt;@Lech_Miszkiewicz&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you very much for your help, I think I'll talk to my provider to update the NPrinting platform.&lt;/P&gt;
&lt;P&gt;However, I still find it strange that I only take users with a limit less than 15.&lt;/P&gt;
&lt;P&gt;I generated the script considering the documentation of the API on this website:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/nprinting/May2023/APIs/NP+API/index.html?page=0" target="_blank"&gt;https://help.qlik.com/en-US/nprinting/May2023/APIs/NP+API/index.html?page=0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Cheers.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 12:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Problem-getting-full-list-of-users-with-Nprinting-API/m-p/2112297#M39899</guid>
      <dc:creator>davila</dc:creator>
      <dc:date>2023-09-01T12:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting full list of users with Nprinting API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Problem-getting-full-list-of-users-with-Nprinting-API/m-p/2112374#M39903</link>
      <description>&lt;P&gt;Well. You &amp;nbsp;are generating script for version May 2023 based on the link you gave us. April 2020 is much older and is different. I specifically asked you about version for that very reason. I gave you link reference to that api version so try again using it or simply create a connection to the “get users” end point and use Qlik to generate script for you while browsing table. Your syntax looks bit odd so i think it may be a reason why its not working properly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 15:09:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Problem-getting-full-list-of-users-with-Nprinting-API/m-p/2112374#M39903</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2023-09-01T15:09:44Z</dc:date>
    </item>
  </channel>
</rss>

