<?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 is the device_id generated? in CMDB forum</title>
    <link>https://www.servicenow.com/community/cmdb-forum/how-is-the-device-id-generated/m-p/3227350#M15172</link>
    <description>&lt;P&gt;&lt;EM&gt;Hi,&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;How is the device_id generated?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The device_id in the sys_auth_policy_device_app_registry table is typically generated by ServiceNow when a device is registered as part of the authentication process. This value is unique to each device and is used to identify it within the system. The generation of the device_id may depend on the specific authentication policies and configurations in place, such as multi-factor authentication (MFA) or device-based authentication.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;How is this value populated?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The device_id is populated when a device is registered with the system. This usually happens during the first login or authentication attempt from a new device. The registration process involves storing the device's unique identifier (e.g., a hashed value derived from device attributes) in the sys_auth_policy_device_app_registry table. This ensures that the device can be recognized in subsequent authentication attempts.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;How can I check if a user is connecting from a registered device?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;To check if a user is connecting from a registered device, you can follow these steps:&lt;/EM&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;EM&gt;Navigate to Device Registration:&lt;BR /&gt;Go to All &amp;gt; Adaptive Authentication &amp;gt; Device Trust &amp;gt; Device Registration in your ServiceNow instance. This page displays all the registered devices.&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Use the filter to identify the device:&lt;BR /&gt;Use the available filters to search for the device based on the user, device name, or other attributes. Click on the AppID field to view more details about the registered device.&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Query the sys_auth_policy_device_app_registry table:&lt;BR /&gt;You can also query the table programmatically to check for registered devices. For example:&lt;/EM&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;var gr = new GlideRecord('sys_auth_policy_device_app_registry');&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;gr.addQuery('user', '&amp;lt;user_sys_id&amp;gt;'); // Replace with the user's sys_id&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;gr.query();&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;while (gr.next()) {&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gs.print('Device ID: ' + gr.device_id);&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;}&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;EM&gt;Check authentication logs:&lt;BR /&gt;Review the authentication logs to see if the device being used matches any registered devices for the user.&lt;/EM&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;EM&gt;Device App Registration Details:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;When viewing the details of a registered device, the following information is displayed:&lt;/EM&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;AppID: The unique identifier for the application.&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Device ID: The unique identifier for the device.&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;User: The user associated with the device.&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Device Name: The name of the device.&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Device Information, such as: &lt;/EM&gt;&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;OS Type&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;App Flavour&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;App Version&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;OS Version&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Device Model&lt;/EM&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;EM&gt;Additional Notes:&lt;/EM&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;If the device is not registered, the user may be prompted to register it during the authentication process, depending on the configured policies.&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Ensure that the authentication policies are properly configured to enforce device registration and validation.&lt;/EM&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;If you believe the solution provided has adequately addressed your query, could you please **mark it as 'Helpful'** and **'Accept it as a Solution'**? This will help other community members who might have the same question find the answer more easily.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your consideration.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;SPAN data-teams="true"&gt;&amp;nbsp;Selva Arun&lt;/SPAN&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Apr 2025 15:29:55 GMT</pubDate>
    <dc:creator>Selva Arun</dc:creator>
    <dc:date>2025-04-03T15:29:55Z</dc:date>
    <item>
      <title>How is the device_id generated?</title>
      <link>https://www.servicenow.com/community/cmdb-forum/how-is-the-device-id-generated/m-p/3227326#M15170</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How is this value populated?&lt;/P&gt;&lt;P&gt;sys_auth_policy_device_app_registry.device_id&lt;BR /&gt;&lt;BR /&gt;How can I check if a user is connecting from a registered device?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;N.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 15:07:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/cmdb-forum/how-is-the-device-id-generated/m-p/3227326#M15170</guid>
      <dc:creator>nestorpared</dc:creator>
      <dc:date>2025-04-03T15:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: How is the device_id generated?</title>
      <link>https://www.servicenow.com/community/cmdb-forum/how-is-the-device-id-generated/m-p/3227333#M15171</link>
      <description>&lt;P&gt;Hello &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/391513"&gt;@nestorpared&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where is this ? Any background info or screenshots ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket.&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Shivalika&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;My LinkedIn - &lt;A href="https://www.linkedin.com/in/shivalika-gupta-540346194" target="_blank"&gt;https://www.linkedin.com/in/shivalika-gupta-540346194&lt;/A&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;My youtube - &lt;A href="https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&amp;amp;si=0WynLcOwNeE" target="_blank"&gt;https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&amp;amp;si=0WynLcOwNeE&lt;/A&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;EM&gt;&lt;STRONG&gt;ISQCY&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 15:17:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/cmdb-forum/how-is-the-device-id-generated/m-p/3227333#M15171</guid>
      <dc:creator>Shivalika</dc:creator>
      <dc:date>2025-04-03T15:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: How is the device_id generated?</title>
      <link>https://www.servicenow.com/community/cmdb-forum/how-is-the-device-id-generated/m-p/3227350#M15172</link>
      <description>&lt;P&gt;&lt;EM&gt;Hi,&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;How is the device_id generated?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The device_id in the sys_auth_policy_device_app_registry table is typically generated by ServiceNow when a device is registered as part of the authentication process. This value is unique to each device and is used to identify it within the system. The generation of the device_id may depend on the specific authentication policies and configurations in place, such as multi-factor authentication (MFA) or device-based authentication.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;How is this value populated?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The device_id is populated when a device is registered with the system. This usually happens during the first login or authentication attempt from a new device. The registration process involves storing the device's unique identifier (e.g., a hashed value derived from device attributes) in the sys_auth_policy_device_app_registry table. This ensures that the device can be recognized in subsequent authentication attempts.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;How can I check if a user is connecting from a registered device?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;To check if a user is connecting from a registered device, you can follow these steps:&lt;/EM&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;EM&gt;Navigate to Device Registration:&lt;BR /&gt;Go to All &amp;gt; Adaptive Authentication &amp;gt; Device Trust &amp;gt; Device Registration in your ServiceNow instance. This page displays all the registered devices.&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Use the filter to identify the device:&lt;BR /&gt;Use the available filters to search for the device based on the user, device name, or other attributes. Click on the AppID field to view more details about the registered device.&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Query the sys_auth_policy_device_app_registry table:&lt;BR /&gt;You can also query the table programmatically to check for registered devices. For example:&lt;/EM&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;var gr = new GlideRecord('sys_auth_policy_device_app_registry');&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;gr.addQuery('user', '&amp;lt;user_sys_id&amp;gt;'); // Replace with the user's sys_id&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;gr.query();&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;while (gr.next()) {&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gs.print('Device ID: ' + gr.device_id);&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;}&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;EM&gt;Check authentication logs:&lt;BR /&gt;Review the authentication logs to see if the device being used matches any registered devices for the user.&lt;/EM&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;EM&gt;Device App Registration Details:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;When viewing the details of a registered device, the following information is displayed:&lt;/EM&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;AppID: The unique identifier for the application.&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Device ID: The unique identifier for the device.&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;User: The user associated with the device.&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Device Name: The name of the device.&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Device Information, such as: &lt;/EM&gt;&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;OS Type&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;App Flavour&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;App Version&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;OS Version&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Device Model&lt;/EM&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;EM&gt;Additional Notes:&lt;/EM&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;If the device is not registered, the user may be prompted to register it during the authentication process, depending on the configured policies.&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;Ensure that the authentication policies are properly configured to enforce device registration and validation.&lt;/EM&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;If you believe the solution provided has adequately addressed your query, could you please **mark it as 'Helpful'** and **'Accept it as a Solution'**? This will help other community members who might have the same question find the answer more easily.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your consideration.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;SPAN data-teams="true"&gt;&amp;nbsp;Selva Arun&lt;/SPAN&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 15:29:55 GMT</pubDate>
      <guid>https://www.servicenow.com/community/cmdb-forum/how-is-the-device-id-generated/m-p/3227350#M15172</guid>
      <dc:creator>Selva Arun</dc:creator>
      <dc:date>2025-04-03T15:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: How is the device_id generated?</title>
      <link>https://www.servicenow.com/community/cmdb-forum/how-is-the-device-id-generated/m-p/3227528#M15175</link>
      <description>&lt;P&gt;May I know your usecase?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 18:38:46 GMT</pubDate>
      <guid>https://www.servicenow.com/community/cmdb-forum/how-is-the-device-id-generated/m-p/3227528#M15175</guid>
      <dc:creator>Randheer Singh</dc:creator>
      <dc:date>2025-04-03T18:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: How is the device_id generated?</title>
      <link>https://www.servicenow.com/community/cmdb-forum/how-is-the-device-id-generated/m-p/3228182#M15183</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;the usercase is that I need to be able to tell if the user viewing an incident (already logged in) or using login.do (not logged in) is doing so from an authenticated device.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 12:01:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/cmdb-forum/how-is-the-device-id-generated/m-p/3228182#M15183</guid>
      <dc:creator>nestorpared</dc:creator>
      <dc:date>2025-04-04T12:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: How is the device_id generated?</title>
      <link>https://www.servicenow.com/community/cmdb-forum/how-is-the-device-id-generated/m-p/3228183#M15184</link>
      <description>&lt;P&gt;&lt;SPAN&gt;sys_auth_policy_device_app_registry.device_id &amp;lt;- that might be part of adaptive authentication&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 12:02:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/cmdb-forum/how-is-the-device-id-generated/m-p/3228183#M15184</guid>
      <dc:creator>nestorpared</dc:creator>
      <dc:date>2025-04-04T12:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: How is the device_id generated?</title>
      <link>https://www.servicenow.com/community/cmdb-forum/how-is-the-device-id-generated/m-p/3228193#M15185</link>
      <description>&lt;P&gt;That looks like an AI generated reply =]&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;EM&gt;How is the device_id generated?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The device_id in the sys_auth_policy_device_app_registry table is typically generated by ServiceNow when a device is registered as part of the authentication process. This value is unique to each device and is used to identify it within the system. The generation of the device_id may depend on the specific authentication policies and configurations in place, such as multi-factor authentication (MFA) or device-based authentication.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;"&lt;BR /&gt;&lt;BR /&gt;That is not answering the question, maybe is my bad because I assumed it was a given:&lt;BR /&gt;I need to know that via script, I need to be able to tell that via script.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 12:05:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/cmdb-forum/how-is-the-device-id-generated/m-p/3228193#M15185</guid>
      <dc:creator>nestorpared</dc:creator>
      <dc:date>2025-04-04T12:05:27Z</dc:date>
    </item>
  </channel>
</rss>

