Ability for ADMIN to send a chat message on behalf of

sud krish 0 Reputation points
2024-06-10T19:06:45.2933333+00:00

https://learn.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-beta&tabs=http talks about few different ways to send message to a channel/chat by the user (or participant of the channel). Is there a way to send message by an admin (on behalf of) to the chat/channel using graph?

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

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 2,570 Reputation points Microsoft Vendor
    2024-06-11T01:45:46.7066667+00:00

    Hi @sud krish

    Administrators are also a type of user, so if you need an administrator to send messages to a chat/channel using Graph, you just need to log in with an administrator account when you get tokens using auth code flow.

    By the way, the Api version you are using is a beta version, subject to change at any time, not suitable for production, please use the official version 1.0.

    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.