---
title: "Configure Microsoft Intune Mobile Application Management (MAM)"
sidebar_label: "Configure Microsoft Intune MAM"
---
| Value | Where to get it | Where you use it |
|---|---|---|
| Directory (tenant) ID | Entra app registration overview | Mattermost System Console |
| Application (client) ID | Entra app registration overview | Mattermost System Console |
| Application ID URI | Entra app > Expose an API | Used to form the api://<APPLICATION-ID>/login.mattermost scope reference in Authorized client applications |
login.mattermost scope |
Entra app > Expose an API | Authorized client applications |
| Mobile client application ID | Provided by Mattermost | Entra app > Authorized client applications |
| iOS bundle IDs (prod/beta) | This guide | Intune App Protection Policies |
| Error | Meaning | Admin cause & next step |
|---|---|---|
| Enrollment Failed | Intune MAM enrollment failed due to a technical error. |
Cause: Enrollment could not be completed due to a technical failure (MSAL error, Intune enrollment API failure, identity mismatch, or missing Entra permissions). Behavior: The server is removed immediately and there is no retry option; cached data for that server is wiped. Next step: Fix the underlying issue, then have the user re-add the server in the mobile app. Admin checks: Verify IdAttribute = objectId; confirm identity alignment (objectId ↔ oid); confirm tenant-wide admin consent; confirm App Protection Policy targets the user and the correct iOS bundle ID.
|
| Enrollment Declined | The user declined Intune MAM enrollment. |
Cause: The user canceled the enrollment prompt. Behavior: A Retry option is shown; no server data is removed unless a later technical enrollment failure occurs. Next step: Instruct the user to retry enrollment when ready. |
| Consent Denied | Enrollment cannot complete because required Entra app permissions don’t have tenant-wide admin consent. |
Cause: Tenant-wide admin consent has not been granted for the required delegated permissions on the Entra app registration configured in Mattermost Server. Behavior: The message may appear as if the user denied consent, but the underlying issue is missing admin consent. Next step: In Microsoft Entra, grant tenant-wide admin consent for Microsoft Graph delegated permissions email and profile on the same Entra app registration configured in Mattermost, then have the user retry mobile sign-in.
|
| (silent) | Intune MAM login is not available on this server. |
Cause: The server does not support Intune MAM (feature not available in this build or not enabled for the deployment). Next step: Confirm the server build includes Intune MAM support and the deployment is licensed for Enterprise Advanced. User guidance: Have the user sign in via web/desktop using the standard (non-Intune) SSO flow for their provider (SAML or OpenID Connect) while the server is updated or configuration is corrected. |
| (silent) | Intune MAM is enabled for the org but not configured on the server. |
Cause: Intune MAM isn't fully configured in System Console > Environment > Mobile Security. Next step: Enable Microsoft Intune MAM and ensure Tenant ID, Application (Client) ID, and Auth Provider are set correctly. Admin checks: Confirm the selected auth provider is Entra-backed and required permissions/admin consent have been granted for the Entra app registration. User guidance: Have the user sign in via web/desktop using the standard (non-Intune) SSO flow for their provider (SAML or OpenID Connect) while the server is updated or configuration is corrected. |
| Bot accounts cannot sign in using this method. | The account cannot use Intune MAM sign-in. |
Cause: Bot accounts are not allowed to authenticate via Intune MAM. Next step: Use a human user account for Intune MAM enrollment and access. |
| Your account has been deactivated. Please contact your administrator. | The account is not permitted to sign in. |
Cause: The user is deleted, disabled, or locked in Mattermost. Next step: Re-enable or restore the user account in Mattermost, then retry sign-in and enrollment. |
| (silent) | Intune MAM is not configured for the current sign-in path. |
Cause: Intune MAM isn't configured for the requested authentication path (configuration incomplete or mismatched provider selection). Next step: Confirm Intune MAM is enabled and configured, and the selected Auth Provider matches how users authenticate (OIDC vs SAML). User guidance: Have the user sign in via web/desktop using the standard (non-Intune) SSO flow for their provider (SAML or OpenID Connect) while the server is updated or configuration is corrected. |
| We couldn't complete your sign in. Please try again. | Identity mapping failed during sign-in. |
Cause: The server couldn’t extract or map the identity attribute required for Intune MAM (commonly IdAttribute is misconfigured or the token isn't MSAL v2).Next step: Ensure IdAttribute = objectId, then confirm identity alignment (objectId ↔ oid). Verify the Entra app issues v2 tokens (accessTokenAcceptedVersion = 2).
|
| Your account isn't fully set up yet. Please sign in to Mattermost via the web or desktop app first. | The user does not exist in Mattermost for SAML-based sign-in. |
Cause: When SAML is the selected provider for Intune MAM enforcement, mobile sign-in cannot create a new user. Next step: Have the user sign in once via the web or desktop app to provision the account, then retry mobile sign-in. Admin checks: Ensure provisioning is in place (web/desktop first sign-in, LDAP sync, or another provisioning method). |
| We couldn't verify your sign in. Please try again. | The access token could not be validated. |
Cause: Token validation failed (token malformed, wrong issuer/audience, missing permissions, or Entra configuration mismatch). Next step: Verify the configured Tenant ID and Application (Client) ID match the Entra app registration referenced by Mattermost Server. Confirm tenant-wide admin consent has been granted for Microsoft Graph delegated permissions email and profile on that same app registration. Then confirm identity alignment (objectId ↔ oid) for the affected user.Admin checks: Confirm v2 tokens ( accessTokenAcceptedVersion = 2) and that Microsoft Graph delegated permissions email and profile have tenant-wide admin consent.
|
| Your sign in session has expired. Please try signing in again. | The authentication session expired before enrollment completed. |
Cause: The access token or interactive session expired during sign-in/enrollment. Next step: Have the user sign in again and complete enrollment promptly. Admin checks: If repeated, confirm the device can reach Entra/Intune endpoints during enrollment and prompts aren't being blocked. |
| We couldn't complete your sign in. Please contact your IT administrator. | The access token is missing required claims for sign-in and enrollment. |
Cause: Required claims are missing from the MSAL access token (most commonly oid, or optional claims required by Mattermost).Next step: Confirm MSAL v2 access tokens are issued ( accessTokenAcceptedVersion = 2) and the token includes oid. In the Entra app registration, go to Token configuration and ensure optional claims are added for the Access token: email, family_name, given_name, preferred_username, and upn. Confirm the enforced provider uses IdAttribute = objectId, then verify identity alignment (objectId ↔ oid).
|
| There was a configuration issue. Please contact your IT administrator. | The token tenant does not match the configured tenant. |
Cause: The token was issued by a different tenant than the one configured in Mattermost. Next step: Verify the Tenant ID configured in System Console > Environment > Mobile Security matches the Entra tenant issuing MSAL tokens for the user. |
|
AADSTS650057 |
The Entra app configuration is missing required permissions and/or admin consent. |
Cause: Required Intune MAM API permissions are missing or do not have tenant-wide admin consent. Next step: In the Microsoft Entra admin center, go to Enterprise applications (not App registrations), search for Mattermost Mobile / Mattermost Mobile Beta, then open Permissions and add/grant admin consent for the Intune MAM permissions (for example, https://msmamservice.api.application/.default and Microsoft Mobile Application Management → user_impersonation (Delegated)). Then have the user retry sign-in.
|
| NotLicensed | The server is not licensed for Intune MAM enforcement. |
Cause: Enterprise Advanced licensing is missing or not applied to the server. Next step: Apply an Enterprise Advanced license to the server and confirm the license is active, then retry. |
| HTTP 403 Forbidden | Server-side access is blocked by a gating condition. |
Cause: A server gating condition is preventing enrollment (not an Intune service failure). Next step: Verify Enterprise Advanced licensing, Intune MAM is enabled, Auth Provider selection matches how users authenticate, configured Tenant ID and Application (Client) ID are correct, and tenant-wide admin consent is granted. Then confirm identity alignment ( objectId ↔ oid) and Intune App Protection Policy targeting for the correct iOS bundle ID.
|