<?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 can I list all views owned by a particular user? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-list-all-views-owned-by-a-particular-user/m-p/286558#M54697</link>
    <description>&lt;P&gt;Actually, throwing this on the command line works really well. I can feed it into a for loop. The end result being a batch ownership change script.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2016 20:39:17 GMT</pubDate>
    <dc:creator>twinspop</dc:creator>
    <dc:date>2016-12-21T20:39:17Z</dc:date>
    <item>
      <title>How can I list all views owned by a particular user?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-list-all-views-owned-by-a-particular-user/m-p/286554#M54693</link>
      <description>&lt;P&gt;I've tried the &lt;CODE&gt;/servicesNS/userid/-/data/ui/views&lt;/CODE&gt; endpoint but maybe I'm not using it correctly. I have a known view owned by the user that does not show anywhere in the output from calling that endpoint.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -sku admin:password &lt;A href="https://127.0.0.1:8089/servicesNS/userid/his_app/data/ui/views" target="test_blank"&gt;https://127.0.0.1:8089/servicesNS/userid/his_app/data/ui/views&lt;/A&gt; | grep known_view_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The view I searched for is in the app, is shared at app level. If I run:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -sku admin:password &lt;A href="https://127.0.0.1:8089/servicesNS/userid/his_app/data/ui/views/known_view_name" target="test_blank"&gt;https://127.0.0.1:8089/servicesNS/userid/his_app/data/ui/views/known_view_name&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get results. What am I missing?&lt;/P&gt;

&lt;P&gt;I want a list of the view names (not the titles) for a particular user. &lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 15:29:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-list-all-views-owned-by-a-particular-user/m-p/286554#M54693</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2016-12-21T15:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I list all views owned by a particular user?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-list-all-views-owned-by-a-particular-user/m-p/286555#M54694</link>
      <description>&lt;P&gt;Aha. The user had too many views to fit in the default count returned. Final product, including new '?count=0' specifier.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -sku admin:password 'https://127.0.0.1:8089/servicesNS/user/app/data/ui/views?count=0' | grep '&amp;lt;id&amp;gt;' | grep app/data/ui/views/ | sed -e 's^.*/views/^^' | sed -e 's^&amp;lt;/id&amp;gt;^^'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;EDIT: It's imperfect. I see views owned by "nobody" in the returned list. Still trying to find the magix to return just the views owned by user. -sigh-&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 15:41:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-list-all-views-owned-by-a-particular-user/m-p/286555#M54694</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2016-12-21T15:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I list all views owned by a particular user?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-list-all-views-owned-by-a-particular-user/m-p/286556#M54695</link>
      <description>&lt;P&gt;How about  a splunk search with "| rest" (Please replace &lt;STRONG&gt;$username$&lt;/STRONG&gt; with a proper user name)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest splunk_server=local /servicesNS/-/-/data/ui/views  
   | table eai:acl.sharing eai:acl.owner id 
   | rename eai:acl.owner as owner, eai:acl.sharing AS sharing  | search owner=$username$
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Dec 2016 18:50:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-list-all-views-owned-by-a-particular-user/m-p/286556#M54695</guid>
      <dc:creator>Masa</dc:creator>
      <dc:date>2016-12-21T18:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I list all views owned by a particular user?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-list-all-views-owned-by-a-particular-user/m-p/286557#M54696</link>
      <description>&lt;P&gt;Yeah, that would work. Was hoping for a single script solution, but I can copy-pasta.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 19:21:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-list-all-views-owned-by-a-particular-user/m-p/286557#M54696</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2016-12-21T19:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can I list all views owned by a particular user?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-list-all-views-owned-by-a-particular-user/m-p/286558#M54697</link>
      <description>&lt;P&gt;Actually, throwing this on the command line works really well. I can feed it into a for loop. The end result being a batch ownership change script.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 20:39:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-list-all-views-owned-by-a-particular-user/m-p/286558#M54697</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2016-12-21T20:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I list all views owned by a particular user?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-list-all-views-owned-by-a-particular-user/m-p/286559#M54698</link>
      <description>&lt;P&gt;Add &lt;CODE&gt;title&lt;/CODE&gt; immediately after table in the second line of the search to get the search name.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 18:14:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-list-all-views-owned-by-a-particular-user/m-p/286559#M54698</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2017-06-09T18:14:11Z</dc:date>
    </item>
  </channel>
</rss>

