Skip to main content

MS OAuth2 error: 'The API version V2 has been deprecated' when authenticating Microsoft 365 mailbox

osTicket: 1.17.x / 1.18.x PHP: 8.2 Checked:

Microsoft deprecated the Outlook REST API v2.0 (https://outlook.office.com/api/v2.0/me) used by osTicket for email address verification during OAuth setup. Workaround: create a JSON file on your server containing {"EmailAddress": "your-mailbox@domain.com"} and set that URL as the 'Resource details Endpoint' in the OAuth2 plugin settings. This bypasses the deprecated API call. A permanent fix requires updating the OAuth2 plugin to use the Microsoft Graph API endpoint instead.

Originally sourced from forum.osticket.com . osFAQ.org summarises community knowledge for quick reference.

Helpful
Report an error