Azure SAML passing Device ID (can be seen in the Activity Details: Sign-ins > Device info

Daniel R 0 Reputation points
2024-07-04T11:47:57.76+00:00

I'm looking for a way to populate the Device ID property that can be seen in the Activity Details: Sign-ins > Device info.

It's an Electron desktop app that uses Auth0 as an IDP that connects to Azure by using SAML.

I can modify the "Request Template" and I thought that I could add the Device ID to the request template

Is there a SAML attribute that Azure is parsing to fetch the Device ID? or how can I pass the Device ID to Azure?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,366 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dillon Silzer 55,476 Reputation points
    2024-07-04T20:32:27.67+00:00

    Hi Daniel,

    You can get the device ID via Graph API:

    Example 1: Get a device

    https://video2.skills-academy.com/en-us/graph/api/device-get?view=graph-rest-1.0&tabs=http#example-1-get-a-device

    HTTP Response:

    HTTP/1.1 200 OK
    Content-type: application/json
    
    {
      "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#devices/$entity",
      "@odata.id": "https://graph.microsoft.com/v2/72f988bf-86f1-41af-91ab-2d7cd011db47/directoryObjects/000005c3-b7a6-4c61-89fc-80bf5ccfc366/Microsoft.DirectoryServices.Device",
      "accountEnabled":false,
      "deviceId":"6fa60d52-01e7-4b18-8055-4759461fc16b",
      "displayName":"DESKTOP-858MANH",
      "id": "000005c3-b7a6-4c61-89fc-80bf5ccfc366",
      "operatingSystem":"Windows",
      "operatingSystemVersion":"10.0.19043.1165"
    }
    
    

    If this is helpful please accept as answer or upvote.

    Best regards,

    Dillon Silzer, Director | Cloudaen.com | Cloudaen Computing Solutions

    0 comments No comments