<?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 Force specific view for users with itil role in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/force-specific-view-for-users-with-itil-role/m-p/3174103#M1178432</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need to force a view for all users with the ITIL-role on change and problem tables. They should not be able to switch views for these tables but we do not want to remove the view_changer role as we want them to be able to change views in other tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the past i've accomplished this using an advanced view rule but Servicenow now states that this is is not going to enforce the view (see&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0997033" target="_self"&gt;KB0997033&lt;/A&gt;).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Does anyone know how to accomplish this. That is, forcing a view on specific tables without removing the view_changer role from users?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2025 10:04:35 GMT</pubDate>
    <dc:creator>oliolio</dc:creator>
    <dc:date>2025-02-11T10:04:35Z</dc:date>
    <item>
      <title>Force specific view for users with itil role</title>
      <link>https://www.servicenow.com/community/developer-forum/force-specific-view-for-users-with-itil-role/m-p/3174103#M1178432</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need to force a view for all users with the ITIL-role on change and problem tables. They should not be able to switch views for these tables but we do not want to remove the view_changer role as we want them to be able to change views in other tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the past i've accomplished this using an advanced view rule but Servicenow now states that this is is not going to enforce the view (see&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0997033" target="_self"&gt;KB0997033&lt;/A&gt;).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Does anyone know how to accomplish this. That is, forcing a view on specific tables without removing the view_changer role from users?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 10:04:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/force-specific-view-for-users-with-itil-role/m-p/3174103#M1178432</guid>
      <dc:creator>oliolio</dc:creator>
      <dc:date>2025-02-11T10:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Force specific view for users with itil role</title>
      <link>https://www.servicenow.com/community/developer-forum/force-specific-view-for-users-with-itil-role/m-p/3174113#M1178436</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/135085"&gt;@oliolio&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think it's feasible&lt;/P&gt;
&lt;P&gt;If users have view_changer then they can switch the view&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 10:09:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/force-specific-view-for-users-with-itil-role/m-p/3174113#M1178436</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-02-11T10:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Force specific view for users with itil role</title>
      <link>https://www.servicenow.com/community/developer-forum/force-specific-view-for-users-with-itil-role/m-p/3174124#M1178439</link>
      <description>&lt;P&gt;This is not helpful.&lt;BR /&gt;&lt;BR /&gt;Edit: Since forcing a view for users with a view rule when not using advanced view rule works even with the view_changer role it should absolutely be possible. It has also worked in the past.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 10:21:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/force-specific-view-for-users-with-itil-role/m-p/3174124#M1178439</guid>
      <dc:creator>oliolio</dc:creator>
      <dc:date>2025-02-11T10:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Force specific view for users with itil role</title>
      <link>https://www.servicenow.com/community/developer-forum/force-specific-view-for-users-with-itil-role/m-p/3174134#M1178440</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/135085"&gt;@oliolio&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If KB is not helping, then log a now support case.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 10:20:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/force-specific-view-for-users-with-itil-role/m-p/3174134#M1178440</guid>
      <dc:creator>Dr Atul G- LNG</dc:creator>
      <dc:date>2025-02-11T10:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Force specific view for users with itil role</title>
      <link>https://www.servicenow.com/community/developer-forum/force-specific-view-for-users-with-itil-role/m-p/3174137#M1178442</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/135085"&gt;@oliolio&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is not possible.&lt;/P&gt;
&lt;P&gt;1 way is use client script and check if view is changed then show info to user and change the view again using switchView()&lt;/P&gt;
&lt;P&gt;&lt;A href="https://servicenowguru.com/client-scripts-scripting/change-form-view-client-script/" target="_blank" rel="noopener"&gt;Change Form View Client Script&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 10:21:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/force-specific-view-for-users-with-itil-role/m-p/3174137#M1178442</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-02-11T10:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Force specific view for users with itil role</title>
      <link>https://www.servicenow.com/community/developer-forum/force-specific-view-for-users-with-itil-role/m-p/3174284#M1178487</link>
      <description>&lt;P&gt;So i managed to figure it out.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What the old "Advanced" view rules could achieve can now be done using Navigation handlers.&amp;nbsp;&lt;BR /&gt;Examples from servicenow available here: &lt;A href="https://www.servicenow.com/docs/bundle/yokohama-platform-user-interface/page/administer/navigation-and-ui/concept/c_NavigationHandler.html" target="_self"&gt;Navigation handlers&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;NOTE: There's an error in the example script where the GlideRecord variable does not match the variable later used in the script.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;To set the view as forced use&amp;nbsp;&lt;SPAN&gt;g_uri.&lt;/SPAN&gt;&lt;SPAN&gt;set&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'sysparm_view_forced'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'true'&lt;/SPAN&gt;&lt;SPAN&gt;) .&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 12:12:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/force-specific-view-for-users-with-itil-role/m-p/3174284#M1178487</guid>
      <dc:creator>oliolio</dc:creator>
      <dc:date>2025-02-11T12:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Force specific view for users with itil role</title>
      <link>https://www.servicenow.com/community/developer-forum/force-specific-view-for-users-with-itil-role/m-p/3174287#M1178490</link>
      <description>&lt;P&gt;Hi Ankur!&lt;BR /&gt;&lt;BR /&gt;I actually managed to get it solved. If you're interested you can view my comment set as solution for the question.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The Navigation handlers gives full ability to handle the views as the old Advanced view rules could.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 12:14:47 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/force-specific-view-for-users-with-itil-role/m-p/3174287#M1178490</guid>
      <dc:creator>oliolio</dc:creator>
      <dc:date>2025-02-11T12:14:47Z</dc:date>
    </item>
  </channel>
</rss>

