teams Code 65001

How to Fix Microsoft Teams Error 65001

Diagnostic Procedures

  • 1 Identify the exact meaning of the error code
  • 2 Clear cache or credentials related to the software
  • 3 Check service server status for outages
  • 4 Perform a repair or reset on the desktop client
  • 5 Re-authenticate the connection to sync files

How to Fix Microsoft Teams Error 65001

If you are signing in to Microsoft Teams or using an integrated app within a channel and see Error Code 65001, the application is failing to retrieve user or administrator consent for the permissions it requires to run.

This guide helps you understand the cause of this consent failure and outlines how to resolve it using cache clears, web client authentication, or admin intervention.


1. Identify the Exact Meaning of the Error Code

Error Code 65001 maps to the Microsoft Entra ID error AADSTS65001 (ApplicationConsentMissing).

This error occurs when:

  • User Consent is Disabled: The application (Teams or an integration) requires permissions to access your directory data (like profile or calendar), but your tenant has disabled user consent.
  • Missing Admin Consent: The app requires tenant-wide permissions (such as reading all directory profiles) which only an IT Administrator can grant.
  • Interactive Prompt Blocked: The desktop client tries to log in silently but fails because it is unable to display the dialog box asking you to approve permissions.

Purging application caches removes corrupted cache objects that may be suppressing the interactive consent prompt.

A. Windows Steps (PowerShell)

  1. Close Microsoft Teams completely.
  2. Open PowerShell and run:
    Stop-Process -Name "ms-teams" -Force -ErrorAction SilentlyContinue
    Remove-Item -Path "$env:LOCALAPPDATA\Packages\MSTeams_8wekyb3d8bbwe\*" -Recurse -Force -ErrorAction SilentlyContinue
  3. Open the Credential Manager, go to Windows Credentials, and delete any keys containing MicrosoftOffice16 or MicrosoftTeams.

B. macOS Steps (Terminal)

  1. Quit Teams.
  2. In Terminal, run:
    pkill -9 "Microsoft Teams"
    rm -rf ~/Library/Group\ Containers/UBF8T346G9.com.microsoft.teams
    rm -rf ~/Library/Containers/com.microsoft.teams2
  3. Open Keychain Access and delete any cached credentials containing Microsoft Teams.

3. Check Service Server Status for Outages

Consent policies rely on the Azure Portal and Entra ID configuration.

  • Check the Microsoft 365 Service Status Page to ensure Microsoft Entra ID authentication and consent endpoints are fully functional.
  • If your organization is migrating users between tenants, wait for synchronization to finish.

4. Perform a Repair or Reset on the Desktop Client

Performing an application reset ensures that the app configuration is refreshed, forcing it to fetch the latest application configuration.

A. On Windows

Reset Teams V2 using PowerShell:

Get-AppxPackage -Name "MSTeams" -AllUsers | Reset-AppxPackage

B. On macOS

Reset default parameters:

defaults delete com.microsoft.teams2
rm -f ~/Library/Preferences/com.microsoft.teams2.plist

5. Re-authenticate the Connection to Sync Files

To bypass client-side blocks and trigger the required consent prompt, you must authenticate through a web browser.

  1. Open a new private browser window (Incognito/InPrivate).
  2. Go to the Microsoft Teams Web Client.
  3. Sign in using your organization credentials.
  4. If a prompt appears asking to grant permissions to the app, check the box “Consent on behalf of your organization” (if you are an admin) and click Accept.
  5. Once authenticated in the web client, open your desktop Teams app and sign in. It will now pull the consented token.

If you are not an administrator and the app requires admin approval, you will see a screen stating “Approval Required”. You must click “Request Approval” or contact your IT administrator and provide them with the following link to grant consent:

https://login.microsoftonline.com/common/adminconsent?client_id=YOUR_CLIENT_ID

(Replace YOUR_CLIENT_ID with the Application Client ID displayed in the error details).


6. Summary Quick Reference Checklist

ActionStepsExpected Outcome
Verify Consent FlowLog in to teams.microsoft.com in Private browserTriggers the missing OAuth consent popup.
Clear App CacheDelete files in %localappdata%\Packages\MSTeams_8wekyb3d8bbweForces the app to fetch new permission scopes.
Admin Portal CheckAdmin goes to Entra ID -> Enterprise ApplicationsEnables user consent or grants tenant-wide approval.
Delete Saved KeyringClear Mac Keychain or Windows Credential ManagerPrevents silent login attempts using expired scopes.
Reset Desktop AppRun Reset-AppxPackage in PowerShellClears corrupt local client app manifests.