0

Recently Microsoft has started to authenticate user with OAuth 2.0 protocol. I have implemented it in Asp.net Core C# and got token.

Now I am able to access mails from main mail Inbox using Mailkit from Microsoft exchange server using OAuth 2.0. But how can I be able to access mails from shared mailbox?

In my code I have mentioned shared mailbox account id.

My code is as follows

Code Getting exception as "Autheticated but not connected". Please guide

2 Answers2

0

The "Authenticated but not connected" error is unique to Microsoft Exchange IMAP servers and means that your account is not authorized to connect via IMAP.

You will need to be granted permissions for IMAP access by the admin of your tenant.

jstedfast
  • 35,744
  • 5
  • 97
  • 110
0

Need to give shared mailbox permissions to OAuth app as well and shared mailbox will be accessible.