<?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: Why can the Splunk Python SDK add macros NAME and Definition but the Sharing and the Owner doesn't apply? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Why-can-the-Splunk-Python-SDK-add-macros-NAME-and-Definition-but/m-p/364617#M5949</link>
    <description>&lt;P&gt;I already answer this question .&lt;BR /&gt;
1) your app must be on GLOBAL first , it conflict some of the code if it is set as app&lt;BR /&gt;
2) And put this code :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;service.post('properties/macros',__stanza=name,sharing="global",app='appname',owner='admin')
service.post('properties/macros/'+name,definition=val)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;By this code i done the task&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2018 02:41:01 GMT</pubDate>
    <dc:creator>jadengoho</dc:creator>
    <dc:date>2018-02-13T02:41:01Z</dc:date>
    <item>
      <title>Why can the Splunk Python SDK add macros NAME and Definition but the Sharing and the Owner doesn't apply?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-can-the-Splunk-Python-SDK-add-macros-NAME-and-Definition-but/m-p/364615#M5947</link>
      <description>&lt;P&gt;I do have a code like this &lt;BR /&gt;
 &lt;CODE&gt;service.post('/servicesNS/nobody/search/admin/macros/'+name,definition= "sample definition " ,sharing="global",owner="ME")&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;It can add macros NAME and Definition but the Sharing and the Owner doesn't apply.&lt;BR /&gt;
How can I possibly do this?&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 09:51:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-can-the-Splunk-Python-SDK-add-macros-NAME-and-Definition-but/m-p/364615#M5947</guid>
      <dc:creator>jadengoho</dc:creator>
      <dc:date>2018-02-12T09:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why can the Splunk Python SDK add macros NAME and Definition but the Sharing and the Owner doesn't apply?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-can-the-Splunk-Python-SDK-add-macros-NAME-and-Definition-but/m-p/364616#M5948</link>
      <description>&lt;P&gt;I already answer this question .&lt;BR /&gt;
1) your app must be on GLOBAL first , it conflict some of the code if it is set as app&lt;BR /&gt;
2) And put this code :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;service.post('properties/macros',__stanza=name,sharing="global",app='appname',owner='admin')
service.post('properties/macros/'+name,definition=val)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;By this code i done the task&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 02:40:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-can-the-Splunk-Python-SDK-add-macros-NAME-and-Definition-but/m-p/364616#M5948</guid>
      <dc:creator>jadengoho</dc:creator>
      <dc:date>2018-02-13T02:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why can the Splunk Python SDK add macros NAME and Definition but the Sharing and the Owner doesn't apply?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-can-the-Splunk-Python-SDK-add-macros-NAME-and-Definition-but/m-p/364617#M5949</link>
      <description>&lt;P&gt;I already answer this question .&lt;BR /&gt;
1) your app must be on GLOBAL first , it conflict some of the code if it is set as app&lt;BR /&gt;
2) And put this code :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;service.post('properties/macros',__stanza=name,sharing="global",app='appname',owner='admin')
service.post('properties/macros/'+name,definition=val)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;By this code i done the task&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 02:41:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-can-the-Splunk-Python-SDK-add-macros-NAME-and-Definition-but/m-p/364617#M5949</guid>
      <dc:creator>jadengoho</dc:creator>
      <dc:date>2018-02-13T02:41:01Z</dc:date>
    </item>
  </channel>
</rss>

