'User agent from Azure Sign-ins via MS Graph (PowerShell)
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
Solution 1:[1]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | DarkMoon |
