Graph APIs which require P1/P2 license are failing even with E3 subscription on the Tenant

Muthu Ramakrishnan 41 Reputation points
2022-10-25T08:45:26.46+00:00

When we try to call the below API against a tenant who has E3 Subscription
https://graph.microsoft.com/beta/users?`$select=id,signInActivity

We are getting error as below
Code: Authentication_RequestFromNonPremiumTenantOrB2CTenant
Message: Neither tenant is B2C or tenant doesn't have premium license

based on documentation E3 includes the Premium license, but the error message we receive conflicts with this. is there any action required from the Tenant Admin to activate P1/P2? or why we are getting this error.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

Answer accepted by question author
Vasil Michev 127.6K Reputation points MVP Volunteer Moderator
2022-10-25T09:53:05.907+00:00

It's Microsoft 365 E3/E5 that includes AAD Premium, not the old Office 365 E3/E5 SKUs. And yes, it's a dumb requirement to have on an API endpoint, but try explaining this to Microsoft...

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.