<?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: modify dashboard view App &amp;amp; owner via REST API in Splunk Cloud Platform</title>
    <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-can-I-modify-dashboard-view-App-amp-owner-via-REST-API/m-p/650282#M2353</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;so this operation can not be done in bulk.. i have 100 of views (owned by a user who isnt part of organization)&amp;nbsp; some of which i want to delete and reassign some to another app and user&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jul 2023 19:20:15 GMT</pubDate>
    <dc:creator>imsidrai</dc:creator>
    <dc:date>2023-07-12T19:20:15Z</dc:date>
    <item>
      <title>How can I modify dashboard view App &amp; owner via REST API?</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-can-I-modify-dashboard-view-App-amp-owner-via-REST-API/m-p/650263#M2351</link>
      <description>&lt;P&gt;How can i modify or update owner &amp;amp; app context for&amp;nbsp; dashboard view/panel via REST API call ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 18:58:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-can-I-modify-dashboard-view-App-amp-owner-via-REST-API/m-p/650263#M2351</guid>
      <dc:creator>imsidrai</dc:creator>
      <dc:date>2023-07-12T18:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: modify dashboard view App &amp; owner via REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-can-I-modify-dashboard-view-App-amp-owner-via-REST-API/m-p/650271#M2352</link>
      <description>&lt;P&gt;Use a GET call to obtain the dashboard's XML definition.&amp;nbsp; Modify the definition as required then use a PUT call to update the dashboard.&amp;nbsp; See &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.1.0/RESTREF/RESTknowledge#data.2Fui.2Fviews.2F.7Bname.7D" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.1.0/RESTREF/RESTknowledge#data.2Fui.2Fviews.2F.7Bname.7D&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 18:54:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-can-I-modify-dashboard-view-App-amp-owner-via-REST-API/m-p/650271#M2352</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-07-12T18:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: modify dashboard view App &amp; owner via REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-can-I-modify-dashboard-view-App-amp-owner-via-REST-API/m-p/650282#M2353</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;so this operation can not be done in bulk.. i have 100 of views (owned by a user who isnt part of organization)&amp;nbsp; some of which i want to delete and reassign some to another app and user&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 19:20:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-can-I-modify-dashboard-view-App-amp-owner-via-REST-API/m-p/650282#M2353</guid>
      <dc:creator>imsidrai</dc:creator>
      <dc:date>2023-07-12T19:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: modify dashboard view App &amp; owner via REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-can-I-modify-dashboard-view-App-amp-owner-via-REST-API/m-p/650293#M2354</link>
      <description>&lt;P&gt;"bulk" was not part of the OP.&amp;nbsp; Consider writing a script that performs the necessary operations on all 100 objects for you.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 20:11:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-can-I-modify-dashboard-view-App-amp-owner-via-REST-API/m-p/650293#M2354</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-07-12T20:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: modify dashboard view App &amp; owner via REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-can-I-modify-dashboard-view-App-amp-owner-via-REST-API/m-p/650374#M2357</link>
      <description>&lt;P&gt;so if i do like below in my code , that should work&amp;nbsp; and change app &amp;amp; user context or for views the endpoint is different ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dashboard_name = "view_name"&lt;/P&gt;&lt;P&gt;dashboard_xml_data = get_user_accounts_dashboard_xml(main_query_user_accounts, addon_query_user_accounts_sum)&lt;/P&gt;&lt;P&gt;data = {'output_mode': 'json',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'owner': 'test_user',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'app_name: 'test_app'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;response = requests.post( splunk_server + '/servicesNS/' + app_author + '/' + app_name + '/data/ui/views/' + view_name +"/acl", data=data,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; auth=(user, password), verify=False)&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 12:05:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-can-I-modify-dashboard-view-App-amp-owner-via-REST-API/m-p/650374#M2357</guid>
      <dc:creator>imsidrai</dc:creator>
      <dc:date>2023-07-13T12:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: modify dashboard view App &amp; owner via REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-can-I-modify-dashboard-view-App-amp-owner-via-REST-API/m-p/650394#M2358</link>
      <description>&lt;P&gt;At a high level, that appears to be a good approach.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 14:46:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-can-I-modify-dashboard-view-App-amp-owner-via-REST-API/m-p/650394#M2358</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-07-13T14:46:37Z</dc:date>
    </item>
  </channel>
</rss>

