AD B2C application logs

Niren Adhikary (NAD) 146 Reputation points
2022-06-23T10:17:37.963+00:00

We are looking for sign in logs of our application in AD B2C. The user can login using local account, AD account, Gmail ,how can we get logs for each of these users - successful login vs failed login.

If we export the audit logs in AD B2C it does not contain the required information.

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,663 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,664 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. 2022-06-27T04:04:22.133+00:00

    Hello @Niren Adhikary (NAD) , you need to review the B2C audit logs. You will get information such as application id, user flow used, local or federated user id, CA results and more. Here's a sample query using MS Graph:

    https://graph.microsoft.com/v1.0/auditLogs/directoryAudits?$filter=loggedByService eq 'B2C'

    Let us know if this answer was helpful to you or if you need additional assistance. If it was helpful, please remember to accept it and complete the quality survey so that others in the community with similar questions can more easily find a rated solution.

    0 comments No comments