Loading

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

게시 일자: Dec 29, 2025
상세 설명

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
솔루션

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 기사 번호

001119207

 
로드 중
Salesforce Help | Article