reportingservice.activedirectory.windowsazure.com as next link in /activities/signinEvents queries

Anonymous
2019-12-09T11:11:19.897+00:00

Hello,

I have an app to get sign-ins from logs /activities/signinEvents. I perform a GET query to graph.windows.net/tenant/activities/signinEvents/ and the next link presented in that response was
"https://reportingservice.activedirectory.windowsazure.com/tenant/activities/signinEvents...skipToken=..._1000". I cannot visit that link with my app or graph explorer. My app gets the following error: "AADSTS65001: The user or administrator has not consented to use the application", which is logical because I really do not have the access to reportingservice.activedirectory.windowsazure.com.

So, I would like to know if this next link is presented by design and it is not a bug. How do I have to handle such links then?
What kind of permissions do I have to assign to my app?

Thanks in advance!

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

1 answer

Sort by: Most helpful
  1. KAREDD-MSFT 406 Reputation points Microsoft Employee
    2019-12-09T12:20:10.57+00:00

    anonymous user Ideally, you should have consented to the directory.read.all permission on behalf of your app which should give you the application required consent. Can you confirm the same?

    We strongly recommend using Microsoft Graph API for accessing resources from Azure AD. Azure AD Graph calls will be deprecated in the near future.

    Ref: https://learn.microsoft.com/en-us/graph/api/signin-get?view=graph-rest-1.0&tabs=http

    https://developer.microsoft.com/en-us/office/blogs/microsoft-graph-or-azure-ad-graph/

    1 person found this answer helpful.