Enable OAuth 2.0 for email Setting up OAuth 2.0 for email requires you to obtain access and refresh tokens from your email provider. Before you begin Role required: admin Plugin required: Email - OAUTH support for IMAP and SMTP Procedure Log in to your third-party email account, such as Gmail, and enable OAuth 2.0. Obtain the following from your third-party email account: client ID client secret authorization URL token URL redirect URL token revocation URL Navigate to System OAuth > Application Registry. Click New. Click Connect to a third party OAuth Provider to create an application registry record that email uses. Use the information you obtained from your third-party email account to fill in the fields on the form. See Use a third-party OAuth provider for instructions. Create the OAuth application registry record and its associated OAuth Entity Profile and OAuth Entity Scope records. Click Submit. Navigate to System Mailboxes > Administration > Email Accounts. The system displays the list of available email accounts. (Optional) If you do not want to receive email sent to the default instance email address, locate the record for ServiceNow POP3 and change Active to false. The system can receive email from multiple POP3 email accounts. Locate the records for ServiceNow SMTP and change Active to false. Click New. The system displays a blank Email Account form. Create an email account record for your OAuth 2.0 SMTP server where the Type is SMTP. For Authentication, select OAuth 2.0. For OAuth Profile, select the application registry record you created. Click Authorize Email Account Access to obtain the access and refresh tokens. Another browser window opens asking you to authorize the account access on the third-party email account. Authorize the access. After the authorization is successful and the tokens are saved to the instance, the Authorize Email Account Access button no longer appears on the Email Account form. Click New. The system displays a blank Email Account form. Create an email account record for your OAuth 2.0 IMAP server where the Type is IMAP. Use the same Authentication and OAuth profile settings as the OAuth SMTP email account.