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.

Дополнительные ресурсы

Microsoft Dynamics 365 Connector 2.6 Reference

Номер статьи базы знаний

001119207

 
Загрузка
Salesforce Help | Article