Skip to main content
Cadet | Tier 2
December 22, 2023
Question

Email Connect action to Outlook- How to connect to shared mailbox not listed in dropdown

  • December 22, 2023
  • 14 replies
  • 899 views
Email connect action for Outlook

I am trying to connect to a shared mailbox but the outlook of the current machine it is connected to currently is not in that shared mailbox. Plus, this is a dropdown list, so the use of variable is not allowed.

Is there a workaround, in AA itself to allow connection to a shared mailbox using Outlook. 

Note: Please do not suggest workaround or changes to be made within outlook as it is not possible for my case for some reasons.

14 replies

nuraneesAuthor
Cadet | Tier 2
January 15, 2024

Hi @Abhay Naik 

Quick update on the issue. 
I have already got the credentials to connect via EWS server: Client ID, Tenant ID, and Client Secret.
However, when tested the connection for the first time, it is not successful.

When using Authentication mode: OAuth2 - Client Credentials, the error is shown as below:

And when using the Authentication mode: OAuth2 - ROPC, it redirects to login page but after that the ‘Need admin approval’ pop up appears as shown below:
 


As of now, no permission has been delegated after the creation of the app in Azure.
May I know what are the permissions to be granted, in my case to connect to a shared mailbox?
 

Cadet | Tier 2
January 29, 2024

@nuranees 
I am also facing a similar scenario. Please let me know if you were able to establish the connection using OAuth2 - Client Credentials mode?
Are you able to connect to the shared email inbox and read the email?

Appreciate your response !!

nuraneesAuthor
Cadet | Tier 2
January 31, 2024

​Hi @Bijesh,

Unfortunately, I am still unable to establish the connection yet and I doubt that I will be able to do so.

Although our Email support team (Azure team) have followed the guide given by AA on the App registration in Azure, we still got the same error as below when using Client credentials authorization mode.

Step-by-step guide: How to setup an App in Azure to use OAuth2 with Client Credentials Flow for EWS Server? (automationanywhere.com)
 

After consulting with AA support team, again, it turns out that there are a few factors that may be contributing to this error.
Please refer to this doc: A360 | Email Connect (EWS): Unable to authorize the application with the provided credentials (automationanywhere.com)


We looked through all the possible causes mentioned in the doc and noticed that one of the requirements is the mailbox to be connected to require an E3 license in Outlook. 
This is our main concern and the reason for why we are unable to proceed with this method as the shared mailbox we are trying to connect to does not have an E3 license.

Hope this answers your question. 

Thank you.

nuraneesAuthor
Cadet | Tier 2
February 26, 2024

Hi @Bijesh ,

Are you still looking into connecting to mailbox using Email server or EWS server via O-Auth?

Are you considering using Outlook method?