Azure AD Graph API returns Unsupported Query for signin activity API

Bala Smart 51 Reputation points
2021-01-08T02:56:01.337+00:00

We are using Azure AD Graph API for collecting signin logs from Azure AD. Suddenly we are not able to use Azure AD Graph API for getting signin logs from Azure AD

`Activity Log API : https://graph.windows.net/tenant.onmicrosoft.com/activities/audit?api-version=beta (Working fine)
Signin Logs API : https://graph.windows.net/tenant.onmicrosoft.com/activities/signinEvents?api-version=beta

Signin Logs API returns as Unsupported Query
`

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,610 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,311 Reputation points
    2021-01-08T07:02:30.887+00:00

    Hi @Bala Smart · Thank you for reaching out.

    The API graph.windows.net is being deprecated. You should now consider using graph.microsoft.com API for this purpose.

    For Audit activity logs, use:

    GET https://graph.microsoft.com/v1.0/auditLogs/directoryAudits

    For Sign in activity logs, use:

    GET https://graph.microsoft.com/v1.0/auditLogs/signIns

    Read more:


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.