Hi @RK , 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