<?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: Is it possible to modify users settings using the CLI? in Security</title>
    <link>https://community.splunk.com/t5/Security/Is-it-possible-to-modify-users-settings-using-the-CLI/m-p/432685#M12971</link>
    <description>&lt;P&gt;Hi, I dont think these capabilities are available from CLI, few operations can be done using CLI but not changing the user options.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Aug 2018 21:51:48 GMT</pubDate>
    <dc:creator>pruthvikrishnap</dc:creator>
    <dc:date>2018-08-28T21:51:48Z</dc:date>
    <item>
      <title>Is it possible to modify users settings using the CLI?</title>
      <link>https://community.splunk.com/t5/Security/Is-it-possible-to-modify-users-settings-using-the-CLI/m-p/432684#M12970</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I would like to modify some users option like "search assistant" or "syntax highlighting" using the CLI ; is it possible?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 13:41:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Is-it-possible-to-modify-users-settings-using-the-CLI/m-p/432684#M12970</guid>
      <dc:creator>JuGuSm</dc:creator>
      <dc:date>2018-08-28T13:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to modify users settings using the CLI?</title>
      <link>https://community.splunk.com/t5/Security/Is-it-possible-to-modify-users-settings-using-the-CLI/m-p/432685#M12971</link>
      <description>&lt;P&gt;Hi, I dont think these capabilities are available from CLI, few operations can be done using CLI but not changing the user options.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 21:51:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Is-it-possible-to-modify-users-settings-using-the-CLI/m-p/432685#M12971</guid>
      <dc:creator>pruthvikrishnap</dc:creator>
      <dc:date>2018-08-28T21:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to modify users settings using the CLI?</title>
      <link>https://community.splunk.com/t5/Security/Is-it-possible-to-modify-users-settings-using-the-CLI/m-p/432686#M12972</link>
      <description>&lt;P&gt;probably not, but would be great to know if im wrong&lt;BR /&gt;
read here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.2/Admin/CLIadmincommands"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.2/Admin/CLIadmincommands&lt;/A&gt;&lt;BR /&gt;
pay attention to the &lt;CODE&gt;add&lt;/CODE&gt; and &lt;CODE&gt;remove&lt;/CODE&gt; command and their perspective attributes&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 00:44:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Is-it-possible-to-modify-users-settings-using-the-CLI/m-p/432686#M12972</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-08-29T00:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to modify users settings using the CLI?</title>
      <link>https://community.splunk.com/t5/Security/Is-it-possible-to-modify-users-settings-using-the-CLI/m-p/432687#M12973</link>
      <description>&lt;P&gt;Hi JuGuSm,&lt;/P&gt;

&lt;P&gt;well &lt;EM&gt;using CLI&lt;/EM&gt; is a broad statement, and therefore I can answer this question with &lt;STRONG&gt;Yes, of course you can use CLI to change it.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Let me show you how to change the option &lt;CODE&gt;search_assistant = none&lt;/CODE&gt; to &lt;CODE&gt;search_assistant = full&lt;/CODE&gt; using CLI commands.&lt;/P&gt;

&lt;P&gt;first option, use &lt;CODE&gt;sed&lt;/CODE&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sed -i 's/search_assistant = none/search_assistant = full/' /opt/splunk/etc/users/&amp;lt;username&amp;gt;/user-prefs/local/user-prefs.conf
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;second option, use &lt;CODE&gt;curl&lt;/CODE&gt; and edit it using the REST endpoint:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -u admin:changeme -k &lt;A href="https://localhost:8089//servicesNS/admin/user-prefs/properties/user-prefs/general/search_assistant" target="test_blank"&gt;https://localhost:8089//servicesNS/admin/user-prefs/properties/user-prefs/general/search_assistant&lt;/A&gt; -d value=full 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The result will be like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;response&amp;gt;
  &amp;lt;messages&amp;gt;
    &amp;lt;msg type="INFO"&amp;gt;Successfully modified 1 key(s)&amp;lt;/msg&amp;gt;
  &amp;lt;/messages&amp;gt;
&amp;lt;/response&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Third option, use any CLI text editor and modify the file - yeah I know, lame but still a CLI option.&lt;/P&gt;

&lt;P&gt;So, as you can see there are ways to edit the setting using CLI commands &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 02:56:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Is-it-possible-to-modify-users-settings-using-the-CLI/m-p/432687#M12973</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-08-29T02:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to modify users settings using the CLI?</title>
      <link>https://community.splunk.com/t5/Security/Is-it-possible-to-modify-users-settings-using-the-CLI/m-p/432688#M12974</link>
      <description>&lt;P&gt;Awesome! Thank you for this very comprehensive answer.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 07:34:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Is-it-possible-to-modify-users-settings-using-the-CLI/m-p/432688#M12974</guid>
      <dc:creator>JuGuSm</dc:creator>
      <dc:date>2018-08-29T07:34:06Z</dc:date>
    </item>
  </channel>
</rss>

