microsoft / microsoft/agent-framework

[Feature]: Ability and sample for x_ms_query_source_authorization parameter of AI Search knowledge base retrieval for context provider

Open
#4,878 0 comments 0 reactions 1 assignee View on GitHub

@westey-m is already working on this.

Since Jun 9, 2026.

needs_pm
Dominant language
Python
Stars
13.6k
Forks
2.3k
Avg merge
2d 45m
Merged PRs (30d)
358

Description

Description

Currently the AI Search context provider does not seem to expose a way to set x_ms_query_source_authorization parameter on the retrieve() call.

This is required to use remote SharePoint knowledge sources to ensure end users are covered by an M365 Copilot license or a pay-as-you-go billing policy.

I'm also not sure how this should ideally be wired up so that apps using or hosting the agent are able to set this on per-request basis.

Importance

Since the PayGo model for the underlying Copilot Retrieval API is now in public preview, this unblocks customers to easily build high-quality custom developments based on SharePoint knowledge for larger workforces without the need for a Copilot license.

Language/SDK

Both

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.