<?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 Regarding Storage Passwords Issue For Non-Admin Users in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regarding-Storage-Passwords-Issue-For-Non-Admin-Users/m-p/507218#M141841</link>
    <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using Add-on builder in our Add-on and used Additional Settings tab for configuring username and password.&lt;/P&gt;&lt;P&gt;While configuring app, it is storing username and passwords in passwords.conf using storage/passwords endpoint.&lt;/P&gt;&lt;P&gt;Our customer is having group of Admins and group of Non-admin(normal user) who is using the app.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem Statement: Custom commands are not working for Non-Admin users.&lt;/P&gt;&lt;P&gt;Root Cause: In Custom commands, we are doing a get call on storage/passwords and reading the password and we are using that password in API call. Non-Admin users are not able to read the passwords from storage/passwords.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code snippet we are using to read the password:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;entities = entity.getEntities(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;"admin"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"passwords"&lt;/SPAN&gt;&lt;SPAN&gt;],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;namespace&lt;/SPAN&gt;&lt;SPAN&gt;=APP_NAME,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;owner&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"nobody"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;sessionKey&lt;/SPAN&gt;&lt;SPAN&gt;=session_key,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;search&lt;/SPAN&gt;&lt;SPAN&gt;=APP_NAME,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;count&lt;/SPAN&gt;&lt;SPAN&gt;=-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Can someone help here?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 03 Jul 2020 09:03:41 GMT</pubDate>
    <dc:creator>nisu</dc:creator>
    <dc:date>2020-07-03T09:03:41Z</dc:date>
    <item>
      <title>Regarding Storage Passwords Issue For Non-Admin Users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regarding-Storage-Passwords-Issue-For-Non-Admin-Users/m-p/507218#M141841</link>
      <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using Add-on builder in our Add-on and used Additional Settings tab for configuring username and password.&lt;/P&gt;&lt;P&gt;While configuring app, it is storing username and passwords in passwords.conf using storage/passwords endpoint.&lt;/P&gt;&lt;P&gt;Our customer is having group of Admins and group of Non-admin(normal user) who is using the app.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem Statement: Custom commands are not working for Non-Admin users.&lt;/P&gt;&lt;P&gt;Root Cause: In Custom commands, we are doing a get call on storage/passwords and reading the password and we are using that password in API call. Non-Admin users are not able to read the passwords from storage/passwords.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code snippet we are using to read the password:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;entities = entity.getEntities(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;"admin"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"passwords"&lt;/SPAN&gt;&lt;SPAN&gt;],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;namespace&lt;/SPAN&gt;&lt;SPAN&gt;=APP_NAME,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;owner&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"nobody"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;sessionKey&lt;/SPAN&gt;&lt;SPAN&gt;=session_key,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;search&lt;/SPAN&gt;&lt;SPAN&gt;=APP_NAME,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;count&lt;/SPAN&gt;&lt;SPAN&gt;=-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Can someone help here?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 03 Jul 2020 09:03:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regarding-Storage-Passwords-Issue-For-Non-Admin-Users/m-p/507218#M141841</guid>
      <dc:creator>nisu</dc:creator>
      <dc:date>2020-07-03T09:03:41Z</dc:date>
    </item>
  </channel>
</rss>

