Loading

Microsoft Outlook 365 MuleSoft Connector throws error :"Access token validation failure. Invalid audience."

Veröffentlichungsdatum: Jan 17, 2026
Lösung

SYMPTOM

 When using Microsoft Outlook 365 MuleSoft Connector with the connection type of “OAuth v2.0 Client Credentials”, the following error is seen in MuleSoft logs.

org.mule.runtime.extension.api.exception.ModuleException: Access token validation failure. Invalid audience.
ERROR 2022-02-15 16:35:29,289 [[MuleRuntime].uber.02: [dow-jones-notification-sys].post:\notifications\objectChange:application\json:dow-jones-notification-sys-config.BLOCKING @1eb6714d] [processor: post:\notifications\objectChange:application\json:dow-jones-notification-sys-config/processors/1; event: 2ba90320-8e4f-11ec-b270-38baf853cf37] org.mule.runtime.core.internal.exception.OnErrorPropagateHandler: 
********************************************************************************
Message               : Access token validation failure. Invalid audience.
Element               : post:\notifications\objectChange:application\json:dow-jones-notification-sys-config/processors/1 @ dow-jones-notification-sys:dow-jones-notification-sys.xml:155 (Send mail)
Element DSL           : <outlook365:send-mail userId="6e394aa6-94a6-40e2-95d2-285529152b96" doc:name="Send mail" doc:id="04413902-d5ba-49b5-b14a-b75129650974" config-ref="Outlook365_Outlook365_Config"></outlook365:send-mail>
Error type            : OUTLOOK365:CONNECTIVITY
FlowStack             : at post:\notifications\objectChange:application\json:dow-jones-notification-sys-config(post:\notifications\objectChange:application\json:dow-jones-notification-sys-config/processors/1 @ dow-jones-notification-sys:dow-jones-notification-sys.xml:155 (Send mail))
at dow-jones-notification-sys-main(dow-jones-notification-sys-main/processors/0 @ dow-jones-notification-sys:dow-jones-notification-sys.xml:18)

 

CAUSE

This is caused due to the incorrect URL configured in the Scope field

SOLUTION

The solution here is to add the below URL in the Scope field
https://graph.microsoft.com/.default

Nummer des Knowledge-Artikels

001119010

 
Laden
Salesforce Help | Article