web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How do I automate leav...
Power Automate
Suggested Answer

How do I automate leaving the chat of a Teams meeting?

(1) ShareShare
ReportReport
Posted on by Microsoft Employee
I have a flow that declines meetings I'm not interested in that come from a certain bot account.
 
However, I still get those meetings in the chat history, etc., which is a major nuisance for me.
 
Can I automate also leaving the chat, etc. for those meetings that I decline using my flow?
Categories:
I have the same question (0)
  • Suggested answer
    Infamous_Let Profile Picture
    330 Super User 2026 Season 1 on at
    Yes, you can automate leaving the chat of a Teams meeting, but it requires some integration with Microsoft Graph API since Power Automate doesn't natively offer a "leave chat" action. Since you already have a flow that declines certain meetings, you can extend it to handle chat removal by interacting with Teams through API calls.
    First, after declining a meeting, you can use the HTTP action in Power Automate to fetch your joined chats from Microsoft Graph. This involves sending a GET request to https://graph.microsoft.com/v1.0/me/chats. Once the flow identifies the chat associated with the declined meeting, you can send a DELETE request to https://graph.microsoft.com/v1.0/me/chats/{chat-id}/members/{user-id} to remove yourself from the chat.
    To make this work, you'll need to configure authentication using an Azure App Registration and grant permissions like Chat.ReadWrite.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 239 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 177 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 97 Super User 2026 Season 1

Last 30 days Overall leaderboard