Whitelist Service Account in new Servers

RS0312 1 Reputation point
2022-09-28T06:38:23.62+00:00

We are receiving following error when our application connects with a service account to Office365.

Local EWS error: The request failed. The remote server returned an error: (401) Unauthorized.

Found following link where the issue as resolved by Whitelisting a service account however, no detailed information is giving about how to whitelist a service account.

https://learn.microsoft.com/en-us/answers/questions/565600/local-ews-error-the-request-failed-the-remote-serv.html

How to whitelist service account in new servers?

A. Do we have to add service account to local administrators group in new servers?
Or
B. Do we have to registerd SPN for new servers in AD?

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Glen Scales 4,446 Reputation points
    2022-09-28T23:42:19.527+00:00

    Are you using Basic Authentication if so it may have already been disabled or will be in a few days https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online . The post you referenced talked about an OnPrem exchange which is different there is no whitelisting you would need to do in Exchange Online however if you where using impersonation there are application access policies that can take affect https://practical365.com/application-access-policies-in-exchange-online/#:~:text=The%20feature%20is%20called%20Application,of%20course%20being%20Exchange%20Online.

    The place to start would be try the remote connectivity analyser https://testconnectivity.microsoft.com/tests/o365


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.