SMTP error when Configuring SMTP and IMAP email accounts with OAuth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2022 12:53 AM
Hi,
When trying to Configure SMTP and IMAP email accounts with Microsoft Office365 using OAuth2.
We have followed all the necessary steps mentioned in: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0816072 and https://www.servicenow.com/community/now-platform-forum/how-to-setup-smtp-and-imap-email-accounts-vi...
However, when we go into a private/incognito window then select authorize email account, we are prompted with the following error:
“AAD*********: The application 'ServiceNow Email - Authentication' asked for scope 'SMTP.Send"' that doesn't exist on the resource '00000003-0000-********************************. Contact the app vendor.
Can anybody help/support here please. It would be greatly appreciated!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2022 12:57 AM
Please note, this is when trying to authroize the IMAP email account
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2022 05:44 AM
Hi Daniel
Have you added the scope "SMTP.Send" in the Azure Application aswell as in the ServiceNow Application Registry > OAuth Entity Profile Scopes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2023 01:38 AM
@Dominik9 - thanks for your help Dominik, this was helpful, we had an additional character at the end of the scope, alongside some other things which helped us get past a number of other errors.
We have now set this all up on the Development environment.
If we now wanted to progress with configuring this for the Test and Production environments - do separate Azure Enterprise applications need to be created for the Test and Production environments? So in summary, for this type of configuration, is it best practice to have 1 Azure Enterprise application set up for each environment? or is it possible to use the same Azure Enterprise application that was used for the Development Environment and just add 2 additional redirect URLs (a test redirect URL and a prod redirect URL) to the 1 Azure application?