As per documentation, i see the API will only work for Application permission and not with delegated one.
Use Windows Service to Delete ChatMessage from MS Teams Channel
Hello,
I am currently evaluating MS Teams as a potential end-point for my company's product offering, and I have a question related to Delegated Permissions.
We would like to use a Windows Service to delete (remove) specific ChatMessages from a Teams Channel. My research and prototyping has proved that sending ChatMessages to a Teams Channel works fine from a Windows Service using Delegated Permissions (the IPublicClientApplication interface is being used for authentication), but the Windows Service is unable to delete the ChatMessages from the Teams Channel.
I am able to log in to the MS Teams Chat Client as the delegated user account and manually delete the ChatMessages, but we need an automated background process (i.e. the Windows Service under development) to perform this action.
Can you please verify my findings - that there is no way for a Windows Service using Delegated Permissions to delete ChatMessages from a Teams Channel?
Thank you,
Woody Cox
Visix, Inc.
visix.com
-
Deva-MSFT 2,261 Reputation points Microsoft Employee
2021-01-16T18:45:18.597+00:00
1 additional answer
Sort by: Most helpful
-
Manish-MSFT 256 Reputation points
2021-01-18T10:21:35.047+00:00 @Woody Cox , I think @Deva-MSFT has answered it correctly, You need application permission to update/delete chat messages.