Using Authorization header in individual requests with Batch Request API

Michael Kochell 0 Reputation points
2023-05-04T18:13:37.4266667+00:00

Hello,

I'm working on an application that is currently using the batch request API to fetch calendar information for all of my users. There is a new requirement for my application to only use user-delegated permissions. If I try to provide a user's token in the Authorization header of the individual requests in the batch request, the token is not used.

Is it possible to make it so the batch request API respects the Authorization header for each individual request?

Microsoft Security | Microsoft Graph
{count} votes

1 answer

Sort by: Most helpful
  1. TH-4749-MSFT 3,315 Reputation points
    2023-05-05T16:01:10.8833333+00:00

    Hi Michael Kochell,

    Thanks for reaching out. Delegated access would require user authentication. You can try the following oauth workflows to achieve your goal.

    Get access on behalf of a user

    Hope this helps. If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    Thanks.


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.