Repository navigation
fix(graph): [OCISDEV-751] return correct issuerAssignedId on /me - #12727
Merged
mklos-kw merged 1 commit intoAug 6, 2026
Conversation
…cloud#12431) The /graph/v1.0/me endpoint reported the internal user UUID as identities[].issuerAssignedId instead of the OIDC sub. The fast path built the user model from the CS3 context user, which does not carry the external identity. /me now always resolves the user through the identity backend; group memberships are still only expanded on $expand=memberOf. Forward-port of owncloud#12411 to master. Signed-off-by: Julian Koberg <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]> (cherry picked from commit 9f72d77)
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
mzner
approved these changes
Aug 6, 2026
mklos-kw
approved these changes
Aug 6, 2026
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.
Backport of #12431 to
stable-8.2.The
/graph/v1.0/meendpoint reported the internal user UUID asidentities[].issuerAssignedIdinstead of the issuer-assigned identity (the OIDCsub). The endpoint took a fast path that built the user model from the CS3 user in the request context, which does not carry the external identity, so it fell back to the internal UUID./menow always resolves the user through the identity backend, which reads the stored external identity and returns the correct value. Group memberships are still only expanded when$expand=memberOfis requested.The fix shipped in 8.1.0 (#12411) and 8.0.7 (#12635), but
stable-8.2branched off master before the master forward-port landed, so it was never picked up here. Without this, upgrading from 8.1.0 to 8.2.0 would regress the field.The change to
services/graph/is byte-identical to the merged master commit; only the changelog entry differs (PR reference added).go test ./pkg/service/v0/...passes inservices/graph🤖 Generated with Claude Code