Forum Discussion
AK-47-b
Apr 07, 2022Copper Contributor
Filter issue
Hi all, I can't work out why this filter errors. $LastLogin = Get-AzureADAuditSignInLogs -All $true -Top 1 -Filter "userDisplayName eq '$UserDisplayName'" -ErrorAction SilentlyContinue | Select ...
- Apr 07, 2022Thanks for taking an interest. As it turns out, after many hours of research, I am facing two distinct issues. The first, on the filter error appears to be a known and old bug in AzureAD Preview module. The second is due to Graph API limits. So I'll be editing the script to be less aggressive and slow down the call rate, and hope that at the slower rate it allows the filters to be parsed correctly.
Thanks for taking an interest in helping.
VasilMichev
Apr 07, 2022MVP
Perhaps you have some fancy display name in there? Make sure you escape any characters such as ' (for all the O'Briens and such). Or filter by GUID 🙂
AK-47-b
Apr 07, 2022Copper Contributor
Thanks for taking an interest. As it turns out, after many hours of research, I am facing two distinct issues. The first, on the filter error appears to be a known and old bug in AzureAD Preview module. The second is due to Graph API limits. So I'll be editing the script to be less aggressive and slow down the call rate, and hope that at the slower rate it allows the filters to be parsed correctly.
Thanks for taking an interest in helping.
Thanks for taking an interest in helping.