Hi I want to retrieve Azure AD Sign-in logs by Python and save them to the storage.
I couldn't find documents for authentication, could anyone give me some advice?
Thanks,
Hi I want to retrieve Azure AD Sign-in logs by Python and save them to the storage.
I couldn't find documents for authentication, could anyone give me some advice?
Thanks,
Hi @rk1199 , do you specifically want it to be with Python? You can download logs manually to a CSV but if you want Python specifically I can look into it further for you.
Best,
James
Hi @rk1199 , from my understanding, you want to authenticate and retrieve AD sign in logs? The best way to do this is by using the Graph API. The article linked details how you can authenticate with the Graph using python. This document shows how you can retrieve the sign in logs. Please let me know if you have any questions!
If this answer helped you please mark it as "Verified" so other users may reference it.
Thank you,
James
1 Person is following this question.
how to maintain multiple streams in single IOT Hub?
Quickstart guide of SaaS app login to azure AD via multitenant architecture
ERROR CancelledByUser is returned incorrectly in some scenarios
Does MSAL.js support session sharing across SPA micro apps?
What is the correct MSAL package for a WPF core 3.1 desktop app?