I have an Angular UI app which uses MSAL to login via Entra Id (formerly known as Microsoft Active Directory). This enables users of the organisation to log into the app. In the Entra Id portal, I'm able to view the user logins by navigating to:
'Monitoring & health' ===> 'Sign-in logs'
I've been tasked to enable an admin user of the Angular app to be able to view these logs in the app.
So my question: is there a way one can retrieve the sign-in logs information in Entra Id and display from the Angular UI app?
Thanks in advance
You can use Microsoft Graph API and call sign-ins endpoint.
https://graph.microsoft.com/v1.0/auditLogs/signIns?$filter=(createdDateTime ge 2025-05-21T10:23:35.866Z and createdDateTime lt 2025-05-22T10:23:35.866Z)&$orderby=createdDateTime desc