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

Roman King 21 Reputation points


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

    @Roman King Thank you for reaching out to us.

    Noticed you have posted similar query in stackoverflow, 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:

    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