Additional team and channel-related features and issues within Microsoft Teams for business
Hello @Glenn Maxwell
The error returned by Microsoft Graph provides a strong indication of the underlying issue:
"Message POST is allowed in application-only context only for import purposes."
This error indicates that the request is being executed using an application-only access token. According to Microsoft's documented behavior for Teams messaging APIs, posting replies to existing Teams channel messages is supported in a delegated user context, while application permissions are reserved for Teams migration and import scenarios.
Based on the error and the documented permission model, the issue does not appear to be related to a missing Graph permission. Instead, the request is being rejected because the API operation is being performed using an authentication model that is not supported for this scenario. Microsoft Graph is explicitly identifying the request as an application-only request and returning an authorization error before the operation can be completed.
The next step would be to verify whether the integration is currently using an application-only token (Client Credentials Flow). If it is, switching to a delegated user token is likely required, as Microsoft supports replying to Teams channel messages through delegated permissions (such as ChannelMessage.Send) rather than standard application permissions.
Besides, I also recommend posting the detailed use case on the Microsoft Graph Community Forum. The forum is reviewed daily by specialists who share practical experiences, known cases, and recommended approaches that may help identify alternative or advanced solutions.
In this case, broadening the discussion may help you reach a wider audience and potentially receive creative or alternative ideas from other users facing the same challenge. This also increases the overall chance of discovering a suitable solution.
If you receive any updates or find a viable approach, it would be greatly appreciated if you could share it here as well to help others who may be experiencing the same issue.
Finally, I have found following Microsoft documentations for your reference:
Kind regards,
If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in the forum documentation to enable e-mail notifications if you want to receive the related email notification for this thread.