<?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: Editing users with qlik-cli in Management &amp; Governance</title>
    <link>https://community.qlik.com/t5/Management-Governance/Editing-users-with-qlik-cli/m-p/2459655#M27381</link>
    <description>&lt;P&gt;We got around to trying it and we're still getting the error from the body I think our syntax resembles what you have above.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jun 2024 21:00:46 GMT</pubDate>
    <dc:creator>chriscammers</dc:creator>
    <dc:date>2024-06-05T21:00:46Z</dc:date>
    <item>
      <title>Editing users with qlik-cli</title>
      <link>https://community.qlik.com/t5/Management-Governance/Editing-users-with-qlik-cli/m-p/2459212#M27371</link>
      <description>&lt;P&gt;Following the documentation for editing users in the qlik-cli we are getting errors when attempting to edit a user&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://qlik.dev/toolkits/qlik-cli/user/user-edit/" target="_blank" rel="noopener"&gt;https://qlik.dev/toolkits/qlik-cli/user/user-edit/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We've tried a bunch of different variations for changing the user email address so we can migrate to a new identity provider.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;//If we enter 
qlik user edit &amp;lt;userid&amp;gt;

//then a notepad window pops up and with the user content
//which we can edit without issue but the help for the command 
//shows how to use a --body flag but no matter how we code 
//that one we get an error saying that the flag --body does
//not exist



//Here is the text from the command help



qlik user edit &amp;lt;userId&amp;gt; --body '[{"op":"replace","path":"/name","value":&amp;lt;value&amp;gt;}]'

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anybody have any suggestion for this syntax&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 17:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Editing-users-with-qlik-cli/m-p/2459212#M27371</guid>
      <dc:creator>chriscammers</dc:creator>
      <dc:date>2024-06-04T17:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Editing users with qlik-cli</title>
      <link>https://community.qlik.com/t5/Management-Governance/Editing-users-with-qlik-cli/m-p/2459481#M27377</link>
      <description>&lt;P&gt;The default way that I'd perform this work is without using the edit command. Example which works:&lt;/P&gt;
&lt;P&gt;qlik user patch Ua1GHmCCt-qoUM9ESpi8-tFY86kl5pCT --body "[{""op"":""replace"",""path"":""/email"",""value"":""unicorn@corp.example""}]"&lt;/P&gt;
&lt;P&gt;* Note: I am using PowerShell and Windows. My memory is that you need to escape with \ rather than an additional double quote (") when using my Mac.&lt;/P&gt;
&lt;P&gt;That being said, the qlik user edit works for me (qlik-cli version 2.24.0). My work-flow is:&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;qlik user edit Ua1GHmCCt-qoUM9ESpi8-tFY86kl5pCT --&amp;gt; Notepad opens&lt;/P&gt;
&lt;P&gt;- Edit the field &amp;amp; Save the file (Ctrl+S)&lt;/P&gt;
&lt;P&gt;- Verify the changes&lt;/P&gt;
&lt;P&gt;But overall, the qlik user patch route is the path I'd take as it permits you to do the operations programmatically without user interaction.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 12:52:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Editing-users-with-qlik-cli/m-p/2459481#M27377</guid>
      <dc:creator>Levi_Turner</dc:creator>
      <dc:date>2024-06-05T12:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Editing users with qlik-cli</title>
      <link>https://community.qlik.com/t5/Management-Governance/Editing-users-with-qlik-cli/m-p/2459526#M27378</link>
      <description>&lt;P&gt;Here are 2 examples that works on a mac:&lt;BR /&gt;&lt;BR /&gt;qlik raw patch v1/users/ONF-aLeBJReJwug3C8-pWDij0WiLrMQJ --body '[{"op":"replace","path":"/name","value":"James Bond"}]'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;qlik raw patch v1/users/ONF-aLeBJReJwug3C8-pWDij0WiLrMQJ --body "[{\"op\":\"replace\",\"path\":\"/name\",\"value\":\"Jim Bond\"}]"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As to your question, I think there is a doc bug with the "--body" flag, so we will raise this internally.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 14:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Editing-users-with-qlik-cli/m-p/2459526#M27378</guid>
      <dc:creator>Leigh_Kennedy</dc:creator>
      <dc:date>2024-06-05T14:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Editing users with qlik-cli</title>
      <link>https://community.qlik.com/t5/Management-Governance/Editing-users-with-qlik-cli/m-p/2459533#M27379</link>
      <description>&lt;P&gt;Just the man I was hoping would respond!!! Thanks Levi!&lt;/P&gt;
&lt;P&gt;We were looking at Patch as the next option. Hopefully this will get us a little further along.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 14:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Editing-users-with-qlik-cli/m-p/2459533#M27379</guid>
      <dc:creator>chriscammers</dc:creator>
      <dc:date>2024-06-05T14:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Editing users with qlik-cli</title>
      <link>https://community.qlik.com/t5/Management-Governance/Editing-users-with-qlik-cli/m-p/2459655#M27381</link>
      <description>&lt;P&gt;We got around to trying it and we're still getting the error from the body I think our syntax resembles what you have above.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 21:00:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Editing-users-with-qlik-cli/m-p/2459655#M27381</guid>
      <dc:creator>chriscammers</dc:creator>
      <dc:date>2024-06-05T21:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Editing users with qlik-cli</title>
      <link>https://community.qlik.com/t5/Management-Governance/Editing-users-with-qlik-cli/m-p/2459952#M27385</link>
      <description>&lt;P&gt;Since you're executing this in PowerShell on Windows, I would use this style of body.&lt;/P&gt;
&lt;P&gt;qlik user patch Ua1GHmCCt-qoUM9ESpi8-tFY86kl5pCT --body "[{""op"":""replace"",""path"":""/email"",""value"":""unicorn@corp.example""}]"&lt;/P&gt;
&lt;P&gt;We're using double double-quotes ("") to escape. The back-slash escaping is needed when using bash (MacOS / Linux).&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 14:50:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Editing-users-with-qlik-cli/m-p/2459952#M27385</guid>
      <dc:creator>Levi_Turner</dc:creator>
      <dc:date>2024-06-06T14:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Editing users with qlik-cli</title>
      <link>https://community.qlik.com/t5/Management-Governance/Editing-users-with-qlik-cli/m-p/2466966#M27552</link>
      <description>&lt;P&gt;Leigh,&lt;/P&gt;
&lt;P&gt;Did you raise this as a bug?? We tried a bunch of variations and could not properly form the body in the cli. In the effort to keep our project moving we did create an automation that will loop over a list of email addresses and then update the email to a new one via the raw api call block. This will allow us to change the active IDP so the users will keep their content.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 19:40:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Editing-users-with-qlik-cli/m-p/2466966#M27552</guid>
      <dc:creator>chriscammers</dc:creator>
      <dc:date>2024-07-01T19:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Editing users with qlik-cli</title>
      <link>https://community.qlik.com/t5/Management-Governance/Editing-users-with-qlik-cli/m-p/2466987#M27553</link>
      <description>&lt;P&gt;I did pass it on, but it's only the docs that I think are wrong.&amp;nbsp; Both&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47469"&gt;@Levi_Turner&lt;/a&gt;&amp;nbsp;and my approaches work.&amp;nbsp; if you add '--verbose' to your command you should see the JSON as it is passed. See my example (Look at the. 'PAYLOAD' section):&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;qlik raw patch v1/users/ONF-aLeBJReJwug3C8-pWDij0WiLrMQJ --body "[{\"op\":\"replace\",\"path\":\"/name\",\"value\":\"Jim Bond\"}]" --verbose
Server-type not set, guessing "cloud"
PATCH https://lkn-qlkaccount.ap.qlikcloud.com/api/v1/users/ONF-aLeBJReJwug3C8-pWDij0WiLrMQJ
* Establishing connection to: lkn-qlkaccount.ap.qlikcloud.com:443
* TLS Handshake started
* TLS Handshake done (47ms), version: TLS v1.3
* Connection established (135ms)
&amp;gt; Host: lkn-qlkaccount.ap.qlikcloud.com
&amp;gt; User-Agent: qlik-cli/2.25.0 (darwin) raw
&amp;gt; Transfer-Encoding: chunked
&amp;gt; Authorization: Bearer **omitted**
&amp;gt; Content-Type: application/json
&amp;gt; Referer: https://lkn-qlkaccount.ap.qlikcloud.com
&amp;gt; Accept-Encoding: gzip
PAYLOAD:
[
  {
    "op": "replace",
    "path": "/name",
    "value": "Jim Bond"
  }
]
&amp;lt; Cache-Control: no-store
&amp;lt; Connection: keep-alive
&amp;lt; Date: Mon, 01 Jul 2024 22:46:22 GMT
&amp;lt; Pragma: no-cache
&amp;lt; Set-Cookie: **omitted**
&amp;lt; Strict-Transport-Security: max-age=15724800; includeSubDomains
Response time: 343ms
Status: 204 No Content&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 22:51:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Editing-users-with-qlik-cli/m-p/2466987#M27553</guid>
      <dc:creator>Leigh_Kennedy</dc:creator>
      <dc:date>2024-07-01T22:51:07Z</dc:date>
    </item>
  </channel>
</rss>

