I'm trying to write a web app on our website which gets a User's MS Team channels and then posts a message to a channel of their choosing using MS Teams Graph API.
I'm about to get an access token using the OAuth API, and I'm passing access token (AAD token) to the /me/joinedTeams endpoint, it's giving me the below error:
{ "error": { "code": "ResourceNotFound", "message": "Resource not found.", "innerError": { "date": "2021-05-14T20:57:03", "request-id": "30d80d9a-66f4-47ff-ab11-dacb7f817806", "client-request-id": "30d80d9a-66f4-47ff-ab11-dacb7f817806" } } }
Screenshot of my Graph Explorer results
UPDATE:
I have gotten my account converted to a Work account, and added the permissions. Now I am getting this response/error: