8000 Add organization picker to FGAP permissions in Admin UI by UCNDanny · Pull Request #53203 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Add organization picker to FGAP permissions in Admin UI - #53203

Open
UCNDanny wants to merge 4 commits into
keycloak:mainfrom
UCNDanny:main
Open

UCNDanny wants to merge 4 commits into
keycloak:mainfrom
UCNDanny:main

Conversation

@UCNDanny
Copy link
Copy Markdown

Closes #50830

"Specific Organizations" in fine-grained admin permissions had no way to pick
an organization, because organizations weren't in the resource type map. This
adds the picker and makes the evaluation tab send the selected organization.

#51717 is open for the same issue. Sorry for the overlap, I only found it
after I'd built this.

I wrote this with Claude's help.

@UCNDanny
UCNDanny requested review from a team as code owners September 25, 2026 13:25
Copilot AI balanced review requested due to automatic review settings September 25, 2026 13:25
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.

Copilot review overview

🟡 Changes recommended

Disabled-realm handling, empty-state UX, and end-to-end coverage need addressing.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 Medium severity · 3 Low severity

Open (4)
What changed in this PR

Adds organization selection to fine-grained admin permissions and evaluation.

Changes:

  • Registers and implements an organization picker.
  • Sends selected organization IDs during evaluation.
  • Adds English organization-selection messages.
File Description
ResourceType.tsx Registers organization resources.
OrganizationSelect.tsx Implements organization selection.
PermissionsEvaluationTab.tsx Maps organizations into evaluation requests.
messages_en.properties Adds picker translations.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

Copilot review overview

🟡 Changes recommended

The organization resource must be hidden when organizations are disabled, and evaluation behavior needs an end-to-end assertion.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 2 Medium severity · 3 Low severity

Open (5)

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.

Copilot review overview

🟡 Changes recommended

The new documentation contains a broken cross-reference that should target the heading’s explicit ID.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 Medium severity · 3 Low severity

Open (4)
Resolved since last review (2)

Selecting "Specific Organizations" in a Fine-Grained Admin Permissions
permission rendered no picker, because "organizations" was missing from
the resource-type component map. Add an OrganizationSelect modeled on the
client picker and register it.

The permission evaluation tab reuses the same component map, so also
handle Organizations there. Removing an organization marks the form dirty
so the search dropdown enables its Search button.

Closes keycloak#50830

Signed-off-by: Danny <117714228+UCNDanny@users.noreply.github.com>
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.

Copilot review overview

🟢 Approval recommended

The implementation is focused, consistent with existing resource selectors, and covered by end-to-end tests.

Review effort: Balanced
Findings: 1 Medium severity · 3 Low severity

Open (4)

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.

Copilot review overview

🟢 Approval recommended

The picker, evaluation integration, availability filtering, tests, translations, and documentation form a consistent implementation.

Review effort: Balanced
Findings: 1 Medium severity · 3 Low severity

Open (4)

Copilot AI review requested due to automatic review settings September 25, 2026 15:34
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.

Copilot review overview

🟢 Approval recommended

The picker, evaluation integration, availability checks, tests, and documentation consistently address the reported issue.

Review effort: Balanced
Findings: None

Resolved since last review (4)

@UCNDanny
UCNDanny marked this pull request as draft September 25, 2026 15:49
@UCNDanny
UCNDanny marked this pull request as ready for review September 25, 2026 15:49
Copilot AI review requested due to automatic review settings September 26, 2026 18:12
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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI balanced review requested due to automatic review settings September 29, 2026 19:06
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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

Cant select specific organizations in FGAP permission

2 participants

0