Demo data · Microsoft Graph connection required for live Outlook and Teams writes
Turn one leave line into a clean calendar blocker request.
Send a short leave note to your group today. The app prepares the Outlook blocker and Teams out-of-office payload, while actual Microsoft 365 automation waits for a secure Graph connection.
Compose
Leave blocker email
Validate your message, date, and recipient before sending through the built-in email service.
Microsoft Graph setup
How to connect Outlook and Teams automation
This app can send the leave email now. To automatically create the Outlook calendar blocker and set out-of-office across Outlook/Teams, your Microsoft 365 tenant admin needs to register and consent to a Microsoft Graph app.
Use delegated Calendars.ReadWrite so the signed-in user can create an all-day “Out of office” event on their Outlook calendar.
Use delegated MailboxSettings.ReadWrite to set automatic replies with the same leave message and selected date.
Teams usually reads Outlook automatic replies. Add Presence.ReadWrite only if your organization also wants explicit Teams presence updates.
Use offline_access for refresh tokens, but store tokens/client secrets only in a backend function or approved secure connector.
1. Register app
In Microsoft Entra admin center, create an App registration, choose Accounts in this organizational directory, then add this deployed app URL as a Web redirect URI.
2. Add permissions
Go to API permissions > Microsoft Graph > Delegated permissions and add User.Read, Calendars.ReadWrite, MailboxSettings.ReadWrite, offline_access, and optional Presence.ReadWrite.
3. Grant consent
If user consent is disabled, a Global Admin or Cloud Application Admin must select Grant admin consent so employees can sign in and authorize automation.