Microsoft 365 add account error

Infos:

  • Used Zammad version: 6.2.0-1702303938.81e0c1fd.jammy
  • Used Zammad installation type: package
  • Operating system: Ubuntu 22.04.3 LTS
  • Browser + version: Chrome Version 120.0.6099.71 (Official Build) (64-bit)

Expected behavior:

*Register Zammad as OAuth app on Microsoft

*Email is then read using the Outlook mail REST API

Actual behavior:

*Register Zammad as OAuth app on Microsoft

*Try to add Account and receive the following error:
ERROR – : Can’t use Channel::Driver::Imap: #<Net::IMAP::BadResponseError: User is authenticated but not connected.>

*Ignore and enable account and receive the following errors:

ERROR – : User is authenticated but not connected. (Net::IMAP::BadResponseError)
ERROR – : User is authenticated but not connected. (Exceptions::UnprocessableEntity)

Steps to reproduce the behavior:

  • Same as above

Is IMAP required to be enabled on the account? If so, is there a reason Outlook mail REST API isn’t used?

Hi @ehosch. AFAIK you need to enable IMAP on the account level, but I am not 100% sure though.

Maybe this helps a little bit to configure it correctly.

Enabling IMAP did work so I think that should be documented in the instructions. Or better still, utilize the Outlook Graph API instead.

It indirectly is:

https://admin-docs.zammad.org/en/latest/channels/microsoft365/accounts/register-app.html

Is there any plan to use Graph API instead of IMAP in the future?

Possibly. Nobody can tell.
That’s a decision that has to be made at some point - a starter for this to happen is to look into the feature request section and add one if not yet available here:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.