Skip to content

SCIM: Groups endpoint members operations do not enforce isAdminUser c…#50961

Merged
ahus1 merged 1 commit into
keycloak:mainfrom
martin-kanis:issue-50473
Jul 16, 2026
Merged

SCIM: Groups endpoint members operations do not enforce isAdminUser c…#50961
ahus1 merged 1 commit into
keycloak:mainfrom
martin-kanis:issue-50473

Conversation

@martin-kanis

Copy link
Copy Markdown
Contributor

…heck

Closes #50473

…heck

Closes keycloak#50473

Signed-off-by: Martin Kanis <mkanis@ibm.com>
Copilot AI review requested due to automatic review settings July 16, 2026 15:08
@martin-kanis
martin-kanis requested a review from a team as a code owner July 16, 2026 15:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Prevents SCIM /Groups PATCH operations from modifying memberships of admin-role-bearing users, resolving #50473.

Changes:

  • Rejects admin-user membership additions and removals with HTTP 403.
  • Adds an admin-user test fixture and integration coverage for both operations.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
scim/model/.../GroupCoreModelSchema.java Adds the admin-user protection check.
scim/tests/.../AdminGroupProtectionRealmConfig.java Defines an admin-role-bearing test user.
scim/tests/.../AdminGroupProtectionTest.java Tests blocked membership additions and removals.

@martin-kanis
martin-kanis requested a review from sguilhen July 16, 2026 15:26

@sguilhen sguilhen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @martin-kanis , the PR looks good to me!

@ahus1
ahus1 merged commit 63f564d into keycloak:main Jul 16, 2026
91 checks passed
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.

SCIM: Groups endpoint members operations do not enforce isAdminUser check

4 participants