'Microsoft graph api - Tenant not recognized

I created an app in App Registrations service in Azure portal to access Microsoft 365 graph api's.

I could create token using https://login.microsoftonline.com/570fa6c*************************f233/oauth2/v2.0/token , but when i tried https://graph.microsoft.com/v1.0/reports/getTeamsUserActivityUserCounts(period='D7') using the token generated above, i am getting error - We do not recognize this tenant ID 570****************f233. Please double-check the tenant ID and try again

I have a free trial subscription

Could you please help, what am i missing here.

Thanks,

Neema



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source