<?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: need to fetch removed users list from itil role in Virtual Agent forum</title>
    <link>https://www.servicenow.com/community/virtual-agent-forum/need-to-fetch-removed-users-list-from-itil-role/m-p/3514974#M25221</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/629286"&gt;@fknell&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Users Who Had ITIL Role Removed&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;This report tracks removals, which is crucial for license reclamation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Table: Deleted Records (sys_audit_delete)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Filters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Table name | is | sys_user_has_role&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Payload | Contains | itil&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deleted | on or after | 2025-01-01 00:00:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the above query is working but here i need user name suppose to be fetch from list view.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;pls assist me on this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Mar 2026 05:59:11 GMT</pubDate>
    <dc:creator>Purushotham Ga2</dc:creator>
    <dc:date>2026-03-26T05:59:11Z</dc:date>
    <item>
      <title>need to fetch removed users list from itil role</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/need-to-fetch-removed-users-list-from-itil-role/m-p/3514516#M25206</link>
      <description>&lt;P&gt;HI Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;How to create a report showing users with ITIL since 2025, as well as users who had ITIL roles removed.&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Please assist me on this.&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 Mar 2026 13:46:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/need-to-fetch-removed-users-list-from-itil-role/m-p/3514516#M25206</guid>
      <dc:creator>Purushotham Ga2</dc:creator>
      <dc:date>2026-03-25T13:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: need to fetch removed users list from itil role</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/need-to-fetch-removed-users-list-from-itil-role/m-p/3514532#M25207</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/332921"&gt;@Purushotham Ga2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;DIV&gt;&lt;H3&gt;Users who have ITIL since 2025 (currently assigned)&lt;/H3&gt;&lt;P&gt;Create a report on &lt;STRONG&gt;&lt;CODE&gt;sys_user_has_role&lt;/CODE&gt;&lt;/STRONG&gt;table with:&lt;BR /&gt;&lt;STRONG&gt;Role = itil&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Created on ≥ 01‑Jan‑2025&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;SPAN&gt;If this response was helpful, please consider marking it as &lt;STRONG&gt;Correct&lt;/STRONG&gt; and &lt;STRONG&gt;Helpful&lt;/STRONG&gt;. You may mark more than one reply as an accepted solution&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 Mar 2026 14:04:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/need-to-fetch-removed-users-list-from-itil-role/m-p/3514532#M25207</guid>
      <dc:creator>Huynh Loc</dc:creator>
      <dc:date>2026-03-25T14:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: need to fetch removed users list from itil role</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/need-to-fetch-removed-users-list-from-itil-role/m-p/3514536#M25208</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Users Added to ITIL Since 2025&lt;/STRONG&gt;&lt;BR /&gt;This report shows users who were assigned the 'itil' role from 2025 onwards.&lt;BR /&gt;Table: User Role (sys_user_has_role)&lt;BR /&gt;Conditions:&lt;BR /&gt;Role | Name | is | itil&lt;BR /&gt;Created | on or after | 2025-01-01 00:00:00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Users Who Had ITIL Role Removed&lt;/STRONG&gt;&lt;BR /&gt;This report tracks removals, which is crucial for license reclamation.&lt;BR /&gt;Table: Deleted Records (sys_audit_delete)&lt;BR /&gt;Filters:&lt;BR /&gt;Table name | is | sys_user_has_role&lt;BR /&gt;Payload | Contains | itil&lt;BR /&gt;Deleted | on or after | 2025-01-01 00:00:00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Refer:&amp;nbsp;&lt;A href="https://www.servicenow.com/community/platform-analytics-forum/is-there-a-way-to-report-on-users-who-have-had-the-itil-license/m-p/2929736#:~:text=2%20REPLIES,search%20within%20the%20payload%20field" target="_blank"&gt;https://www.servicenow.com/community/platform-analytics-forum/is-there-a-way-to-report-on-users-who-have-had-the-itil-license/m-p/2929736#:~:text=2%20REPLIES,search%20within%20the%20payload%20field&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2026 14:06:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/need-to-fetch-removed-users-list-from-itil-role/m-p/3514536#M25208</guid>
      <dc:creator>Tanushree Maiti</dc:creator>
      <dc:date>2026-03-25T14:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: need to fetch removed users list from itil role</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/need-to-fetch-removed-users-list-from-itil-role/m-p/3514797#M25216</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/287542"&gt;@Tanushree Maiti&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your assistance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;whatever the above query is working . here we need fetch username.&lt;/P&gt;&lt;P&gt;please assist me on this.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2026 21:00:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/need-to-fetch-removed-users-list-from-itil-role/m-p/3514797#M25216</guid>
      <dc:creator>Purushotham Ga2</dc:creator>
      <dc:date>2026-03-25T21:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: need to fetch removed users list from itil role</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/need-to-fetch-removed-users-list-from-itil-role/m-p/3514813#M25217</link>
      <description>&lt;P&gt;It's the first column in the default view of the table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sys_user_role.jpg" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/507688i8B534F0CC480DB24/image-size/large?v=v2&amp;amp;px=999" role="button" title="sys_user_role.jpg" alt="sys_user_role.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2026 21:43:05 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/need-to-fetch-removed-users-list-from-itil-role/m-p/3514813#M25217</guid>
      <dc:creator>fknell</dc:creator>
      <dc:date>2026-03-25T21:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: need to fetch removed users list from itil role</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/need-to-fetch-removed-users-list-from-itil-role/m-p/3514974#M25221</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/629286"&gt;@fknell&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Users Who Had ITIL Role Removed&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;This report tracks removals, which is crucial for license reclamation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Table: Deleted Records (sys_audit_delete)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Filters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Table name | is | sys_user_has_role&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Payload | Contains | itil&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deleted | on or after | 2025-01-01 00:00:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the above query is working but here i need user name suppose to be fetch from list view.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;pls assist me on this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2026 05:59:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/need-to-fetch-removed-users-list-from-itil-role/m-p/3514974#M25221</guid>
      <dc:creator>Purushotham Ga2</dc:creator>
      <dc:date>2026-03-26T05:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: need to fetch removed users list from itil role</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/need-to-fetch-removed-users-list-from-itil-role/m-p/3514979#M25222</link>
      <description>&lt;SECTION class="text-token-text-primary w-full focus:outline-none [--shadow-height:45px] has-data-writing-block:pointer-events-none has-data-writing-block:-mt-(--shadow-height) has-data-writing-block:pt-(--shadow-height) [&amp;amp;:has([data-writing-block])&amp;gt;*]:pointer-events-auto scroll-mt-(--header-height)" dir="auto" data-turn="user" data-scroll-anchor="false" data-testid="conversation-turn-9" data-turn-id="f9fcedcc-e8f9-4d89-b0c0-9570731cc306"&gt;&lt;/SECTION&gt;
&lt;SECTION class="text-token-text-primary w-full focus:outline-none [--shadow-height:45px] has-data-writing-block:pointer-events-none has-data-writing-block:-mt-(--shadow-height) has-data-writing-block:pt-(--shadow-height) [&amp;amp;:has([data-writing-block])&amp;gt;*]:pointer-events-auto scroll-mt-[calc(var(--header-height)+min(200px,max(70px,20svh)))]" dir="auto" data-turn="assistant" data-scroll-anchor="true" data-testid="conversation-turn-10" data-turn-id="request-WEB:4d77aad4-0fb9-4ebf-bc26-592504f51b30-4"&gt;
&lt;DIV class="text-base my-auto mx-auto pb-10 [--thread-content-margin:var(--thread-content-margin-xs,calc(var(--spacing)*4))] @w-sm/main:[--thread-content-margin:var(--thread-content-margin-sm,calc(var(--spacing)*6))] @w-lg/main:[--thread-content-margin:var(--thread-content-margin-lg,calc(var(--spacing)*16))] px-(--thread-content-margin)"&gt;
&lt;DIV class="[--thread-content-max-width:40rem] @w-lg/main:[--thread-content-max-width:48rem] mx-auto max-w-(--thread-content-max-width) flex-1 group/turn-messages focus-visible:outline-hidden relative flex w-full min-w-0 flex-col agent-turn"&gt;
&lt;DIV class="flex max-w-full flex-col gap-4 grow"&gt;
&lt;DIV class="min-h-8 text-message relative flex w-full flex-col items-end gap-2 text-start break-words whitespace-normal outline-none keyboard-focused:focus-ring [.text-message+&amp;amp;]:mt-1" dir="auto" tabindex="0" data-turn-start-message="true" data-message-model-slug="gpt-5-3" data-message-id="d571c86e-03b8-4eaf-9e46-61d95554e529" data-message-author-role="assistant"&gt;
&lt;DIV class="flex w-full flex-col gap-1 empty:hidden"&gt;
&lt;DIV class="markdown prose dark:prose-invert w-full wrap-break-word light markdown-new-styling"&gt;
&lt;P data-end="15" data-start="0"&gt;Hi Purushotham,&lt;/P&gt;
&lt;P data-end="146" data-start="17"&gt;You can get this information by using the &lt;STRONG data-end="96" data-start="59"&gt;User Has Role (sys_user_has_role)&lt;/STRONG&gt; table along with the &lt;STRONG data-end="139" data-start="118"&gt;Audit (sys_audit)&lt;/STRONG&gt; table.&lt;/P&gt;
&lt;P data-end="386" data-start="148"&gt;For users who currently have the ITIL role since 2025, you can create a report on &lt;STRONG data-end="247" data-start="230"&gt;User Has Role&lt;/STRONG&gt; with conditions like Role = ITIL and Created on after 01 Jan 2025. This will show users who were assigned the ITIL role from 2025 onwards.&lt;/P&gt;
&lt;P data-end="791" data-start="388"&gt;For users whose ITIL role was removed, you need to check the &lt;STRONG data-end="464" data-start="449"&gt;Audit table&lt;/STRONG&gt;, because when a role is removed, the record is deleted from sys_user_has_role and only the audit/history keeps the track. Create a report on the Audit table with conditions such as Table name = sys_user_has_role, Old value = ITIL, and Created on after 01 Jan 2025. This will show who had the ITIL role and when it was removed.&lt;/P&gt;
&lt;P data-end="1055" data-start="793"&gt;One important thing to verify is whether auditing is enabled on the &lt;STRONG data-end="882" data-start="861"&gt;sys_user_has_role&lt;/STRONG&gt; table. If auditing is not enabled, then past removed roles will not be available. In that case, you may need to check &lt;STRONG data-end="1021" data-start="1001"&gt;sys_history_line&lt;/STRONG&gt; or enable auditing going forward.&lt;/P&gt;
&lt;P data-end="1195" data-start="1057"&gt;A practical approach is to create two reports (ITIL assigned and ITIL removed) and place them on a dashboard so you can track both easily.&lt;/P&gt;
&lt;P data-is-only-node="" data-is-last-node="" data-end="1316" data-start="1197"&gt;Hope this helps. Let me know if you want a background script to fetch both assigned and removed users in a single list.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/SECTION&gt;</description>
      <pubDate>Thu, 26 Mar 2026 06:13:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/need-to-fetch-removed-users-list-from-itil-role/m-p/3514979#M25222</guid>
      <dc:creator>Vaishnavi Lathk</dc:creator>
      <dc:date>2026-03-26T06:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: need to fetch removed users list from itil role</title>
      <link>https://www.servicenow.com/community/virtual-agent-forum/need-to-fetch-removed-users-list-from-itil-role/m-p/3519079#M25346</link>
      <description>&lt;P&gt;Hi Vaishnavi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please share background script for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2026 15:23:48 GMT</pubDate>
      <guid>https://www.servicenow.com/community/virtual-agent-forum/need-to-fetch-removed-users-list-from-itil-role/m-p/3519079#M25346</guid>
      <dc:creator>Purushotham Ga2</dc:creator>
      <dc:date>2026-04-02T15:23:48Z</dc:date>
    </item>
  </channel>
</rss>

