3
votes

Microsoft had made free for the Azure Sign In Report. I could see those reports in the Azure AD portal. But couldn't retrieve the data via REST API

The following site also not pointing that this API requires any Premium license.

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

But on testing with my tenant, I have got the following error code

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

Response of the Azure Sign In Request

Message: Neither tenant is B2C or tenant doesn't have a premium license Why Microsoft is not providing data for these tenants? Are there any other ways to retrieve the data from these tenants?

1

1 Answers

0
votes

Neither tenant is B2C or tenant doesn't have premium license

Accessing sign-in reports requires an Azure Active Directory premium 1 (P1) license. If you see this error message while accessing sign-ins, make sure that your tenant is licensed with an Azure AD P1 license.

see: error report.


Update:

I used a simple method to reproduce your problem. I used an account without a p1 license to call the api and it reported the same error as you:

enter image description here

Then I assigned a p1 license to the account. The api call will succeed:

enter image description here

This is a problem with MS, it is not detailed in the documentation.