Can incoming mailboxes share the same OAuth 2.0 profile?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2022 08:42 AM
I have a customer who is using Oauth2.0 for three incoming email mailboxes. They have three different email accounts using the same OAuth profile. One of the email accounts receives email without issue. The other two accounts will not pick up emails from the respective mailboxes. All of the "Test Connection" authenticate without issue and each of the email accounts has successfully "Authorize Account Access".
I have no insight into how things are setup on the Azure side. I just know that one of the accounts is successfully processing email.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I had this same question. In our environment I have three IMAP mailboxes (email account records) all linked to the same oAuth 2.0 profile that's pointed to a single Enterprise Application in Azure.
I started by deleting all of the authentication tokens in ServiceNow by going to: System OAuth > Manage Tokens
After I deleted all of the existing tokens I launched a new Chrome incognito window and navigated to your instance using the side_door url > Logged in with our ServiceNow admin account > went to the email accounts page > clicked 'Authorize Email Account Access' button > logged in with the first Microsoft email account when prompted, and ServiceNow successfully generated an access token.
I then closed the incognito window and reopened a new incognito window, and repeated the process with the other two email accounts (closing the incognito window and reopening a new one after every new Access token). Now I have three IMAP accounts with three separate tokens that are all running at the same time in our environment.
I hope that helps!