Custom Email Configuration throws "HTTP Error 401 - Unauthorized" During Email Account AuthorizationIssue During the configuration of a custom IMAP email account in ServiceNow, users may encounter the following error when attempting to authorize email account access:"HTTP Error 401 - Unauthorized"ReleaseN/ACauseThis error typically occurs when the Authorization URL and Token URL for the OAuth 2.0 configuration are not correctly set. The system fails to authenticate with Microsoft's identity platform due to invalid or improperly formatted endpoint URLs.ResolutionVerify and update the OAuth 2.0 endpoint URLs as per KB0816072. The correct format is: Authorization URL:https://login.microsoftonline.com/[Azure Tenant ID]/oauth2/v2.0/authorizeToken URL:https://login.microsoftonline.com/[Azure Tenant ID]/oauth2/v2.0/token Replace [Azure Tenant ID] with your actual Azure tenant ID. After updating the URLs and generating a new token, the IMAP email account should authorize successfully.Related Linkshttps://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0816072