May 03 2024 01:23 AM
TL;DR - Receiving error message when trying to send a message in Teams via Postman even though all permissions are assigned.
Hi,
I am trying to work a use case where I need to send a message to an individual user via Postman where we break this down into several steps:
1. Get the user id of the sender and recipient.
2. Create a chat id between the sender and the recipient.
3. Send a message from the sender to the recipient.
I was able to get to the first two steps done via Postman but the 3rd step where we need to send a message; I'm getting an error stating that:
And below are the permissions mentioned in the document:
References:
1. Send message in a chat - Microsoft Graph v1.0 | Microsoft Learn
2. Create chat - Microsoft Graph v1.0 | Microsoft Learn
3. Use Postman with the Microsoft Graph API - Microsoft Graph | Microsoft Learn
4. Use delegated authentication with Postman for Microsoft Graph - Microsoft Graph | Microsoft Learn