Forum Discussion

Slava630's avatar
Slava630
Copper Contributor
Jan 12, 2024

Issue deleteng a chat message using API

Hello,

I need to disable posting messages on off/silent hours on a Teams group chat. I didn't find such features so I developed a Power Automate flow that automatically deletes messages received after 8 pm using Graph API.

 

I was able to create an app, get token and delete messages posted by myself, but I cannot delete messages posted by other users and I receive error message "AclCheckFailed-Delete Message: Initiator is not allowed to delete message".

The user I use for the flow and the HTTP request has Teams Admin role, the token has chat.readwrite.all scope.

 

Could you please advise is it possible to delete messages posted by others on Teams group chat?

 

Best regards,

Slava Shamak

No RepliesBe the first to reply

Resources