400 个错误的消息回复请求 microsoft graph 回复团队频道中的消息

问题描述 投票:0回答:1

我正在尝试使用 Graph api 的回复消息 API 我有一个拥有这些权利的服务原则

那么如何使用这个 SP 从逻辑应用程序发送消息回复 我读到,使用 sp 只能通过 Migrate 实现。我无法获得的所有访问权限如何使用具有委派权限的 sp 通过逻辑应用程序以自动方式使用 Graph API 发送此消息

microsoft-graph-api azure-logic-apps azure-service-principal
1个回答
0
投票

我已授予

ChannelMessage.Send
许可。

enter image description here

我已使用以下 URL 创建了将用于生成不记名令牌的代码。

https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/authorize?
&client_id={client_id}
&response_type=code
&redirect_uri=https://jwt.ms
&response_mode=query
&scope=https://graph.microsoft.com/.default
&state=12345

复制代码。

enter image description here

生成如下所示的不记名令牌。

enter image description here

将回复发送到逻辑应用程序中的 Teams 频道,如下所示。

网址-

POST https://graph.microsoft.com/v1.0/teams/{team-id}/channels/{channel-id}/messages/{message-id}/replies

enter image description here

回应-

enter image description here

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.