How to set Bearer token authentication between system topic and B2 service with Event as webhook

Liangjun Hu 20 Reputation points Microsoft Employee
2025-03-31T07:38:35.0466667+00:00

I want to set the push delivery mode by using system grid, the flow will be like: event hub ->system topic->webhook, so when new data ingested into eventhub, it will be pushed to the webhook directly. I will set microsoft B2 service as the webhook endpoint. I already created an enterprise application, and enabled microsoft identity auth when create the system topic, but the token received by the B2 service only contain basic info like below, so the question is:

  1. How to set the token with the right permission like, mail.ReadWrite?

I already set the api permission with it, but not working
The fficial doc I followed: https://learn.microsoft.com/en-us/azure/event-grid/security-authentication#authenticate-event-delivery-to-webhook-endpoints
https://learn.microsoft.com/en-us/azure/event-grid/secure-webhook-delivery#deliver-events-to-a-webhook-in-a-different-azure-ad-tenantUser's image

Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
439 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.