question

VD-7794 avatar image
0 Votes"
VD-7794 asked saldana-msft edited

Microsoft Graph API Application Permissions for initiating chat with user in MS Teams

Hi Team,

I want to know if Microsoft Graph API with Azure AD application token supports operations to initiate a one to one chat with user without prior conversation?

microsoft-graph-teamworkazure-ad-app-registrationazure-bot-servicemicrosoft-graph-identity
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SharonZhao-MSFT avatar image
0 Votes"
SharonZhao-MSFT answered SharonZhao-MSFT commented

@VD-7794,

From Microsoft Teams side, you can create deep links to private chats between users by specifying the set of participants.


Use this format for a deep link that you can use in a bot, connector, or messaging extension card:
https://teams.microsoft.com/l/chat/0/0?users=<user1>,<user2>,...&topicName=<chatname>&message=<precannedtext>;

As we are mainly responsible for general question of Microsoft Teams, your requirement related to development is not supported by us. I will add office-teams-app-dev tag to get more efficient support. Thanks for your understanding.


If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@SharonZhao-MSFT Thanks for your response! Is there any way to initiate the chat without using the deep link? Currently we are using this link way but we want to achieve this using some background service even when user does not click on the teams link.

0 Votes 0 ·

@VD-7794,
I'm not sure and have no clues now.
Hope support engineers for development gave you more possibilities.
Thanks for your understanding.

0 Votes 0 ·