<?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: API License Add Error in Management &amp; Governance</title>
    <link>https://community.qlik.com/t5/Management-Governance/API-License-Add-Error/m-p/1295124#M9149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found that when I use the "administrator" account for the UserID and "WINTEST" for the UserDirectory, it appears to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jun 2017 19:53:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-28T19:53:48Z</dc:date>
    <item>
      <title>API License Add Error</title>
      <link>https://community.qlik.com/t5/Management-Governance/API-License-Add-Error/m-p/1295123#M9148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Forgive me if this is in the wrong discussion area. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;I am trying to automate the setup of a Qlik Sense server and am attempting to add a license to a new Qlik Sense Enterprise server through the API.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;So I'm seeing the following request:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-indent: 0px; color: #505050; text-align: left; font-style: normal; font-size: 10pt; background-color: #fafafa; font-family: courier new,courier;"&gt;&lt;A class="jive-link-external-small" href="https://WINTEST:4242/qrs/license?Xrfkey=ABCDEFG123456789&amp;amp;control=12345" rel="nofollow" target="_blank"&gt;https://WINTEST:4242/qrs/license?Xrfkey=ABCDEFG123456789&amp;amp;control=12345&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; font-family: arial,helvetica,sans-serif; font-style: normal; text-align: left; text-indent: 0px; background-color: #fafafa; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; font-family: arial,helvetica,sans-serif; font-style: normal; text-align: left; text-indent: 0px; background-color: #fafafa; font-size: 10pt;"&gt;With the following headers:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: courier new,courier;"&gt;X-Qlik-Xrfkey : &lt;SPAN style="color: #505050; font-style: normal; text-align: left; text-indent: 0px; background-color: #fafafa;"&gt;ABCDEFG123456789&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: courier new,courier;"&gt; X-Qlik-User : UserDirectory=internal;UserId=sa_repository&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: courier new,courier;"&gt;Content-Type : application/json&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;And the body:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: courier new,courier;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "lef": "",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "serial": "123456789012345",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name": "myUser",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "organization": "myOrg"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: courier new,courier;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting the following 400 response:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "schemaPath": "User",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "errorText": "You are not allowed to change your own role."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Any thoughts of why I'm getting a "User" error on installing a license?&amp;nbsp; Do I need to do something with the "sa_respository" user first?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Thank you in advance for any help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 19:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/API-License-Add-Error/m-p/1295123#M9148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-28T19:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: API License Add Error</title>
      <link>https://community.qlik.com/t5/Management-Governance/API-License-Add-Error/m-p/1295124#M9149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found that when I use the "administrator" account for the UserID and "WINTEST" for the UserDirectory, it appears to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2017 19:53:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/API-License-Add-Error/m-p/1295124#M9149</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-28T19:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: API License Add Error</title>
      <link>https://community.qlik.com/t5/Management-Governance/API-License-Add-Error/m-p/1295125#M9150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have the same problem. To clarify the answer of Charles: as a UserDirectory, use the hostname of the qlik server (in my example: DEVELOPQLIKVM), like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X-Qlik-User: UserDirectory=DEVELOPQLIKVM;UserId=qlikadmin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: you have to use the user that is given Root Access, in my case qlikadmin, not administrator (this is purely you own choice).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 14:43:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/API-License-Add-Error/m-p/1295125#M9150</guid>
      <dc:creator />
      <dc:date>2017-07-26T14:43:33Z</dc:date>
    </item>
  </channel>
</rss>

