<h2>OAuth email authentication</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2025" /><meta name="DC.rights.owner" content="(C) Copyright 2025" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="concept" /><meta name="DC.title" content="OAuth email authentication" /><meta name="abstract" content="OAuth enables your instance to receive and send email through a third-party email account." /><meta name="description" content="OAuth enables your instance to receive and send email through a third-party email account." /><meta name="DC.subject" content="email, OAuth authentication" /><meta name="keywords" content="email, OAuth authentication" /><meta name="DC.relation" scheme="URI" content="../../../administer/reference-pages/concept/c_AlternateEmailConfigurations.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/general/concept/intro-now-platform-landing.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/general/concept/config-now-platform-core-features.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/notification/reference/notifications.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/notification/concept/email-administration-landing.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/notification/concept/configuring-email-admin.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/notification/task/t_ActOAuthEmailAuthPlugin.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/notification/task/t_SetUpOAuth2ForEmail.html" /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.date.created" content="2023-08-03" /><meta name="DC.date.modified" content="2024-02-01" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="c_OAuthEmailAuthentication" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>OAuth email authentication</title></head><body id="c_OAuthEmailAuthentication"> <div class="breadcrumb"><a class="link" href="../../../administer/general/concept/intro-now-platform-landing.html" title="As a platform administrator, you have the power of the ServiceNow AI Platform at your fingertips. The ServiceNow AI Platform is an application platform as a service that automates business processes across the enterprise.">Administer the ServiceNow AI Platform</a> > <a class="link" href="../../../administer/general/concept/config-now-platform-core-features.html" title="The ServiceNow AI Platform provides for a multitude of customization options to your applications. Customize your UI, handle user and data administration, and localize your instance for time zones, currencies, and more.">Configure ServiceNow AI Platform Core Features</a> > <a class="link" href="../../../administer/notification/reference/notifications.html" title="Use ServiceNow Notifications to manage system email, create system notifications, and configure how your system responds to inbound email.">Notifications</a> > <a class="link" href="../../../administer/notification/concept/email-administration-landing.html" title="All email notifications use the email properties that you define for your instance and the email accounts that you set up. Your email service can also affect the successful transmission of incoming and outgoing email.">Email Administration</a> > <a class="link" href="../../../administer/notification/concept/configuring-email-admin.html" title="Setup basic and advanced email, configure email properties, activate email filter and services and grandt non admin user access to email APIs.">Configure email administration</a> > </div> <h1 class="title topictitle1" id="ariaid-title1">OAuth email authentication</h1> <div class="body conbody"><p class="shortdesc">OAuth enables your instance to receive and send email through a third-party email account.</p> <p class="p">Open Authentication (OAuth) is an open standard for authorization that provides administrators with an authorization method when connecting to incoming IMAP and outgoing SMTP servers. OAuth enables an instance to receive and send email from a third-party account, such as Gmail, without having to enter the credentials for that account.</p> <p class="p">The OAuth 2.0 implementation requires you to obtain an access and refresh token from your third-party email provider for each third-party email account. The tokens are automatically saved to the instance database. They provide authorization for all email communication between the instance and the authorized third-party account. A scheduled job regularly checks to see if email access tokens are valid. If the access token is not valid, but the refresh token is, the instance automatically regenerates a new access token.</p> <p class="p">OAuth 2.0 support is available starting with the Geneva release. The OAuth implementation supports IMAP and SMTP accounts only. POP3 is not supported. OAuth 1.0 is no longer supported.</p> <div class="p"><div class="note"><span class="notetitle">Note:</span> Customer email accounts configured to use OAuth 1.0 authentication with Gmail cease to function as of April 20, 2015. See <a class="xref" href="https://support.servicenow.com/kb_view.do?sysparm_article=KB0546976" target="_blank" rel="noopener noreferrer">KB0546976</a> for more information.</div> </div> <div class="p">Activating the Email - OAuth support for IMAP and SMTP plugin allows you to use OAuth with email. If you upgrade to Geneva or later instances and are already using OAuth 1.0, activate the plugin again.<div class="note"><span class="notetitle">Note:</span> For configuring SMTP and IMAP email accounts with <span class="ph">Microsoft Office 365</span> using OAuth 2.0, see <a class="xref" href="https://support.servicenow.com/nav_to.do?uri=%2Fkb%3Fid%3Dkb_article_view%26sysparm_article%3DKB0816072" target="_blank" rel="noopener noreferrer">KB0816072</a>.</div> </div> <p class="p">See <a class="xref" href="../integrate/outbound-rest/concept/c_OAuth2ProfileTutorialGoogle.html" target="_blank" rel="noopener noreferrer">Outbound REST with OAuth 2.0 profile tutorial - integrating with Google Contacts API</a> for an example of using an OAuth 2.0 profile to authenticate an outbound REST message with Google to retrieve contact information. Also see <a class="xref" href="../administer/security/concept/c_OAuthApplications.html" target="_blank" rel="noopener noreferrer">OAuth 2.0</a> for more information on OAuth 2.0 support in the instance.</p> </div> <div class="related-links"> <ul class="ullinks"><li class="link ulchildlink"><strong><a href="../../../administer/notification/task/t_ActOAuthEmailAuthPlugin.html">Activate the OAuth email authentication plugin</a></strong><br /> <span class="ph">You can activate the <span class="ph">Email:OAUTH support for IMAP, <span class="ph">Microsoft Graph</span> (Receiving), and SMTP</span> plugin (<span class="ph">com.glide.email.oauth</span>) for <span class="ph">Notifications</span> if you have the admin role. </span></li><li class="link ulchildlink"><strong><a href="../../../administer/notification/task/t_SetUpOAuth2ForEmail.html">Enable OAuth 2.0 for email</a></strong><br /> Setting up OAuth 2.0 for email requires you to obtain access and refresh tokens from your email provider.</li></ul> <div class="familylinks"> <div class="parentlink"><strong>Parent Topic:</strong> <a class="link" href="../../../administer/reference-pages/concept/c_AlternateEmailConfigurations.html" title="With an advanced email setup, you can use your own SMTP server, POP3 server, or both.">Advanced email setup</a></div> </div> </div></body></html></div>