Configure OAuth authentication between Exchange and Exchange Online organizations

basharat mir 0 Reputation points
2023-10-04T13:28:05.1866667+00:00

Upon setting auto-replies in Outlook, the teams status is not reflecting.

Following https://learn.microsoft.com/en-us/exchange/configure-oauth-authentication-between-exchange-and-exchange-online-organizations-exchange-2013-help to make sure all configurations are in place, getting below error when testing from exchange online powershell

Tryiing to figure out how to fix connectivity failure

"

Exchange Response Details:
              HTTP response message:
              Exception:
              System.Net.WebException: The remote server returned an error: (401) Unauthorized.
                 at System.Net.HttpWebRequest.GetResponse()
                 at Microsoft.Exchange.Monitoring.TestOAuthConnectivityHelper.SendExchangeOAuthRequest(ADUser user,
              String orgDomain, Uri targetUri, String& diagnosticMessage, Boolean appOnly, Boolean useCachedToken,
              Boolean reloadConfig), diagnostics: 2000005;reason="The user specified by the user-context in the token
              does not exist.";error_category="invalid_user"

ResultType  : Error
Identity    : Microsoft.Exchange.Security.OAuth.ValidationResultNodeId
IsValid     : True
ObjectState : New

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,171 questions
Exchange Exchange Server Other
Exchange Hybrid management
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-10-05T08:16:40.7266667+00:00

    Hi @basharat mir

    Is the account you are testing syncing between your on-premises environment and Exchange Online?
    401 Access denied error when you run the Test-OAuthConnectivity cmdlet

    Also, I found this: Announcing Hybrid Modern Authentication for Exchange On-PremisesUser's image

    Regards

    Shaofan


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.  

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.