Try this for the query:
https://graph.microsoft.com/v1.0/auditLogs/signIns?$top=100&$filter=deviceDetail/isManaged+eq+false
Should work in both /beta and /v1.0.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Im trying to identify users with BYOD devices accessing corporate resources. Currently we have no byod controls and would like to see who and which devices are connecting.
I thought something like this may work
https://graph.microsoft.com/beta/auditLogs/signIns?$top=100&$filter=deviceDetail/isManaged eq false&$select=userDisplayName,deviceDetail/operatingSystem,deviceDetail/isManaged
But get an error saying "Bad request , select options not supported".
Im new to this so struggle a bit when it goes wrong. Can anyone help, oh and is there any way I can get this into Excel?
Thanks in advance
:)
PS used ps to do this but obvs they are registered and I want to find those that we dont know about if that makes sense lol
Get-AzureADDevice -All $true -Filter "IsManaged eq false and AccountEnabled eq true" | ft displayname, objectType, accountenabled,deviceostype,ismanaged,profiletype, ApproximateLastLogonTimeStamp -AutoSize
Try this for the query:
https://graph.microsoft.com/v1.0/auditLogs/signIns?$top=100&$filter=deviceDetail/isManaged+eq+false
Should work in both /beta and /v1.0.