Created Bearer Token using the following steps
<< Unable to paste link >>
client_id: {{client_id}}
scope:https: //graph.microsoft.com/.default
client_secret: {{secret}}
grant_type: client_credentials
Response
{
"token_type": "Bearer",
"expires_in": 3600,
"ext_expires_in": 3600,
"access_token": {{token}}
}
When I tried using the token in the following way , it gave me error, some say I am supposed to have Office 365 account with a subscription , is that the reason ? I am able to log into Office 365 account with my email id , not sure about subscription stuff though .
Please let me know how can I solve things here.
GET Microsoft Graph Url with *me* [ Unable to paste link as MSDN doesn't allow ]
Authorization : <<Bearer_Token>>
{
"error": {
"code": "OrganizationFromTenantGuidNotFound",
"message": "The tenant for tenant guid 'db404958-8858-4f05-8a8c-91cbd9d89b21' does not exist.",
"innerError": {
"request-id": "7048cf60-92d1-4514-86e9-a061c68b2238",
"date": "2019-06-08T01:58:58"
}
}
}
not sure why is it failing in user specific api call . Do I need to have a O365 account with subscription ?
I do have a )365 account but not sure about the subscription .