How SuiteCRM connects to Microsoft 365 mail with OAuth
A team that wants shared inbound mailboxes and outbound sending from SuiteCRM on Microsoft 365, without basic authentication, needs two things: an Entra ID app registration for SuiteCRM and a group External OAuth Provider record inside SuiteCRM that uses the app's client details. Outbound email accounts configured with OAuth arrived in SuiteCRM 8.8.1, released on August 6, 2025, so confirm your target version includes that release before you plan outbound sending around it.
A group provider is meant for every user whose mailbox sits under one shared domain, such as an onmicrosoft.com tenant. Because the client ID and secret are entered once on the provider record, the individual mail accounts in that tenant can reuse it instead of each user registering their own app. The practical decision is whether all the mailboxes you need share that domain. If some sit under a different domain, or belong to people outside your tenant, you will need a separate provider and app registration for them, so map your mailboxes to domains before you create any records. Also confirm with your Microsoft 365 administrator which permissions the app registration may request and who approves admin consent.
This page does not walk through the Azure portal clicks, redirect URI settings, mailbox permissions or the inbound and outbound account configuration screens. Follow the SuiteCRM admin guide for configuring a Microsoft OAuth provider and the External OAuth Provider overview for those steps. Test each mailbox on a staging instance first, because a client secret that expires or a tenant policy change can stop sync without an obvious error in the CRM.
What you need before you register the app
Registering the app is the quick part. The work before it is confirming that the SuiteCRM version, hosting stack, admin roles and redirect address line up, so the registration matches the environment it will serve. Check these items with your SuiteCRM and Microsoft 365 administrators before anyone opens the Azure portal.
SuiteCRM 8.10 and its supported stack
Confirm the SuiteCRM 8 version you run and check it against the compatibility matrix for 8.10. That release supports PHP 8.2, 8.3 and 8.4, Apache 2.4, and MariaDB or MySQL on Linux, Unix or macOS. The OAuth outbound email feature was added in 8.8.1, so any instance older than that cannot use this setup. Record the exact version in your change request.
Compatibility matrixEntra ID and Exchange admin roles
Someone with rights to register applications in Entra ID must create the app, and someone who can grant admin consent to Microsoft Graph mail permissions must approve them. Confirm who holds those roles before the project starts, because a delay here stalls every later step. Ask your Exchange team whether they will also need to review mailbox access policies for the group mailboxes.
Redirect URI that matches the hostname
The redirect URI registered in Entra ID must match the address users reach SuiteCRM on, including the scheme and path SuiteCRM expects. A mismatch between the public hostname, a load balancer name and the registered value is a common cause of failed sign-in. Decide the production hostname first, then register it exactly as SuiteCRM documents.
Staging instance for the first run
Set up a staging SuiteCRM instance that mirrors production hosting, and connect it to a test mailbox before any shared group mailbox is touched. Use a separate Entra ID app registration for staging so its redirect URI and secret can be rotated without affecting production. Plan to back up the files and database before any configuration change.
Mailbox ownership and scope
List the group mailboxes that will be imported and the outbound addresses that will send from SuiteCRM. Confirm each one belongs to the Microsoft 365 tenant that the group OAuth provider will cover, since a group provider is intended for accounts that share one domain. Mailboxes outside that tenant will need a different connection plan.
How the app, provider and mailbox fit together
The flow starts in the Microsoft Entra ID tenant, where an app registration issues a client ID and secret for SuiteCRM. Those values go into one group External OAuth Provider record in SuiteCRM, which serves every user whose account shares the tenant domain. The inbound group mailbox and the outbound sending account both draw on that single record, so check that the mailbox sits in the same domain and that the secret is stored outside the database.
Entra app registration, group OAuth provider and the two mail paths in SuiteCRM.
Configuration sequence from app registration to a working mailbox
This sequence takes a Microsoft 365 tenant from an Entra ID app registration to a SuiteCRM group OAuth provider, an inbound group mailbox that imports mail, and an outbound account that sends without basic authentication. Each step closes with a check so problems surface before users depend on the mailbox.
Confirm tenant and mailbox ownership
Before opening the Azure portal, the Microsoft 365 administrator and the SuiteCRM administrator agree which tenant, domain and group mailboxes will be connected, and who holds the rights to create app registrations and grant consent. Record the mailbox addresses that SuiteCRM will import from and send as. The step is done when both administrators have a written list of tenant, domain and mailbox names and confirm that the tenant can create app registrations for this purpose. Confirm these rights with your Microsoft 365 administrator, since tenant policies differ.
Register the SuiteCRM app in Entra ID
In the Azure portal, open App Registrations and create a new registration for SuiteCRM, using a name that identifies the environment, such as production or staging. Keep the registration separate for each environment so that a test instance never shares credentials with the live CRM. The step is done when the registration exists and its Application (client) ID and Directory (tenant) ID are copied into your change record. Follow the SuiteCRM Microsoft OAuth Provider guide for the exact fields shown in the portal, as the portal layout changes over time.
Set the redirect URI and create the client secret
Add the redirect URI that the SuiteCRM Microsoft OAuth Provider guide specifies for your SuiteCRM base URL, then create a client secret under the registration's credentials. Copy the secret value immediately, because the portal does not show it again, and store it in your secrets manager rather than in email or a ticket. The step is done when the redirect URI matches the SuiteCRM hostname exactly, including scheme, and the secret is stored. A mismatched redirect URI is the most common reason the token exchange in the next step fails.
Grant the mail permissions the mailboxes need
In the app registration's API permissions, add the Microsoft Graph permissions required for the mail access SuiteCRM uses, then have a tenant administrator grant admin consent. Confirm the exact permission names against the SuiteCRM Microsoft OAuth Provider guide, because the set depends on whether you connect inbound import, outbound sending or both. The step is done when the permissions show as granted in the portal for the tenant. Missing consent produces errors that look like credential problems, so check consent status before troubleshooting the secret.
Create the group External OAuth Provider in SuiteCRM
In SuiteCRM, open the administration panel, go to the External OAuth Provider settings and create a Microsoft provider using the Application (client) ID, the client secret and the tenant details from the registration. Because a group provider is meant for all users whose accounts share one domain, such as an onmicrosoft.com tenant, the client ID and secret are entered once for the group. The step is done when the provider saves and the SuiteCRM administrator can start an authorization from the provider record without an error page.
Verify the token exchange
Start the authorization flow from the provider record, sign in with an account that has access to the target group mailbox, and approve the consent prompt. Return to SuiteCRM and confirm that the provider shows a valid, unexpired token for the connected account. The step is done when the token exchange completes without an error message. If it fails, compare the redirect URI, tenant ID and secret against the registration before changing any other setting, and check the consent status from the previous step.
Add the inbound group mailbox and run an import test
Create the inbound email account in SuiteCRM for the group mailbox address, select the OAuth provider created in the previous steps as its authentication method, and set the folder and import options your team has agreed. Run a manual import or wait for the scheduled job to run once. The step is done when a test message sent to the group mailbox appears in SuiteCRM under the expected account and the import log shows no authentication errors. Confirm that the scheduler is running, since inbound import depends on it.
Add the outbound account and send a test message
Create an outbound email account in SuiteCRM that uses the same OAuth provider, as the SuiteCRM 8.8 release notes describe support for outbound accounts configured with OAuth. Send a test message from the account to an internal address that you control, and check that it arrives with the group mailbox as sender. The step is done when the test message is delivered and the send log in SuiteCRM records success. Repeat the send from a user record that is allowed to use the account, because permissions can differ from the administrator's view.
Which Entra ID values map to which SuiteCRM settings
This table matches each value you collect from the Entra ID app registration and mailbox setup to the SuiteCRM External OAuth Provider or email account field it fills, and names who should own that value. Read it before you start the Azure portal steps so you know which values to copy, which to keep in a secrets store, and which must match exactly. The main takeaway is that the client secret and tenant domain need the most careful handling, and the group versus personal choice decides how many times you enter credentials.
| Entra ID value | Where it goes in SuiteCRM | Who owns it |
|---|---|---|
| Application (client) ID | Client ID on the External OAuth Provider record, copied from the SuiteCRM app registration | Microsoft 365 administrator who created the app registration |
| Client secret | Client secret on the External OAuth Provider record. Store the value in your secrets process, not in shared notes | Microsoft 365 administrator, rotated under your credential policy |
| Redirect URI | Must match exactly the redirect URI registered in Entra ID for the SuiteCRM instance, including the host name | Platform team that operates the SuiteCRM hostname |
| Tenant domain (for example, an onmicrosoft.com domain) | Domain that the group OAuth provider applies to, so all accounts under that domain share one provider record | Microsoft 365 administrator who confirms the domain in the tenant |
| Mailbox address | Email account address in SuiteCRM, which must sit under the domain covered by the provider record | Mailbox owner or shared mailbox owner in your organization |
| Group provider versus personal provider | Group provider entered once for all accounts on the domain. Personal setup applies to one user's own credentials | CRM administrator, with approval from the Microsoft 365 administrator |
| Permissions granted to the app registration | Mail permissions the app needs for the mailbox type you plan to use, confirmed in Entra ID before testing | Microsoft 365 administrator, documented in the change record |
| Redirect and sign-in test result | Confirmation that the SuiteCRM account completes the consent flow and can send or fetch mail | CRM administrator, verified in a staging instance first |
Securing the mail connection
The mail connection gives SuiteCRM read and send access to real mailboxes, so its security depends on what the Entra ID app is allowed to do, where its secret lives and who can change the provider record. The cards below cover the controls to set and review before the group mailbox goes live.
Least-privilege mail permissions
Grant the app only the Microsoft Graph mail permissions the chosen mailbox pattern needs, and confirm each one with the current SuiteCRM setup guide before consent. Inbound group mailboxes and outbound sending may need different scopes, so do not request broad mailbox access for both by default. Record who granted admin consent and when, and reconfirm the list after each SuiteCRM upgrade.
Microsoft OAuth guideClient secret rotation and storage
The client secret in the External OAuth Provider record is a credential that can read and send mail. Set an expiry date in Entra ID, store the value in your secrets manager rather than in a ticket or spreadsheet, and plan the rotation window so the change is made in SuiteCRM before the old secret expires. Confirm with your administrators who can view the stored value in the database and backups.
Restricting provider record edits
Limit edit rights on External OAuth Provider records to a small named group of administrators, and keep ordinary user roles unable to change client IDs, secrets or redirect settings. Because a group provider is shared by every user on the tenant domain, a single edit can change mail access for the whole group. Review role assignments after staff changes.
Auditing the shared group mailbox
Decide who reads the shared inbox inside SuiteCRM, and check which records imported emails are linked to and who can see them. Review sent-mail activity on a schedule, and confirm that automated imports and outbound sends are traceable to the mailbox account. Ask your SuiteCRM partner or administrator how audit logs are retained in your deployment before relying on them.
Separating staging and production apps
Register a separate Entra ID app for staging and for production, each with its own redirect URI, client secret and External OAuth Provider record. This stops test traffic from using production mail credentials and lets you revoke one environment without affecting the other. Test mailboxes in staging should not point at real customer folders.
Why the mailbox connection fails and how to fix it
This table lists the failures most likely when connecting Microsoft 365 mailboxes to SuiteCRM through an External OAuth Provider, with the usual cause and the fix for each. Work down the rows in order when a connection test fails, since the first two causes account for most sign-in errors.
| Failure | Likely cause | Fix |
|---|---|---|
| Redirect URI mismatch | The redirect URI registered on the Entra ID app does not match the callback URL SuiteCRM uses, often because the hostname, scheme or path differs between test and production. | Copy the exact redirect URI from the External OAuth Provider settings into the app registration, then retest. Keep one app per environment so each has its own URIs. |
| Consent or admin approval not granted | The requested Microsoft Graph permissions were not consented by a user or tenant administrator, so the token request is refused. | Ask the tenant administrator to grant admin consent for the app's mail permissions in Entra ID, then have the mailbox owner sign in again. Confirm the exact permissions with the SuiteCRM Microsoft OAuth guide. |
| Client secret expired | The client secret on the app registration has reached its expiry date, and the stored secret in SuiteCRM no longer authenticates. | Create a new client secret in the app registration, enter it in the group OAuth provider record, and record the expiry date in your renewal calendar before it lapses. |
| Mailbox outside the group domain | The group provider is tied to one domain, such as an onmicrosoft.com tenant, so a mailbox on a different domain or tenant cannot use its client ID and secret. | Confirm the mailbox's domain matches the group provider's domain. For mailboxes on other domains, plan a separate provider or a different connection method, and confirm the approach with your Microsoft 365 administrator. |
| Outbound sending blocked by version | The SuiteCRM version predates outbound email accounts configured with OAuth, so outbound accounts can only use basic settings. | Confirm the installed version. Outbound OAuth accounts were added in SuiteCRM 8.8.1, so upgrade to a supported release that includes that feature before configuring outbound OAuth. |
| Basic authentication still enabled | Mailboxes or the tenant still allow basic authentication for SMTP or IMAP, so a fallback login may appear to work while the OAuth path is never tested. | Test the OAuth connection on its own and confirm it succeeds. Ask your Microsoft 365 administrator to confirm basic authentication policies for the mailboxes in scope. |
Questions teams ask before connecting Microsoft 365 mail
What drives the cost of connecting Microsoft 365 mail to SuiteCRM?
The cost depends mostly on how many mailboxes and tenants are involved, how many mail flows need to be configured, and how much review the client's approval process requires. Each mailbox adds setup, testing and user communication work, and a single group mailbox is usually simpler than a set of personal ones. Cost also rises with permission reviews, staging tests and any custom sync rules. Ask any provider for a quote that lists mailboxes, tenants, environments, admin sessions and the testing included, so you can compare scope rather than headline totals.
How long does a Microsoft 365 OAuth email setup take?
The working time is often short, but elapsed time is usually set by approvals. Creating the app registration, setting the redirect URI and entering the client details in SuiteCRM are hands-on steps. Most of the calendar time goes to security approval of the app registration, admin consent, testing on a staging instance and sign-off on which mailboxes are connected. Ask your Entra ID and Exchange admins which approvals apply before you agree a date, and plan for a retest if the first tests expose a permission gap.
Can our own team connect Microsoft 365 mail to SuiteCRM without a partner?
Yes, a capable team can do it, provided it has access to the SuiteCRM admin panel, a tenant administrator who can register the app and a mail administrator who can check Exchange settings. The SuiteCRM admin guide describes the Azure portal steps and the External OAuth Provider setup. The main risks for an internal team are testing on production by mistake, granting broader permissions than needed and missing mailbox-specific behavior. A partner adds value when the team lacks time for staging tests, a formal permission review or a documented handover.
What do we need from our Entra ID and Exchange admins?
You need an Entra ID administrator who can create an app registration, add a redirect URI, create a client secret and grant any required consent. You also need an Exchange administrator who can confirm which mailboxes the app can read and send from, and who can review mailbox permissions. Agree in advance who owns the client secret, where it is stored and when it will be rotated. Both admins should review the permission list before anything is connected to production.
Is a group OAuth provider right for a shared mailbox?
A group OAuth provider suits accounts that share one domain, such as an onmicrosoft.com tenant, because the client ID and secret are entered once for all users in that domain. The SuiteCRM admin guide describes this model. Shared inbound mailboxes such as sales or support addresses usually fit it well. Confirm with your tenant administrator that every account using the provider belongs to the intended domain, since a broader scope than expected is a security concern.
When is basic authentication not an acceptable fallback?
Basic authentication should not be the fallback when your Microsoft 365 tenant or security policy no longer permits it, or when your risk owner has not approved password-based access for a mailbox. In those cases, the team must use OAuth or agree an alternative with the tenant administrator before go-live. Do not plan a fallback that relies on a password you cannot rotate or audit. Ask your Entra ID administrator to confirm the current tenant policy for legacy authentication before you design the connection.
What should we test on staging before going live?
Test on a staging SuiteCRM instance first, following the migration and configuration guidance in the SuiteCRM documentation. Check that the OAuth connection completes, that inbound mail imports to the intended group mailbox, and that outbound messages send from the right account. Also check that a user outside the intended group cannot see the mailbox, that token refresh works after a day, and that errors are visible in the logs. Keep a record of each test and its result for your permission review.
Does DeployOpen's work include the approvals and the permission review?
DeployOpen plans and implements the connection inside your own infrastructure, covering the SuiteCRM configuration, staging tests, handover notes and the evidence your reviewers need. Approvals from your Entra ID and Exchange teams remain your decision, and DeployOpen does not issue audit reports or certifications. The exact deliverables, including whether permission review or retesting is included, are set out in the written scope before work starts.
What to confirm with your Microsoft 365 admins
Start by confirming the tenant state with the Microsoft 365 administrators before any app registration is created. The first question is whether basic authentication is disabled for the mailboxes SuiteCRM will read or send from. If it is still enabled, the admins should know that a move to OAuth is planned, and they should decide whether legacy protocols will be turned off for those accounts once the connection works. Ask them to confirm this against the current Microsoft requirements for their tenant, because the rules for legacy authentication change over time and this page does not replace that check.
Next, agree which mail permissions the organization's policy allows for an app registration. SuiteCRM needs delegated access to mail for the accounts it connects, and the admins should confirm whether they grant consent themselves, whether an approval workflow applies, and whether mailbox-scoped restrictions are available in their environment. Ask who owns the app registration, who holds the client secret, how the secret is rotated, and what happens to the connection if the owner leaves. These answers decide whether the setup can be audited and maintained after the project team has moved on.
Finally, decide with the admins whether each use case needs a group mailbox or a personal mailbox. A shared inbox that receives enquiries for a team usually fits a group mailbox, while a salesperson's own correspondence usually belongs in a personal mailbox connected under that user's account. Confirm that the chosen mailboxes exist in the tenant, are licensed, and sit under the same domain if you plan to use one group OAuth provider record. Record the decision for each mailbox, because it determines who sees the imported email in SuiteCRM and how outbound sending appears to recipients.
How DeployOpen works on this
DeployOpen scopes the Microsoft 365 connection for your SuiteCRM environment in writing before work starts, then builds the Entra ID app registration, the group External OAuth Provider and the mailbox settings inside your own infrastructure. Each step is tested with your mailboxes and handed over with documentation your administrators can run.
How we scope
- Engagements are fixed-scope, with the mailboxes, sending needs and tenants agreed in writing before work starts.
- We confirm which inbound group mailboxes and outbound sending accounts SuiteCRM will use, and who owns each one.
- The written scope states the SuiteCRM version, hosting location and the Entra ID tenant that the app registration will live in.
How we build
- We register the SuiteCRM app in Entra ID, set the redirect URI and create the group External OAuth Provider in SuiteCRM.
- We configure inbound group mailbox import and outbound email accounts that send through OAuth rather than basic authentication.
- We test sending, receiving and token refresh with your test mailboxes on a staging instance before any production change.
How we hand over
- You receive a written record of the app registration settings, redirect URI, permissions and where the client secret is stored.
- We document the mailbox configuration, sync schedule and the checks your team runs when mail stops flowing.
- We walk your administrators through secret rotation and the steps to repeat the setup in a second environment.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, including retesting after SuiteCRM minor releases.
- Retainers can cover client secret renewal, Entra ID policy changes and mailbox configuration reviews on a regular cycle.
- Your team can confirm retainer terms, response expectations and included work when you request a quote.

