Unable to send messages to Teams Channel from Postman

Samarth S Hegade 0 Reputation points
2024-01-16T09:55:30.9433333+00:00

Hi, I've made progress in creating an Azure App, obtaining necessary IDs, and using the access token to create Teams groups and add members. However, I'm encountering difficulties in sending messages. I've configured the required Application and Delegated permissions. As a newcomer to this, I'm seeking guidance on the procedure to achieve this using Postman. tempsnip

Thanks

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,059 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 45,261 Reputation points
    2024-01-17T03:33:25.8766667+00:00

    Hi @Samarth S Hegade

    As your error message indicates, application permissions are only supported for migration messages. This means that if you use application permissions, you need to create the team and channel in a migrated state and then import the messages.

    User's image If you are simply sending messages on behalf of the logged-in user, grant the calling application the ChannelMessage.Send delegation permission and use a delegated authentication flow (auth code flow or ROPC flow) to request an access token.

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    0 comments No comments

Your answer

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