Home > Back-end >  User agent from Azure Sign-ins via MS Graph (PowerShell)
User agent from Azure Sign-ins via MS Graph (PowerShell)

Time:03-19

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

CodePudding user response:

UserAgent doesn't exist on the default 1.0 Graph endpoint, but it does on the beta endpoint: https://docs.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.

  • Related