Skip to content

fix(graph): [OCISDEV-751] return correct issuerAssignedId on /me - #12727

Merged
mklos-kw merged 1 commit into
owncloud:stable-8.2from
kobergj:backport/stable-8.2/ocisdev-751-issuerassignedid-on-me
Aug 6, 2026
Merged

mklos-kw merged 1 commit into
owncloud:stable-8.2from
kobergj:backport/stable-8.2/ocisdev-751-issuerassignedid-on-me

Conversation

@kobergj

@kobergj kobergj commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Backport of #12431 to stable-8.2.

The /graph/v1.0/me endpoint reported the internal user UUID as identities[].issuerAssignedId instead of the issuer-assigned identity (the OIDC sub). 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. /me now 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=memberOf is requested.

The fix shipped in 8.1.0 (#12411) and 8.0.7 (#12635), but stable-8.2 branched 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).

  • Cherry-picked cleanly, no conflicts
  • go test ./pkg/service/v0/... passes in services/graph

🤖 Generated with Claude Code

…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)
@kobergj
kobergj requested a review from a team as a code owner August 5, 2026 13:22
@kw-security

kw-security commented Aug 5, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@mklos-kw
mklos-kw merged commit 0806aed into owncloud:stable-8.2 Aug 6, 2026
127 of 129 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants