<?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: Remove access to Jobs and Alerts link in app for certain users in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/Remove-access-to-Jobs-and-Alerts-link-in-app-for-certain-users/m-p/33225#M6855</link>
    <description>&lt;P&gt;There's no official way, or unofficial clean way,   but there's an unofficial messy way. &lt;/P&gt;

&lt;P&gt;If you do it, I recommend going the other way.  That is, hide the links for everyone, and then show them for only a couple key users. &lt;/P&gt;

&lt;P&gt;add this to application.css to hide the jobs and alerts links from everyone:&lt;BR /&gt;
    .AccountBar .alerts_opener, &lt;BR /&gt;
    .AccountBar .job_manager_opener {&lt;BR /&gt;
        display:none;&lt;BR /&gt;
    }&lt;/P&gt;

&lt;P&gt;and then add this to application.js, to show them just for the right users:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    // show the jobs and alerts links for the given usernames.
var allowedUsers = ["admin"];
if (allowedUsers.indexOf(Splunk.util.getConfigValue("USERNAME")) !=-1) {
    $(".AccountBar .alerts_opener").show();
    $(".AccountBar .job_manager_opener").show();
} 
    //otherwise finish the job started by the css, and hide the little divider
    //lines too. 
    else {
    $(".AccountBar .alerts_opener").parent().next().hide();
    $(".AccountBar .job_manager_opener").parent().next().hide();
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:15:22 GMT</pubDate>
    <dc:creator>sideview</dc:creator>
    <dc:date>2020-09-28T12:15:22Z</dc:date>
    <item>
      <title>Remove access to Jobs and Alerts link in app for certain users</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Remove-access-to-Jobs-and-Alerts-link-in-app-for-certain-users/m-p/33224#M6854</link>
      <description>&lt;P&gt;In the app how to remove the Jobs and alerts link for certain users.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2012 13:13:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Remove-access-to-Jobs-and-Alerts-link-in-app-for-certain-users/m-p/33224#M6854</guid>
      <dc:creator>priyesh</dc:creator>
      <dc:date>2012-08-13T13:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Remove access to Jobs and Alerts link in app for certain users</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Remove-access-to-Jobs-and-Alerts-link-in-app-for-certain-users/m-p/33225#M6855</link>
      <description>&lt;P&gt;There's no official way, or unofficial clean way,   but there's an unofficial messy way. &lt;/P&gt;

&lt;P&gt;If you do it, I recommend going the other way.  That is, hide the links for everyone, and then show them for only a couple key users. &lt;/P&gt;

&lt;P&gt;add this to application.css to hide the jobs and alerts links from everyone:&lt;BR /&gt;
    .AccountBar .alerts_opener, &lt;BR /&gt;
    .AccountBar .job_manager_opener {&lt;BR /&gt;
        display:none;&lt;BR /&gt;
    }&lt;/P&gt;

&lt;P&gt;and then add this to application.js, to show them just for the right users:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    // show the jobs and alerts links for the given usernames.
var allowedUsers = ["admin"];
if (allowedUsers.indexOf(Splunk.util.getConfigValue("USERNAME")) !=-1) {
    $(".AccountBar .alerts_opener").show();
    $(".AccountBar .job_manager_opener").show();
} 
    //otherwise finish the job started by the css, and hide the little divider
    //lines too. 
    else {
    $(".AccountBar .alerts_opener").parent().next().hide();
    $(".AccountBar .job_manager_opener").parent().next().hide();
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:15:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Remove-access-to-Jobs-and-Alerts-link-in-app-for-certain-users/m-p/33225#M6855</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2020-09-28T12:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Remove access to Jobs and Alerts link in app for certain users</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Remove-access-to-Jobs-and-Alerts-link-in-app-for-certain-users/m-p/33226#M6856</link>
      <description>&lt;P&gt;An old post but would this work for Version 8 also?&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 10:40:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Remove-access-to-Jobs-and-Alerts-link-in-app-for-certain-users/m-p/33226#M6856</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-04T10:40:10Z</dc:date>
    </item>
  </channel>
</rss>

