Skip to content

feat(graph/education): Add support of 'eq' filters on users#2421

Open
rhafer wants to merge 5 commits intoopencloud-eu:mainfrom
rhafer:issue/1599
Open

feat(graph/education): Add support of 'eq' filters on users#2421
rhafer wants to merge 5 commits intoopencloud-eu:mainfrom
rhafer:issue/1599

Conversation

@rhafer
Copy link
Member

@rhafer rhafer commented Mar 3, 2026

This adds support of simple OData filters on the 'education/users' endpoint. Filters of the type '$filter= eq ' are supported now for the following educationUser properties: "displayname", "mail", "userType", "primaryRole" and "externalId"

To keep the endpoints for users and schools somewhat consistent I also added $filter support to the educations/schools endpoint and removed the code that does allow referencing schools directly via externalId.

Closes: #1599

@rhafer rhafer self-assigned this Mar 3, 2026
@rhafer rhafer requested a review from micbar March 3, 2026 15:28
rhafer added 2 commits March 4, 2026 13:51
This adds support of simple OData filters on the 'education/users'
endpoint. Filters of the type '$filter=<attr> eq <value>' are supported
now for the following educationUser properties:

"displayname", "mail", "userType", "primaryRole" and "externalId"

Closes: opencloud-eu#1599
Remove the ability to look up schools by externalId directly (from LDAP
filters, duplicate checks, and the EducationBackend interface). This
approach was somewhat unclean, we shouldn't add more an more attributes
as keys for direct lookup.

Instead, expose externalId filtering via the OData $filter query
parameter on GET /education/schools, following the same pattern as
for education users.

Related: opencloud-eu#1598
@rhafer rhafer force-pushed the issue/1599 branch 2 times, most recently from 0e23d24 to c7f463e Compare March 4, 2026 13:44
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 4, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
10.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

User Lookup by External ID

1 participant