<?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>question How do you set a business rule to not run for users with a specified role? in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/how-do-you-set-a-business-rule-to-not-run-for-users-with-a/m-p/931433#M471635</link>
    <description>&lt;P&gt;I have a Business Rule that sets the Priority to a Sev 3 on incident creation.&amp;nbsp; I need users with a specific role to not be affected by this rule.&amp;nbsp; If someone can help me find the piece I am missing I would appreciate it.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Aug 2018 20:23:25 GMT</pubDate>
    <dc:creator>Bill11</dc:creator>
    <dc:date>2018-08-16T20:23:25Z</dc:date>
    <item>
      <title>How do you set a business rule to not run for users with a specified role?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-do-you-set-a-business-rule-to-not-run-for-users-with-a/m-p/931433#M471635</link>
      <description>&lt;P&gt;I have a Business Rule that sets the Priority to a Sev 3 on incident creation.&amp;nbsp; I need users with a specific role to not be affected by this rule.&amp;nbsp; If someone can help me find the piece I am missing I would appreciate it.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 20:23:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-do-you-set-a-business-rule-to-not-run-for-users-with-a/m-p/931433#M471635</guid>
      <dc:creator>Bill11</dc:creator>
      <dc:date>2018-08-16T20:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do you set a business rule to not run for users with a specified role?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-do-you-set-a-business-rule-to-not-run-for-users-with-a/m-p/931434#M471636</link>
      <description>&lt;P&gt;You can add a&amp;nbsp;condition in the business rule&lt;/P&gt;
&lt;P&gt;gs.getUser().getRole('myrole')!='true'&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 20:30:57 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-do-you-set-a-business-rule-to-not-run-for-users-with-a/m-p/931434#M471636</guid>
      <dc:creator>SanjivMeher</dc:creator>
      <dc:date>2018-08-16T20:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do you set a business rule to not run for users with a specified role?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-do-you-set-a-business-rule-to-not-run-for-users-with-a/m-p/931435#M471637</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add condition in your business rule as below:&lt;/P&gt;
&lt;P&gt;Please note:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; not(&lt;STRONG&gt;!&lt;/STRONG&gt;) symbol will always be used at start of function for business rules condition then only it will work.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;!gs.hasRole('role_name')&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/97012i03709105060FC020/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Sujata Vishwakarma&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please mark if you find this helpful.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 12:37:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-do-you-set-a-business-rule-to-not-run-for-users-with-a/m-p/931435#M471637</guid>
      <dc:creator>Sujata Vishwak1</dc:creator>
      <dc:date>2018-08-17T12:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do you set a business rule to not run for users with a specified role?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-do-you-set-a-business-rule-to-not-run-for-users-with-a/m-p/931436#M471638</link>
      <description>&lt;P&gt;Forgive me scripting is something I am starting to learn,&amp;nbsp; The statement basically means this rule does not apply to the admin role?&amp;nbsp; Is that correct?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 13:13:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-do-you-set-a-business-rule-to-not-run-for-users-with-a/m-p/931436#M471638</guid>
      <dc:creator>Bill11</dc:creator>
      <dc:date>2018-08-17T13:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do you set a business rule to not run for users with a specified role?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-do-you-set-a-business-rule-to-not-run-for-users-with-a/m-p/931437#M471639</link>
      <description>&lt;P&gt;Change 'myrole' to the actual role and this means that the BR applies if they do not have the role selected?&amp;nbsp; Just want to double check since my scripting is still al little weak.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 13:16:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-do-you-set-a-business-rule-to-not-run-for-users-with-a/m-p/931437#M471639</guid>
      <dc:creator>Bill11</dc:creator>
      <dc:date>2018-08-17T13:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do you set a business rule to not run for users with a specified role?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-do-you-set-a-business-rule-to-not-run-for-users-with-a/m-p/931438#M471640</link>
      <description>&lt;P&gt;It'll check if you&amp;nbsp;have role admin, if you don't have it the condition will be true and the business rule will execute.&lt;/P&gt;
&lt;P&gt;If you have admin role the&amp;nbsp;condition will return false and therefore not&amp;nbsp;execute.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 13:21:59 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-do-you-set-a-business-rule-to-not-run-for-users-with-a/m-p/931438#M471640</guid>
      <dc:creator>palmen</dc:creator>
      <dc:date>2018-08-17T13:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do you set a business rule to not run for users with a specified role?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-do-you-set-a-business-rule-to-not-run-for-users-with-a/m-p/931439#M471641</link>
      <description>&lt;P&gt;As a note with the with that I found out the hard way back when I started, keep in mind that the admin inherits all of the roles so this could limit that at times.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 14:24:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-do-you-set-a-business-rule-to-not-run-for-users-with-a/m-p/931439#M471641</guid>
      <dc:creator>Travers M</dc:creator>
      <dc:date>2018-08-17T14:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do you set a business rule to not run for users with a specified role?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-do-you-set-a-business-rule-to-not-run-for-users-with-a/m-p/931440#M471642</link>
      <description>&lt;P&gt;Use this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;gs.getUser().getRoles().toArray().join().indexOf("your role name goes here")&amp;gt;-1&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 14:29:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-do-you-set-a-business-rule-to-not-run-for-users-with-a/m-p/931440#M471642</guid>
      <dc:creator>Abhinay Erra</dc:creator>
      <dc:date>2018-08-17T14:29:09Z</dc:date>
    </item>
  </channel>
</rss>

