<?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: How to change permissions for a job through the REST API/Python SDK? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-permissions-for-a-job-through-the-REST-API-Python/m-p/432840#M75685</link>
    <description>&lt;P&gt;I think the answer is at &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTprolog#EAI_response_data"&gt;EAI response data&lt;/A&gt; cause there's a &lt;CODE&gt;sharing&lt;/CODE&gt; parameter. Other than that, I thought it was possible to change permissions but done in the same way as any other Knowledge Object and not specific to searches...if that helps.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jul 2018 13:19:12 GMT</pubDate>
    <dc:creator>sloshburch</dc:creator>
    <dc:date>2018-07-18T13:19:12Z</dc:date>
    <item>
      <title>How to change permissions for a job through the REST API/Python SDK?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-permissions-for-a-job-through-the-REST-API-Python/m-p/432836#M75681</link>
      <description>&lt;P&gt;I am doing some automation in which I am running some searches through the API, and if any results are found, it emails the link to the job to some users. Everything works as desired except for the fact that, by default, jobs are private so the users do not have access. Is there anyway to programatically change the read permissions to everyone for a job?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 19:32:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-permissions-for-a-job-through-the-REST-API-Python/m-p/432836#M75681</guid>
      <dc:creator>chrishartsock</dc:creator>
      <dc:date>2018-07-11T19:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to change permissions for a job through the REST API/Python SDK?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-permissions-for-a-job-through-the-REST-API-Python/m-p/432837#M75682</link>
      <description>&lt;P&gt;Here are a couple ideas from my colleagues:&lt;/P&gt;

&lt;P&gt;Go into the UI and change a search job permissions (either “share” or “extend job lifetime”) and then check splunkd_rest_access.log around the same time (index=_internal source= splunkd_rest_access.log) and see how the UI uses REST to make the change. Splunk Web is simply a front end for the REST API, so if it can be done there it can be done in the API – the trick is seeing how the UI does it (which that search should help you with).&lt;/P&gt;

&lt;P&gt;You can also just try to modify the eai:acl.perms.read, eai:acl.perms.write, or eai:acl.sharing properties via a /services/search/jobs/{search_id} POST&lt;/P&gt;

&lt;P&gt;Please let us know if either of these lead you to the answer. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:30:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-permissions-for-a-job-through-the-REST-API-Python/m-p/432837#M75682</guid>
      <dc:creator>adauria_splunk</dc:creator>
      <dc:date>2020-09-29T20:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to change permissions for a job through the REST API/Python SDK?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-permissions-for-a-job-through-the-REST-API-Python/m-p/432838#M75683</link>
      <description>&lt;P&gt;Does anything special have to be done to enable logging into the splunkd_rest_access.log? I cannot find it. I have searched the _internal index as well as looked in /opt/splunk/var/log/splunk/ on our search head.&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:30:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-permissions-for-a-job-through-the-REST-API-Python/m-p/432838#M75683</guid>
      <dc:creator>chrishartsock</dc:creator>
      <dc:date>2020-09-29T20:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to change permissions for a job through the REST API/Python SDK?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-permissions-for-a-job-through-the-REST-API-Python/m-p/432839#M75684</link>
      <description>&lt;P&gt;Sorry, splunkd_access will show you the REST calls&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 20:51:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-permissions-for-a-job-through-the-REST-API-Python/m-p/432839#M75684</guid>
      <dc:creator>adauria_splunk</dc:creator>
      <dc:date>2018-07-17T20:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to change permissions for a job through the REST API/Python SDK?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-permissions-for-a-job-through-the-REST-API-Python/m-p/432840#M75685</link>
      <description>&lt;P&gt;I think the answer is at &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTprolog#EAI_response_data"&gt;EAI response data&lt;/A&gt; cause there's a &lt;CODE&gt;sharing&lt;/CODE&gt; parameter. Other than that, I thought it was possible to change permissions but done in the same way as any other Knowledge Object and not specific to searches...if that helps.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 13:19:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-permissions-for-a-job-through-the-REST-API-Python/m-p/432840#M75685</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2018-07-18T13:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to change permissions for a job through the REST API/Python SDK?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-permissions-for-a-job-through-the-REST-API-Python/m-p/432841#M75686</link>
      <description>&lt;P&gt;You and @SloshBurch both hit it.  I was able to hit &lt;A href="https://myserver:8089/services/search/jobs/search_id/acl"&gt;https://myserver:8089/services/search/jobs/search_id/acl&lt;/A&gt; with a payload of:&lt;BR /&gt;
perms.read: *&lt;BR /&gt;
sharing: global&lt;/P&gt;

&lt;P&gt;That seemed to do the trick.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 18:12:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-permissions-for-a-job-through-the-REST-API-Python/m-p/432841#M75686</guid>
      <dc:creator>chrishartsock</dc:creator>
      <dc:date>2018-07-18T18:12:02Z</dc:date>
    </item>
  </channel>
</rss>

