Repository navigation
feat!: reuse user request builders for signed-in user - #1198
Open
Gavin Barron (gavinbarron) wants to merge 1 commit into
Open
Gavin Barron (gavinbarron) wants to merge 1 commit into
Gavin Barron (gavinbarron) wants to merge 1 commit into
Conversation
Exclude duplicate /me generation and preserve GraphServiceClient.Me through Users.Item builders with the Graph Core replacement token. Update affected tests and migration guidance. BREAKING CHANGE: explicit Microsoft.Graph.Beta.Me types move to Microsoft.Graph.Beta.Users.Item; BaseGraphServiceClient no longer exposes Me. Requires Graph Core URI and batch-step remapping support. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Gavin Barron (gavinbarron)
force-pushed
the
gavinbarron-beta-me-path-reuse
branch
from
November 17, 2026 00:50
76b9ffa to
2a64a84
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GraphServiceClient.Meby returning the generatedUsers.Item.UserItemRequestBuilderwith the Graph Core placeholder user ID; the runtime rewrites/users/TokenToReplaceto/mewithout a user lookup./meand/me/**from generation and remove 2,095 duplicate generated files (301,812 generated lines), including the generated base-client entry point. Keep/education/meunchanged.Dependency and release coordination
Depends on microsoftgraph/msgraph-sdk-dotnet-core#1146.
Core must be merged and a supporting
Microsoft.Graph.Corepackage released before this SDK can ship. The existing floating4.*dependency must be pinned to the actual minimum supporting version once known; no future package version is invented in this change. Validation used the coordinated Core changes packed locally as4.0.1, not the published package of that version.Breaking changes
Microsoft.Graph.Beta.Memove to their equivalents underMicrosoft.Graph.Beta.Users.Item.BaseGraphServiceClientno longer exposesMe; the publicGraphServiceClient.Meentry point remains./users/TokenToReplacepath. Custom HTTP clients need the Graph URI-replacement handler, and custom adapters bypassing that pipeline must implement equivalent remapping.Validation
net10.0; 58 affected tests passed, including root/nested requests through the real Graph HTTP pipeline, custom base URLs/adapters, raw URLs, and existing generated-builder tests./education/me, absence of oldBeta.Mecode references, and clean diff checks.Microsoft Reviewers: Open in CodeFlow