¿How to update the System Email Account password when using OAuth?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2023 05:03 PM
¿How to update the System Email Account password when using OAuth2?
We configure OAuth 2.0 Authentication on our ServiceNow instance with Azure as a Third Party Provider Identity giving the retirement of Basic Auth, for security reasons we are needing to update the password of the System email account used on the OAuth SMTP and IMAP profiles but giving the OAuth Method don't use password, the password field does not appear anymore, how can we ingress the new password or enable the option "Authorize Email Account Access button" to appears again?, we're looking to update this parameter with no lost notifications or email service affectation as possible.
I have looking on the documentation section but there is no article for this process yet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 01:28 AM
Configure OAuth 2.0 in ServiceNow for Microsoft Office 365
While Azure AD is the source, this step allows you to create a client version of the API permission scopes, that were created in Azure AD, in ServiceNow. In your ServiceNow instance, make sure ServiceNow plugin for Email OAuth (com.glide.email.oauth) has been installed, if not, navigate to System Definition>>>Plugins>>>search for com.glide.email.oauth and click Install for Email-OAUTH Support for IMAP and SMTP.
Once the plugin has been installed, search for System OAuth>>>click on Application Registry >>>click New>>>select Connect to a third party OAuth Provider (referring to Azure AD) and then fill the form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 01:29 AM
Configure OAuth 2.0 in ServiceNow for Microsoft Office 365
While Azure AD is the source, this step allows you to create a client version of the API permission scopes, that were created in Azure AD, in ServiceNow. In your ServiceNow instance, make sure ServiceNow plugin for Email OAuth (com.glide.email.oauth) has been installed, if not, navigate to System Definition>>>Plugins>>>search for com.glide.email.oauth and click Install for Email-OAUTH Support for IMAP and SMTP.
Once the plugin has been installed, search for System OAuth>>>click on Application Registry >>>click New>>>select Connect to a third party OAuth Provider (referring to Azure AD) and then fill the form.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 03:01 PM
Hi @fidel_ey , thanks for your answer, we actually done that process when migrate from Basic Auth to OAuth, activating and enablig the necessary plugins and scripts for refresh token for OAuth.
In this case we have to change the password for the system email account used for OAuth, does this mean we have to re-create the OAuth and Application registry process?
I was hopping to just refresh the token when SNOW Instance sense the password change.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 04:09 AM
I'm in the same boat. The only thing I've found is to delete the Email Account entry and re-enter it and it is rather frustrating and error-prone due to typos. If the OAuth client secret has expired; it will eventually let you reauthorize so you can enter in the new password; but that means it has to stop working for a period of time.