Hi @Gareth
Thank you for posting this in Microsoft Q&A.
I understand you want get data on the use (last login time probably) of mobile devices by users in an AAD.
You can get this information via PowerShell. To work with sign-in logs in AAD you required at least one of the below highlighted roles.
To obtain Azure Active Directory sign-in logs using this Get-AzureADAuditSignInLogs cmdlet.
Below is the Sample PowerShell code.
$userfile = Import-Csv -Path "Path\to\your\file.csv"
$auditLogs = @()
foreach ($User in $userfile) {
$auditLog = Get-AzureADAuditSignInLogs -Filter "UserPrincipalName eq '$User'" | `
Select-Object UserPrincipalName, IsInteractive, @{Name = 'DeviceOS'; Expression = {$_.DeviceDetail.OperatingSystem}},@{Name = 'Last login time'; Expression = {$_.SignInActivity.LastSignInDateTime}}
$auditLogs += $auditLog
}
$auditLogs | Export-Csv -Path "Path\to\output\file.csv" -NoTypeInformation
Please do correct me if this is not the case by responding in the comments section.
Thanks,
Navya.