Draft
Fix #27728: Add SCIM2 integration tests for super admin deletion protection#27731
Conversation
|
|
…ction Agent-Logs-Url: https://github.com/wso2/product-is/sessions/9a99a119-a51c-4d65-b7a6-9d3436d5c470 Co-authored-by: indeewari <4128062+indeewari@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix hide delete option for super admin user in console UI
Fix #27728: Add SCIM2 integration tests for super admin deletion protection
May 4, 2026
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



The console UI exposes a delete action for the super admin user to non-super-admin users — the API blocks the deletion, but the option should not be visible at all. The UI fix belongs in
wso2/identity-apps(features/admin.users.v1/components/users-list.tsx); this PR adds backend integration tests toproduct-isthat validate the API-level enforcement.Changes
New:
SCIM2SuperAdminProtectionTestCase— two test cases covering the core protection scenarios:testSuperAdminCannotDeleteSelf— super admin attempting self-deletion via SCIM2 receives a 4xx responsetestNonSuperAdminCannotDeleteSuperAdmin— a user created and added to the admin group cannot delete the super admin; validates the specific backend guard described in the issuetestng.xml— registers the new class in theis-tests-scim2test groupUI fix (identity-apps)
The corresponding console fix requires:
realmConfigsis already declared in the component's props interface but was not being destructured in the component body.Original prompt
This pull request was created from Copilot chat.