Open NekoJonez opened 6 months ago
Yes, this is because I changed script to use MgGraph module and I had to creat the Graph API fetch function again.
It should handle Graph API error messages better and print something more better looking to console. It does handle the error but console printing is not optimal. Also it should print the exact Graph API error message at least to Write-Verbose for better troubleshooting.
I'll look into this in next versions.
I'd change this a bit so if the last logged in user is longer than 30 days ago, it doesn't show this error but rather shows another message informing the user that the data is not able to be retrieved.