Azure Monitor webhook integration with oauth fails to receive events with 401 unauthorizedIssue Azure Monitor webhook integration with oauth fails to receive events with 401 unauthorized. Set up Azure Monitor secure webhook with Oauth authentication based on below document, Even after the proper configuration per doc you would see User Not Authenticated, https://www.servicenow.com/docs/bundle/xanadu-it-operations-management/page/product/event-management/task/azure-events-authentication.html Below is the sample instance logs for the tx for /api/sn_em_connector/em/inbound_event , 2025-03-28 12:37:46 (407) API_INT-thread-4 SYSTEM txid=xxxxxx HTTPUtil User agent with HTTP/1.1 and no encoding: IcMBroadcaster/1.02025-03-28 12:37:46 (417) API_INT-thread-4 SYSTEM txid=xxxxxx OIDCProvider SEVERE *** ERROR *** Cannot find oauth_oidc_entity for issuer https://sts.windows.net/xxxxxxxx/ with any of the following client_ids: api://xxxxxxxxxxx2025-03-28 12:37:46 (418) API_INT-thread-4 SYSTEM txid=xxxxxx User WARNING *** WARNING *** Oauth authentication failed for access token axxxx...xxxxxxx(len=1312). No user found.2025-03-28 12:37:46 (418) API_INT-thread-4 SYSTEM txid=xxxxxx HTTPAuthorization WARNING *** WARNING *** Authentication profile xxxxxxxxxxxx: doAuth check failed, detail message: Failed to authenticate request using Bearer token.2025-03-28 12:37:46 (419) API_INT-thread-4 SYSTEM txid=xxxxxx TimingLogger #814031 [REST API] RESTAPIProcessor : User Not Authenticated2025-03-28 12:37:46 (419) API_INT-thread-4 SYSTEM txid=xxxxxx HTTPSessionTimeoutManager DEBUG: Session inactivity timeout changed for unauthorized session. Inactive_interval=300 seconds2025-03-28 12:37:46 (419) API_INT-thread-4 SYSTEM txid=xxxxxxx LocalhostTransactionLogger *** End #814031 /api/sn_em_connector/em/inbound_event, user: guest, total time: 0:00:00.000, processing time: 0:00:00.000, CPU time: 0:00:00.000, SQL time: 0:00:00.001 (count: 8), Total memory allocated: 2.29MB, source:xx.xx.xx.xx, type: rest, origin scope: global , method:null, api_name:null, resource:null, version:null, user_id:xxxxxxxxxxxxxx, response_status:401 Release Any version Cause The error occurred due to incorrect configuration of the Azure OIDC Provider, specifically incorrect claim value for the JWT Claim Validation. Resolution Please always check the JWT Claim Validation for the Azure OIDC Provider Configuration as we have seen the claim value being modified to a value other than "461e8683-5575-4561-ac7f-899cc907d62a" which is a constant value, and will be set by default on app installation, but if this record is modified the authentication will fail. And if the customer uses v1 tokens, we also need to change claim name to `appid` instead of `azp` For additional information on setting the secure webhook, registration and exposing an API, Please check below document. https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1208357