Loading

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

Udgivelsesdato: Dec 29, 2025
Beskrivelse

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
Løsning

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.

Vidensartikelnummer

001119207

 
Indlæser
Salesforce Help | Article