Allow setting Headers on Open Graph Requests

Created on 26 January 2023, about 2 years ago
Updated 19 May 2023, almost 2 years ago

Problem/Motivation

I have a custom module that I am working on to generate an employee directory. But some request to the graph API require adding headers, such as getting a Users "Manager Tree" see https://learn.microsoft.com/en-us/graph/aad-advanced-queries?tabs=http also see https://learn.microsoft.com/en-us/graph/api/user-list-manager?view=graph....

Currently you can't set any request headers

Steps to reproduce

and example is provided on the PHP SDK example page
https://github.com/microsoftgraph/msgraph-sdk-php/blob/dev/docs/Examples...(array(%22Content%2DType%22%20%3D%3E%20%22application/json%22))

Proposed resolution

Add the ability to allow request headers to be set to support some of these advanced query parameters.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States NicholasS

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024