Skip to content

feat: Implement SSO auto-assign permission management#3062

Merged
AbhishekA1509 merged 11 commits into
mainfrom
feat/auto-assign-user-permission
Feb 27, 2026
Merged

feat: Implement SSO auto-assign permission management#3062
AbhishekA1509 merged 11 commits into
mainfrom
feat/auto-assign-user-permission

Conversation

@AbhishekA1509

@AbhishekA1509 AbhishekA1509 commented Feb 24, 2026

Copy link
Copy Markdown
Member

Description

  • Added AuthorizationGlobalConfigWrapper to handle loading and error states for authorization configurations.
  • Introduced AutoAssignToggleTile for toggling auto-assignment of permissions based on SSO login.
  • Created LearnMoreTippy for providing additional information on auto-assignment.
  • Developed UserAutoAssignedRoleGroupsTable to display role groups assigned via SSO.
  • Implemented UserPermissionConfirmationModal for confirming changes to user permissions.
  • Added common components and constants for SSO configuration management.
  • Updated SSOLogin component to integrate new auto-assign features.
  • Refactored UserAndGroupPermissions to utilize the new AuthorizationGlobalConfigWrapper.
  • Enhanced UserForm to display auto-assigned role groups and related information.
  • Updated routing constants to include new authorization global config route.

Fixes https://github.com/devtron-labs/sprint-tasks/issues/2839

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

- Added AuthorizationGlobalConfigWrapper to handle loading and error states for authorization configurations.
- Introduced AutoAssignToggleTile for toggling auto-assignment of permissions based on SSO login.
- Created LearnMoreTippy for providing additional information on auto-assignment.
- Developed UserAutoAssignedRoleGroupsTable to display role groups assigned via SSO.
- Implemented UserPermissionConfirmationModal for confirming changes to user permissions.
- Added common components and constants for SSO configuration management.
- Updated SSOLogin component to integrate new auto-assign features.
- Refactored UserAndGroupPermissions to utilize the new AuthorizationGlobalConfigWrapper.
- Enhanced UserForm to display auto-assigned role groups and related information.
- Updated routing constants to include new authorization global config route.
@AbhishekA1509 AbhishekA1509 self-assigned this Feb 24, 2026
Copilot AI review requested due to automatic review settings February 24, 2026 12:20
@github-actions

Copy link
Copy Markdown

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n

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

Implements “SSO auto-assign permission management” in the Global Config Authorization area by introducing a new AutoAssign component set and wiring it into SSO login + user/group permission screens.

Changes:

  • Added AutoAssign UI/components (toggle tile, learn-more tippy, confirmation modal, auto-assigned role groups table) and an authorization global-config loader wrapper + service.
  • Integrated AutoAssign into SSO Login and refactored Authorization screens to use the new global-config wrapper.
  • Added a new API route constant for fetching authorization global configuration.

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 13 comments.

Show a summary per file
File Description
src/config/constants.ts Adds Routes.AUTHORISATION_GLOBAL_CONFIG API route constant used by the new global-config service.
src/Pages/GlobalConfigurations/Authorization/UserPermissions/AddEdit/UserForm.tsx Switches User auto-assigned role group UI imports to local AutoAssign components.
src/Pages/GlobalConfigurations/Authorization/UserAndGroupPermissions.tsx Always wraps user/group permission routes with AuthorizationGlobalConfigWrapper to manage auto-assign enablement.
src/Pages/GlobalConfigurations/Authorization/SSOLoginServices/SSOLogin.component.tsx Integrates local AutoAssign toggle + confirmation modal; adjusts payload globalAuthConfigType behavior.
src/Pages/GlobalConfigurations/Authorization/SSOLoginServices/AutoAssign/* New feature module: constants/types/service + UI components and wrapper.
src/Pages/GlobalConfigurations/Authorization/PermissionGroups/List/PermissionGroupContainer.tsx Uses local PermissionGroupInfoBar gated by isAutoAssignFlowEnabled.
CLAUDE.md Adds repo guidance doc (commands, structure, conventions).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

Copy link
Copy Markdown

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n

@github-actions

Copy link
Copy Markdown

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n

@github-actions

Copy link
Copy Markdown

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n

@github-actions

Copy link
Copy Markdown

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n

vivek-devtron
vivek-devtron previously approved these changes Feb 25, 2026
@github-actions

Copy link
Copy Markdown

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n

@AbhishekA1509 AbhishekA1509 changed the base branch from develop to main February 27, 2026 11:19
@github-actions github-actions Bot added PR:Ready-to-Review PR:Ready-to-Review and removed PR:Issue-verification-failed PR:Issue-verification-failed labels Feb 27, 2026
shivani170
shivani170 previously approved these changes Feb 27, 2026
vivek-devtron
vivek-devtron previously approved these changes Feb 27, 2026
@sonarqubecloud

Copy link
Copy Markdown

@AbhishekA1509 AbhishekA1509 merged commit d4a16ea into main Feb 27, 2026
10 checks passed
@AbhishekA1509 AbhishekA1509 deleted the feat/auto-assign-user-permission branch February 27, 2026 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR:Ready-to-Review PR:Ready-to-Review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants