From 0eb72d66a777eb9ff80385d461836a3b80b56d83 Mon Sep 17 00:00:00 2001 From: Keith Williams Date: Wed, 11 Dec 2024 15:57:57 +0100 Subject: [PATCH] revert: "fix: Request permissions to allow events to be created on shared Office365/Outlook calendars (#17760)" (#18111) This reverts commit 1680cba5a55fb37d65ddd30d1e64b1451b5c6b31. --- packages/app-store/office365calendar/api/add.ts | 8 +------- .../app-store/office365calendar/lib/CalendarService.ts | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/app-store/office365calendar/api/add.ts b/packages/app-store/office365calendar/api/add.ts index 1a8c898c49..fd7ca5849f 100644 --- a/packages/app-store/office365calendar/api/add.ts +++ b/packages/app-store/office365calendar/api/add.ts @@ -6,13 +6,7 @@ import { WEBAPP_URL_FOR_OAUTH } from "@calcom/lib/constants"; import getAppKeysFromSlug from "../../_utils/getAppKeysFromSlug"; import { encodeOAuthState } from "../../_utils/oauth/encodeOAuthState"; -const scopes = [ - "User.Read", - "Calendars.Read", - "Calendars.ReadWrite", - "Calendars.ReadWrite.Shared", - "offline_access", -]; +const scopes = ["User.Read", "Calendars.Read", "Calendars.ReadWrite", "offline_access"]; let client_id = ""; diff --git a/packages/app-store/office365calendar/lib/CalendarService.ts b/packages/app-store/office365calendar/lib/CalendarService.ts index 46ccd45c87..ff3951f1aa 100644 --- a/packages/app-store/office365calendar/lib/CalendarService.ts +++ b/packages/app-store/office365calendar/lib/CalendarService.ts @@ -76,7 +76,7 @@ export default class Office365CalendarService implements Calendar { method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded" }, body: new URLSearchParams({ - scope: "User.Read Calendars.Read Calendars.ReadWrite Calendars.ReadWrite.Shared", + scope: "User.Read Calendars.Read Calendars.ReadWrite", client_id, refresh_token: refreshToken, grant_type: "refresh_token",