- Used Zammad version: 3.6.0
- Used Zammad installation source: Apt repository
- Operating system: Ubuntu 18.0.4
- Browser + version: Firefox
Add account in Channels / MS 365, connects to email account
Requests admin permissions when adding account. Admin consent has been granted multiple times.
Steps to reproduce the behavior:
Any ‘add account’ action from MS 365. Have tried multiple times.
I’ve tried re-using the App existing registration from the Settings / Third Party Applications (this was working in 3.5, and continues to work now). I’ve also tried setting up a new registration just for the email access purposes as per https://admin-docs.zammad.org/en/latest/channels/microsoft365/accounts/register-app.html
Both give the same response - when I log into the user account to connect the email, it asks for consent before it will proceed. Even if consent it given, it just requests it again next time I attempt to link to the mail account.
If I connect to the admin account email then it seems to connect the account, but I can’t actually get to the inbox (or any) folder (though, in it’s defence here I can’t connect to that in outlook either yet, I’ve only just assigned the account a mailbox)
I’ve tried my normal user account and the specific account set up for the zammad emails, and get the same result with either - consent is still required.
There is a difference in the ‘create a secret’ step in the MS portal now compared to the guide in readtheDocs - there’s a value and an ID for the secret. Using this ID and value as client ID and secret in Zammad doesn’t work (we get an error sooner in the process then), only using the ID for the app as shown in the guide, then putting the value for the client secret into Zammad. This is consistent with the only other app registration I have using Client secrets in the same way.
I’m guessing there’s something wrong with the MS setup, but I’ve been through it all so many times and can’t find anything wrong.