Repository navigation
[stable-4.0] fix(graph): hide private user attributes from other users - #4061
Conversation
Assisted-by: Claude Code:claude-opus-5-5 (cherry picked from commit dc89168)
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 19 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
asaah262
left a comment
There was a problem hiding this comment.
Thanks for the backport! One difference from the other branches: stable-4.0 doesn't have #2104, so non-admin search results here still have an empty onPremisesSamAccountName. With filterOutPrivateUserAttrs they'd now include the user name, which is why apiTenancy/mutltiTenancy.feature:18 fails (onPremisesSamAccountName: Const failed, it expects ""). It fails in pipelines 5545 and 5559 and passed on #4023.
Do we want to bring the #2104 behaviour to 4.0 as well (and adjust the test to "alice"), or keep 4.0 as it is and drop the user name from the public attributes on this branch?
* fix: Show username in unprivileged search results `onPremisesSamAccountName` is a mandatory attribute according to the spec. There's no harm in returning it in the search results also for unprivileged users. Fixes: opencloud-eu#144 * adapt tests * adapt tests * adapt tests --------- Co-authored-by: Viktor Scharf <[email protected]> (cherry picked from commit 6082e0c)
|
@rhafer Thanks for adding #2104! I checked the cherry-pick against the original: the users.go part is rightly dropped, because filterOutPrivateUserAttrs already returns onPremisesSamAccountName, and the test changes match. The graph unit tests pass locally (also with -race) and CI is green now, including mutltiTenancy.feature. |
Assisted-by: Claude Code:claude-opus-5-5
(cherry picked from commit dc89168)