Loading
Feature degradation | Gmail Email delivery failureRead More

MuleSoft Dynamics 365 Connector Error "Access Token expired for resource owner id default" With OAuth Client Credentials Connection

Publish Date: Dec 29, 2025
Description

In the MuleSoft Connector using the OAuth Client Credentials connection type for Microsoft Dynamics 365, the below error is encountered:
 

error: Access token expired for resource owner id default
Resolution

With Mule 4, the cause of the error, "Access token expired for resource owner id default" when using the OAuth Client Credentials Connection type for Microsoft Dynamics 365 is because the configured token URL is incorrect ("https://login.microsoftonline.com/oauth2/token").  

Per the documentation, the URL should be "https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token".

SOLUTION

Configure the Token url field as "https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token".
Also, configure the Scopes field as "https://{appID}/.default" (or scopes other than .default according to your requirement).

Important: After making changes to the Token url and Scopes fields, make sure you click OK and save the changes so that they take effect before you test the connection again.

Knowledge Article Number

001119207

 
Loading
Salesforce Help | Article