What account to use to "Authorize Email Account Access" (OAUTH2)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2022 04:48 AM
Hi,
we are currently setting up Outlook email accounts using OAUTH2. I have followed steps in KB0816072, but the authorization part is not completelly clear to me and it could provide more detais and screenshots.
KB says I should not use my account, so what account should I use? When I open (in-private) that URL from "Authorize Email Account Access" button, Outlook login page appears, as we use SSO with Azure. If I use credentials for the email account, I am trying to setup, I am able to login, but that email is not associated with any user in ServiceNow, hence I cannot proceed to finish the authorization.
KB also mentions side_door.do and local login, but what account to use? Should I use the build in System Administrator account instead?
Thanks for clarification
Patrik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2022 01:23 AM
Hi Patrik,
Did you find the credentials for the email account?
Please let me know if you find we need this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2022 08:38 AM
Someone solved this?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2022 10:14 AM
It appears that KB0816072 was updated since last time, and it now contains bit more details. I have not read it whole again yet, but it seems to confirm my original assumption to used build-in "System Administrator" (admin) account. I can also confirm that this approach works.
- In Private session login with "admin" account (/login.do or /side_door.do)
- Click Authorize on the email account configuration view
- Login with credentials for that email account
- Account should appear as authorized and Connection Test should result in "Connection Successful"
If you need to setup more email accounts, always use new Private session, to make sure you are prompted to login in step 2. Otherwise you might be signed-in automatically with saved session cookies, which will result in authorization with the wrong account (previous one). However, you can re-use same session to authorize both IMAP and SMTP for the same email account, if the credentials are the same (usually are).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2022 11:58 PM
Thank you Patrick.
I think my issue is here:
Login with credentials for that email account
This the User name from the email account record?