<?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 Re: Can we apply a custom theme to specific group members? in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/can-we-apply-a-custom-theme-to-specific-group-members/m-p/3250377#M1198896</link>
    <description>&lt;P&gt;&lt;STRONG&gt;what should be table, trigger condition for Business Rule&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;or for a&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;scheduled script what should be trigger&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Apr 2025 13:15:06 GMT</pubDate>
    <dc:creator>SaadK</dc:creator>
    <dc:date>2025-04-29T13:15:06Z</dc:date>
    <item>
      <title>Can we apply a custom theme to specific group members?</title>
      <link>https://www.servicenow.com/community/developer-forum/can-we-apply-a-custom-theme-to-specific-group-members/m-p/3249543#M1198692</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have created a custom theme using the theme builder. I need to apply this theme to only one group, the 'TEST Group'. How can we achieve this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 17:16:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-we-apply-a-custom-theme-to-specific-group-members/m-p/3249543#M1198692</guid>
      <dc:creator>SaadK</dc:creator>
      <dc:date>2025-04-28T17:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can we apply a custom theme to specific group members?</title>
      <link>https://www.servicenow.com/community/developer-forum/can-we-apply-a-custom-theme-to-specific-group-members/m-p/3249874#M1198761</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/803250"&gt;@SaadK&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try below steps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;Create a Custom Theme&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;You mentioned this is already done using the &lt;STRONG&gt;Theme Builder&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;Find the Theme Sys ID&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;Navigate to &lt;STRONG&gt;System UI &amp;gt; Themes&lt;/STRONG&gt;, and copy the &lt;STRONG&gt;sys_id&lt;/STRONG&gt; of your custom theme.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;Create a Script to Apply Theme for TEST Group Users&lt;/STRONG&gt;: You’ll need to use a &lt;STRONG&gt;Business Rule&lt;/STRONG&gt; or a &lt;STRONG&gt;scheduled script&lt;/STRONG&gt; to assign a &lt;STRONG&gt;UI Preference&lt;/STRONG&gt; to all users in the "TEST Group".&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Example Script to Assign Theme:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var group = new GlideRecord('sys_user_group');&lt;BR /&gt;group.addQuery('name', 'TEST Group');&lt;BR /&gt;group.query();&lt;BR /&gt;if (group.next()) {&lt;BR /&gt;var groupId = group.sys_id.toString();&lt;BR /&gt;&lt;BR /&gt;var userGroup = new GlideRecord('sys_user_grmember');&lt;BR /&gt;userGroup.addQuery('group', groupId);&lt;BR /&gt;userGroup.query();&lt;BR /&gt;&lt;BR /&gt;while (userGroup.next()) {&lt;BR /&gt;var userId = userGroup.user.toString();&lt;BR /&gt;&lt;BR /&gt;// Check if preference already exists&lt;BR /&gt;var pref = new GlideRecord('sys_ui_pref');&lt;BR /&gt;pref.addQuery('user', userId);&lt;BR /&gt;pref.addQuery('name', 'glide.ui.theme');&lt;BR /&gt;pref.query();&lt;BR /&gt;if (!pref.next()) {&lt;BR /&gt;var newPref = new GlideRecord('sys_ui_pref');&lt;BR /&gt;newPref.initialize();&lt;BR /&gt;newPref.user = userId;&lt;BR /&gt;newPref.name = 'glide.ui.theme';&lt;BR /&gt;newPref.value = '&amp;lt;YOUR_THEME_SYS_ID&amp;gt;'; // Replace with your theme's sys_id&lt;BR /&gt;newPref.insert();&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Test the Users in the TEST Group&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;Ask a user from the TEST Group to log in.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;The custom theme should be applied for them.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If my response helped, please hit the &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;Thumb Icon and accept the solution so that it benefits future readers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Pratik&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 05:58:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-we-apply-a-custom-theme-to-specific-group-members/m-p/3249874#M1198761</guid>
      <dc:creator>pratikjagtap</dc:creator>
      <dc:date>2025-04-29T05:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can we apply a custom theme to specific group members?</title>
      <link>https://www.servicenow.com/community/developer-forum/can-we-apply-a-custom-theme-to-specific-group-members/m-p/3250371#M1198895</link>
      <description>&lt;P&gt;What should be condiion, table &amp;amp; trigger for&amp;nbsp;&lt;STRONG&gt;Business Rule&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&amp;amp; for a&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;scheduled script what should be trigger.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 13:14:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-we-apply-a-custom-theme-to-specific-group-members/m-p/3250371#M1198895</guid>
      <dc:creator>SaadK</dc:creator>
      <dc:date>2025-04-29T13:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can we apply a custom theme to specific group members?</title>
      <link>https://www.servicenow.com/community/developer-forum/can-we-apply-a-custom-theme-to-specific-group-members/m-p/3250377#M1198896</link>
      <description>&lt;P&gt;&lt;STRONG&gt;what should be table, trigger condition for Business Rule&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;or for a&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;scheduled script what should be trigger&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 13:15:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-we-apply-a-custom-theme-to-specific-group-members/m-p/3250377#M1198896</guid>
      <dc:creator>SaadK</dc:creator>
      <dc:date>2025-04-29T13:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can we apply a custom theme to specific group members?</title>
      <link>https://www.servicenow.com/community/developer-forum/can-we-apply-a-custom-theme-to-specific-group-members/m-p/3250620#M1198954</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/803250"&gt;@SaadK&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a Business Rule on the sys_user_grmember table (when a user is added to TEST Group):&lt;/P&gt;&lt;P&gt;When: Insert&lt;/P&gt;&lt;P&gt;Condition: group.name == "TEST Group"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If my response helped, please hit the &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;Thumb Icon and accept the solution so that it benefits future readers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Pratik&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 16:14:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/can-we-apply-a-custom-theme-to-specific-group-members/m-p/3250620#M1198954</guid>
      <dc:creator>pratikjagtap</dc:creator>
      <dc:date>2025-04-29T16:14:28Z</dc:date>
    </item>
  </channel>
</rss>

