<?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: how to manage group sys-id in code promotion from sub production - production ? in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/how-to-manage-group-sys-id-in-code-promotion-from-sub-production/m-p/3545125#M6939</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/349783"&gt;@MThomas1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;My recommendation would be not to promote non-prod data to production. Instead, promote the updated configuration/setup to Prod and execute the job there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;For delta data in non-prod, the sys_id&lt;/SPAN&gt;&lt;SPAN&gt; values will be different, which is expected and acceptable since those records are intended only for testing purposes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, some clients prefer that production data does not match sub-production environments exactly. Because of this, we generally exclude the user table from the clone exclude list.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 May 2026 17:50:32 GMT</pubDate>
    <dc:creator>Tanushree Maiti</dc:creator>
    <dc:date>2026-05-18T17:50:32Z</dc:date>
    <item>
      <title>how to manage group sys-id in code promotion from sub production - production ?</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-manage-group-sys-id-in-code-promotion-from-sub-production/m-p/3544109#M6916</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Our user and group are managed thru ActiveDirectory. Groups created in AD and sync to SN application.&lt;/P&gt;&lt;P&gt;we are doing a project , development in sub production , and promoting to production.&lt;/P&gt;&lt;P&gt;Group sysids are using in code. So, DEV/test&amp;nbsp; group- sysid&amp;nbsp; is different from Prod group-sysid .&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is the best approach to address this?&amp;nbsp; we want to keep AD sync for group/user management.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2026 20:13:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-manage-group-sys-id-in-code-promotion-from-sub-production/m-p/3544109#M6916</guid>
      <dc:creator>MThomas1</dc:creator>
      <dc:date>2026-05-15T20:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to manage group sys-id in code promotion from sub production - production ?</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-manage-group-sys-id-in-code-promotion-from-sub-production/m-p/3544112#M6917</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/349783"&gt;@MThomas1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Generally, foundation data records (like group,user,location, BU etc) - BAU creates in the Production environment first as per business request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same data is then synchronized across all sub-production environments.&lt;/P&gt;&lt;P&gt;Moving &lt;FONT color="#FF0000"&gt;foundation data from sub-production to Production&lt;/FONT&gt; &lt;STRONG&gt;is not recommended&lt;/STRONG&gt; in a live instance, as it may lead to data inconsistencies or overwrite existing production configurations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also many integrations and backend workflows are mapped to specific sys_ids. Altering them can instantly break CMDB reconciliations, user provisioning, or catalog approvals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2026 20:24:02 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-manage-group-sys-id-in-code-promotion-from-sub-production/m-p/3544112#M6917</guid>
      <dc:creator>Tanushree Maiti</dc:creator>
      <dc:date>2026-05-15T20:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to manage group sys-id in code promotion from sub production - production ?</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-manage-group-sys-id-in-code-promotion-from-sub-production/m-p/3545058#M6933</link>
      <description>&lt;P&gt;Acutally , we did created groups ( for a specific project) in AD- production first. Then did export/import the groups to subproduction and used in code.&lt;/P&gt;&lt;P&gt;so when we promote code to production same sysid will exist in all instaces..&amp;nbsp;&lt;/P&gt;&lt;P&gt;our problem is AD sync to prod and DEV ( same data) , so DEV has new groups with DEV sys id .&amp;nbsp;&lt;/P&gt;&lt;P&gt;now, future AD-DEV user sync will not work as expected.&lt;/P&gt;&lt;P&gt;So, how about after code promotion we replace the sysid accoding to each instace? SO, we can keep the groups as AD created them?&lt;/P&gt;&lt;P&gt;Just thinking of possible options to address situation.&lt;/P&gt;&lt;P&gt;Thank you and appreciate your guidance as always.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2026 15:53:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-manage-group-sys-id-in-code-promotion-from-sub-production/m-p/3545058#M6933</guid>
      <dc:creator>MThomas1</dc:creator>
      <dc:date>2026-05-18T15:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to manage group sys-id in code promotion from sub production - production ?</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-manage-group-sys-id-in-code-promotion-from-sub-production/m-p/3545074#M6936</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/349783"&gt;@MThomas1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just let me know one thing - do you not have non-prod endpoint&amp;nbsp; for this integration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2026 16:24:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-manage-group-sys-id-in-code-promotion-from-sub-production/m-p/3545074#M6936</guid>
      <dc:creator>Tanushree Maiti</dc:creator>
      <dc:date>2026-05-18T16:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to manage group sys-id in code promotion from sub production - production ?</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-manage-group-sys-id-in-code-promotion-from-sub-production/m-p/3545075#M6937</link>
      <description>&lt;P&gt;It is never recommended to hard code a sys_id for the exact reason that you are running into. You should convert the hard coded sys_id into a system property and reference the system property within the code. You can then setup a fix script to run as part of the deployment that will set the system properties correctly in the target instance.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This is effectively what you mention in your reply about replacing it in each instance except that's really hard to do when it appears in code but very easy to do when you are instead setting the value of a system property.&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2026 16:26:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-manage-group-sys-id-in-code-promotion-from-sub-production/m-p/3545075#M6937</guid>
      <dc:creator>John Gilmore</dc:creator>
      <dc:date>2026-05-18T16:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to manage group sys-id in code promotion from sub production - production ?</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-manage-group-sys-id-in-code-promotion-from-sub-production/m-p/3545114#M6938</link>
      <description>&lt;P&gt;Sorry, i am not sure if I understood your question correctly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;AD integration -&amp;gt; endpoint to Prd and DEV - YES&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2026 17:31:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-manage-group-sys-id-in-code-promotion-from-sub-production/m-p/3545114#M6938</guid>
      <dc:creator>MThomas1</dc:creator>
      <dc:date>2026-05-18T17:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to manage group sys-id in code promotion from sub production - production ?</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-manage-group-sys-id-in-code-promotion-from-sub-production/m-p/3545125#M6939</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/349783"&gt;@MThomas1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;My recommendation would be not to promote non-prod data to production. Instead, promote the updated configuration/setup to Prod and execute the job there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;For delta data in non-prod, the sys_id&lt;/SPAN&gt;&lt;SPAN&gt; values will be different, which is expected and acceptable since those records are intended only for testing purposes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, some clients prefer that production data does not match sub-production environments exactly. Because of this, we generally exclude the user table from the clone exclude list.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2026 17:50:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-manage-group-sys-id-in-code-promotion-from-sub-production/m-p/3545125#M6939</guid>
      <dc:creator>Tanushree Maiti</dc:creator>
      <dc:date>2026-05-18T17:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to manage group sys-id in code promotion from sub production - production ?</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-manage-group-sys-id-in-code-promotion-from-sub-production/m-p/3545128#M6940</link>
      <description>&lt;DIV&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is a common challenge when using AD-synced groups across multiple ServiceNow environments. Since sys_ids are instance-specific, they will always differ between DEV/Test and PROD, which leads to issues when they are referenced directly in code.&lt;/P&gt;&lt;P&gt;The recommended approach is to avoid using sys_ids in scripts. Instead, you can:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Fetch the group dynamically using a stable attribute like group name or another unique field synced from AD (for example, samAccountName).&lt;/LI&gt;&lt;LI&gt;Alternatively, store the sys_id in a system property per environment and retrieve it dynamically in the code.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;From an architectural standpoint, it is also better to treat AD/PROD as the source of truth for users and groups, and propagate that data to lower environments (via clone or controlled data sync). This helps maintain consistency and avoids mismatches during promotions.&lt;/P&gt;&lt;P&gt;In short, the key is to design the solution in a way that does not rely on sys_id being the same across environments, since that cannot be guaranteed.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 18 May 2026 17:57:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-manage-group-sys-id-in-code-promotion-from-sub-production/m-p/3545128#M6940</guid>
      <dc:creator>SandhyaRanG</dc:creator>
      <dc:date>2026-05-18T17:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to manage group sys-id in code promotion from sub production - production ?</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-to-manage-group-sys-id-in-code-promotion-from-sub-production/m-p/3546410#M6969</link>
      <description>&lt;P&gt;Thank you all for your guidance , as always , appreciate the support from community.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2026 13:40:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-to-manage-group-sys-id-in-code-promotion-from-sub-production/m-p/3546410#M6969</guid>
      <dc:creator>MThomas1</dc:creator>
      <dc:date>2026-05-20T13:40:07Z</dc:date>
    </item>
  </channel>
</rss>

