User agent from Azure Sign-ins via MS Graph (PowerShell)

Roman King 21 Reputation points
2022-03-16T18:38:33.597+00:00

Hello

I am retrieving user sign-ins from Azure using MS Graph (PowerShell)
Almost all the information I need I can get except "User Agent" that I can see via web.
Is there any way to get that information?
The command I am using is Get-MgAuditLogSignIn

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

Accepted answer
  1. Givary-MSFT 28,571 Reputation points Microsoft Employee
    2022-03-17T08:58:35.243+00:00

    @Roman King Thank you for reaching out to us.

    Noticed you have posted similar query in stackoverflow https://stackoverflow.com/questions/71502731/user-agent-from-azure-sign-ins-via-ms-graph-powershell, where one of the community member have answered it.

    Reviewed the answer and looks good to me, i am updating the same here if anyone looking for similar issue on QnA will help them.

    UserAgent doesn't exist on the default 1.0 Graph endpoint, but it does on the beta endpoint:
    https://learn.microsoft.com/en-au/graph/api/resources/signin?view=graph-rest-beta

    So after using Connect-MgGraph, enter Select-MgProfile -Name beta and try your Get-MgAuditLogSignIn again; you should have a UserAgent property.

    Let me know if you have any questions.


0 additional answers

Sort by: Most helpful