Register an OAuth App

Setting up a new Microsoft 365 account? Follow our basic setup guide to get started.

First, you’ll have to connect Zammad to your Microsoft account as an OAuth app in the Microsoft Entra portal. Once that’s done, you’ll be able to connect as many Microsoft 365 accounts to Zammad as you want, using only active Microsoft 365 browser sessions (no usernames or passwords required).

Preparation

  • Check your FQDN under Settings > System > Fully Qualified Domain Name in the admin interface of Zammad. If it is not correct, change it now. Otherwise the setup of the channel will fail.

  • Go to Channels > Microsoft 365 IMAP Email and click on Connect Microsoft 365 App. Copy the provided callback URL.

Step-by-Step

To get started, head over to Microsoft’s Entra Portal. Make sure to use an admin account for your organization. Otherwise, an admin will have to approve your changes before they can take effect.

Create App

Screenshot shows Entra admin center with application registration screen.
  • Create a new app by going to Applications > App registrations and select New registration.

  • Enter a fitting name and select an account type. Supported types are:

    • Accounts in this organizational directory only (Single tenant)

    • Accounts in any organizational directory (Multitenant)

    • Accounts in any organizational directory (Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)

      Note

      “Personal Microsoft accounts only” are not supported.

  • Under “Redirect URI”, select “Web” as platform and paste your already copied callback URL from Zammad.

  • Click on Register.

Create Secret

Screenshot shows Entra admin center with client secret screen.
  • In Entra, go to “Certificates & secrets” and add a secret by clicking the New client secret button.

  • Enter a description, set an expiry duration and click Add.

  • Copy the string under “Value”, this is the secret. Paste it to Zammad in the “Client Secret” field.

Configure API Permissions

Screenshot shows Entra admin center with api permission screen.
  • Go to “API permissions” and Add a permission.

  • Select “Microsoft Graph” and “Delegated permissions”.

  • Add the following permissions:

    • email

    • openid

    • profile

    • offline_access

    • IMAP.AccessAsUser.all

    • SMTP.Send

Save it by clicking the Add permissions button.

App Configuration

Screenshot showing popup about connecting app
  • In Zammad’s channel configuration, click on Configure App.

  • Enter your app details:

    • Client ID: Application (client) ID

    • Client Secret: Value from client secret

    • Tenant UUID/Name: Directory (tenant) ID (not required for shared mailboxes)

  • Click on Submit.

🍾 Congratulations! Now you’re ready to connect Microsoft 365 accounts to Zammad.