Answers.Body: <p>In CiviCRM 5.59+, you can enter the tenant ID into the CiviCRM OAuth setup screen.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-06-01T21:08:08.493Z
Answers.LastActivityDate: 2023-06-01T21:08:08.493Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>Has anyone set up CiviMail to use Oauth to connect to Microsoft Exchange? The CiviCRM documentation deviates from that provided by Microsoft. Also, you can't add the account are trying to set up, as you get this error:</p>
  <p><em>Application</em> is not configured as a multi-tenant application. Usage of the /common endpoint is not supported for such applications created after '10/15/2018'. Use a tenant-specific endpoint or configure the application to be multi-tenant.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-01-11T18:43:38.980Z
Comments.Text: Cross-ref to https://lab.civicrm.org/dev/core/-/issues/2559, but posting here doesn't hurt either in case someone else has some solutions.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-01-11T20:10:45.730Z
Comments.Text: Editing <drupal root>\vendor\civicrm\civicrm-core\ext\oauth-client\providers\ms-exchange.dist.json to replace /common/ with /tenant-id/ enabled the application to be configured. Granting Graph API mail permissions in the application appeared to make it work.
Comments.UserDisplayName: Stephen Palmstrom
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-01-13T10:00:09.660Z
Comments.Text: @Demerit I'd forgotten about that thread! Thanks for referencing it. I'll go to it.
Comments.UserDisplayName: Stephen Palmstrom
Tags: <civimail><oauth>
Title: Oauth Microsoft Exchange authentication
ThreadText: # Oauth Microsoft Exchange authentication
  
  (Asked by: username_0 on 2022-01-11)
  
  Has anyone set up CiviMail to use Oauth to connect to Microsoft Exchange? The CiviCRM documentation deviates from that provided by Microsoft. Also, you can't add the account are trying to set up, as you get this error:
  
  *Application* is not configured as a multi-tenant application. Usage of the /common endpoint is not supported for such applications created after '10/15/2018'. Use a tenant-specific endpoint or configure the application to be multi-tenant.
  
  **Tags:** civimail, oauth
  
  > **Comments:**
  > **username_1**: Cross-ref to https://lab.civicrm.org/dev/core/-/issues/2559, but posting here doesn't hurt either in case someone else has some solutions.  
  > **username_0**: Editing <drupal root>\vendor\civicrm\civicrm-core\ext\oauth-client\providers\ms-exchange.dist.json to replace /common/ with /tenant-id/ enabled the application to be configured. Granting Graph API mail permissions in the application appeared to make it work.  
  > **username_0**: @username_1 I'd forgotten about that thread! Thanks for referencing it. I'll go to it.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2023-06-01. Score: 1
  
  In CiviCRM 5.59+, you can enter the tenant ID into the CiviCRM OAuth setup screen.
  
  
  ---
  
  