Fail to fetch OAuth access token, status code: 401

Naresh Kumar Vemula 1 Reputation point
2021-02-16T13:52:16.023+00:00

EWS Request failed - EWS call has failed - Fail to fetch OAuth access token, status code: 401

Unable to integrate Office365 Calendar Free/busy with Google WorkSpace.

Error..
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header>
<ns2:RequestServerVersion xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/types" Version="Exchange2010"/>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns3:GetUserAvailabilityRequest xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ns3="http://schemas.microsoft.com/exchange/services/2006/messages">
<ns2:TimeZone>
<ns2:Bias>0</ns2:Bias>
<ns2:StandardTime>
<ns2:Bias>0</ns2:Bias>
<ns2:Time>00:00:00</ns2:Time>
<ns2:DayOrder>1</ns2:DayOrder>
<ns2:Month>10</ns2:Month>
<ns2:DayOfWeek>Monday</ns2:DayOfWeek>
</ns2:StandardTime>
<ns2:DaylightTime>
<ns2:Bias>0</ns2:Bias>
<ns2:Time>00:00:00</ns2:Time>
<ns2:DayOrder>1</ns2:DayOrder>
<ns2:Month>3</ns2:Month>
<ns2:DayOfWeek>Monday</ns2:DayOfWeek>
</ns2:DaylightTime>
</ns2:TimeZone>
<ns3:MailboxDataArray>
<ns2:MailboxData>
<ns2:Email>
<ns2:Address>naresh.vemula@appsassociates.com</ns2:Address>
</ns2:Email>
<ns2:AttendeeType>Required</ns2:AttendeeType>
<ns2:ExcludeConflicts>false</ns2:ExcludeConflicts>
</ns2:MailboxData>
</ns3:MailboxDataArray>
<ns2:FreeBusyViewOptions>
<ns2:TimeWindow>
<ns2:StartTime>2021-02-15T12:47:42</ns2:StartTime>
<ns2:EndTime>2021-02-17T12:47:42</ns2:EndTime>
</ns2:TimeWindow>
<ns2:MergedFreeBusyIntervalInMinutes>15</ns2:MergedFreeBusyIntervalInMinutes>
<ns2:RequestedView>DetailedMerged</ns2:RequestedView>
</ns2:FreeBusyViewOptions>
</ns3:GetUserAvailabilityRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,674 questions
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
511 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,359 questions
{count} votes