<?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: Nprtinting Create User with domainAccount via Rest API in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/Nprtinting-Create-User-with-domainAccount-via-Rest-API/m-p/47685#M1741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for all your help, I tested domain\\user and it worked for me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2018 16:42:11 GMT</pubDate>
    <dc:creator>aaron_ppmc</dc:creator>
    <dc:date>2018-04-04T16:42:11Z</dc:date>
    <item>
      <title>Nprtinting Create User with domainAccount via Rest API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Nprtinting-Create-User-with-domainAccount-via-Rest-API/m-p/47679#M1735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you an idea to pass trouth the domain string like "domain\userid".&lt;/P&gt;&lt;P&gt;i try to insert users into Nprinting Feb. 2018 but when i fill in domain\userid, it will fail with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QVX_UNEXPECTED_END_OF_DATA: HTTP protocol error 400 (Bad Request):&lt;/P&gt;&lt;P&gt;{"error":{"code":400,"message":"Request is malformed."}}&lt;/P&gt;&lt;P&gt;RestNPPOSTandPUTTestTable:&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;"__KEY_data"&lt;/P&gt;&lt;P&gt;FROM JSON (wrap off) "data" PK "__KEY_data"&lt;/P&gt;&lt;P&gt;WITH CONNECTION( URL "*********/api/v1/users", BODY "{""Username"":"""",""Email"":"""",""Password"":""123"",""Enabled"":""true"",""Folder"":"""",""Subfolder"":"""",""DomainAccount"":""DOMAIN\USER"",""Timezone"":""Europe/Vienna"",""Locale"":""de""}",&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;HTTPHEADER "Origin" "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://***********" rel="nofollow" target="_blank"&gt;https://***********&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;HTTPHEADER "Content-Type" "application/json",&lt;/P&gt;&lt;P&gt;HTTPHEADER "cookie" "NPWEBCONSOLE_SESSION=967f0a56b127b200ec358a32ca1eb084f4dbe1fa-%00NPWEBCONSOLE_XSRF-TOKEN%3AopT1Hrhu3Rr6xKl4Z6tuqVHNiRm6WGXKGX10V2wx7%2Bw%3D%00%00_TS%3Asession%00%00userid%3A6a4a3525653a4739b67667b86bcd2bd8%00; ")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your Response&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 13:50:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Nprtinting-Create-User-with-domainAccount-via-Rest-API/m-p/47679#M1735</guid>
      <dc:creator>aaron_ppmc</dc:creator>
      <dc:date>2018-04-03T13:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Nprtinting Create User with domainAccount via Rest API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Nprtinting-Create-User-with-domainAccount-via-Rest-API/m-p/47680#M1736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aaron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The first and most important thing is that you need to provide all required information (email, name, timezone etc) I am not sure which fields are compulsory but you can check it out in NPrinting admin console when creating a new user (you will not be able to save record untill you fill up all required fields)&lt;/LI&gt;&lt;LI&gt;I have created a QlikView script which reads a user details then loops through each user record and creates or uptades it.&lt;/LI&gt;&lt;LI&gt;Domain user is just a string in format: &lt;STRONG style="text-decoration: underline;"&gt;domain\user&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;I use API (with 2 connections POST and GET - therefore you will see 2 Subrutines) to update create records.&amp;nbsp; Please not also that with API call you can populate users Folder and Subfolder entries which is briliant &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see code in attached file - navigate to section with USERS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Lech&lt;/P&gt;&lt;P&gt;---------------------------------------------&lt;/P&gt;&lt;P&gt;When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 00:17:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Nprtinting-Create-User-with-domainAccount-via-Rest-API/m-p/47680#M1736</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2018-04-04T00:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Nprtinting Create User with domainAccount via Rest API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Nprtinting-Create-User-with-domainAccount-via-Rest-API/m-p/47681#M1737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember to add the escape character. So the domain account should be similar to Domain\\Account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ruggero&lt;/P&gt;&lt;P&gt;---------------------------------------------&lt;/P&gt;&lt;P&gt;When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 08:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Nprtinting-Create-User-with-domainAccount-via-Rest-API/m-p/47681#M1737</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2018-04-04T08:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Nprtinting Create User with domainAccount via Rest API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Nprtinting-Create-User-with-domainAccount-via-Rest-API/m-p/47682#M1738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"email":"&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:name@domain.com"&gt;name@domain.com&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"enabled":true,&lt;/P&gt;&lt;P&gt;"userName":"NewUser",&lt;/P&gt;&lt;P&gt;"domainAccount":"&lt;STRONG&gt;domain\\user&lt;/STRONG&gt;",&lt;/P&gt;&lt;P&gt;"timezone":"CET",&lt;/P&gt;&lt;P&gt;"locale":"En",&lt;/P&gt;&lt;P&gt;"folder":"&lt;STRONG&gt;c:\\NewUser&lt;/STRONG&gt;",&lt;/P&gt;&lt;P&gt;"subFolder":"NewUser",&lt;/P&gt;&lt;P&gt;"password":"Password123"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ruggero&lt;/P&gt;&lt;P&gt;---------------------------------------------&lt;/P&gt;&lt;P&gt;When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 08:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Nprtinting-Create-User-with-domainAccount-via-Rest-API/m-p/47682#M1738</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2018-04-04T08:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Nprtinting Create User with domainAccount via Rest API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Nprtinting-Create-User-with-domainAccount-via-Rest-API/m-p/47683#M1739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌this is incosistent then as it works for me with single \ character like: Domain\user&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 09:04:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Nprtinting-Create-User-with-domainAccount-via-Rest-API/m-p/47683#M1739</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2018-04-04T09:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Nprtinting Create User with domainAccount via Rest API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Nprtinting-Create-User-with-domainAccount-via-Rest-API/m-p/47684#M1740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lech,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The \ as escape characters could be added automatically by the client you are using to send the API request or by a library you used in your program. For example I tested the snippet I just posted in ARC. If I use the JSON visual editor I simply need to specify a single backslash:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Create a User JSON editor.png" class="jive-image image-1" src="/legacyfs/online/198407_Create a User JSON editor.png" style="height: 433px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;but if you open it in the raw editor you see the double backslashes&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Create a User RAW editor.png" class="jive-image image-2" src="/legacyfs/online/198409_Create a User RAW editor.png" style="height: 374px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;The same could happens if you are using a library that format the JSON code in a custom software. The library adds the needed backslashes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ruggero&lt;/P&gt;&lt;P&gt;---------------------------------------------&lt;/P&gt;&lt;P&gt;When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 10:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Nprtinting-Create-User-with-domainAccount-via-Rest-API/m-p/47684#M1740</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2018-04-04T10:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Nprtinting Create User with domainAccount via Rest API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Nprtinting-Create-User-with-domainAccount-via-Rest-API/m-p/47685#M1741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for all your help, I tested domain\\user and it worked for me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 16:42:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Nprtinting-Create-User-with-domainAccount-via-Rest-API/m-p/47685#M1741</guid>
      <dc:creator>aaron_ppmc</dc:creator>
      <dc:date>2018-04-04T16:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Nprtinting Create User with domainAccount via Rest API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Nprtinting-Create-User-with-domainAccount-via-Rest-API/m-p/47686#M1742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool understand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using Qlik Rest Connector and i was executing content from my script as a part of chaining reload - import/update users - distribute report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Lech&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 00:54:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Nprtinting-Create-User-with-domainAccount-via-Rest-API/m-p/47686#M1742</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2018-04-05T00:54:20Z</dc:date>
    </item>
  </channel>
</rss>

