M365 Graph Implementation - 500: An unknown error occurred.

Infos:

  • Used Zammad version: 6.5.1
  • Used Zammad installation type: docker-compose via portainer
  • Operating system: Windows 11
  • Browser + version: Brave / latest

Expected behavior:

Setup Azure App for M365 graph and be able to login to email account

Actual behavior:

Fully configured the app using these instructions:

However upon successful login recieve ‘500: An unknown error occurred.’

Steps to reproduce the behavior:

Install Zammand via Portainer
Configure NPM with SSL for sub.domain.com
Create app via Microsoft — Zammad Admin Documentation documentation instructions (steps followed exactly).
‘Add Account’ - follow login steps, callback is recieved with code, however zammad throws the 500 error with no other description.

I have tried many different tweaks on top of the instructions, single tenant, mutli-tennant, administrators and authorisations, callback URL (I am using the one in the app not in the instructions as the instructions appear to be outdated). No matter what I cant seem to get any further.

Has anyone else experienced a similar issue or can advise where I should be looking for logs.

Also not my NPM is vanilla with SSL cert.

You may want to consider checking Zammads production log. It will tell you what the issue is.

The instructions arent outdated. You‘re looking at the user authentication documentation. However, grap is being used in channel scope.

You have saved me so much grief. Clear as day the issue was my secret I have copied the secret ID instead of the secret. Thanks for taking the time to reply to such a noob issue.

1 Like