Skip to content

Conversation

@rhafer
Copy link
Contributor

@rhafer rhafer commented Jan 5, 2026

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: #144

`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
@rhafer rhafer self-assigned this Jan 5, 2026
@rhafer rhafer added the Type:Bug label Jan 5, 2026
@rhafer rhafer requested a review from ScharfViktor January 5, 2026 15:33
Copy link
Contributor

@ScharfViktor ScharfViktor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@butonic
Copy link
Contributor

butonic commented Jan 6, 2026

the existing tests expect an empty string, but I think we can now expect alice?

diff --git a/tests/acceptance/features/apiTenancy/mutltiTenancy.feature b/tests/acceptance/features/apiTenancy/mutltiTenancy.feature
index e989a0789b9..21a796c1a4e 100644
--- a/tests/acceptance/features/apiTenancy/mutltiTenancy.feature
+++ b/tests/acceptance/features/apiTenancy/mutltiTenancy.feature
@@ -45,7 +45,7 @@ Feature: Multi-tenancy
                   "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
                 },
                 "onPremisesSamAccountName": {
-                  "const": ""
+                  "const": "alice"
                 },
                 "userType": {
                   "const": "Member"

@ScharfViktor
Copy link
Contributor

the existing tests expect an empty string, but I think we can now expect alice?

yes, I'll adapt tests

@ScharfViktor ScharfViktor merged commit 6082e0c into opencloud-eu:main Jan 7, 2026
57 of 58 checks passed
@openclouders openclouders mentioned this pull request Jan 7, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing onPremisesSamAccountName in user search response

3 participants