microsoft / microsoft/agent-framework
[Feature]: Ability and sample for x_ms_query_source_authorization parameter of AI Search knowledge base retrieval for context provider
@westey-m is already working on this.
Since Jun 9, 2026.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.