Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,993 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
scopes: ["openid", "profile", "User.Read", "AuditLog.Read.All", "Directory.Read.All"]
};Redirect URI
matches the one in your msalConfig
Hi @Bhuvan Goyal
You can retrieve the list of users who have logged into your single-page app by calling the /auditLogs/signIns endpoint and filtering the returned result set using the given single-page app ID.
GET https://graph.microsoft.com/v1.0/auditLogs/signIns?$filter=appId eq '{spa_id}'
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.