Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Permission Validation for Hybrid User Role Deletion #22295

Open
BimsaraBodaragama opened this issue Jan 19, 2025 · 1 comment
Open

Add Permission Validation for Hybrid User Role Deletion #22295

BimsaraBodaragama opened this issue Jan 19, 2025 · 1 comment

Comments

@BimsaraBodaragama
Copy link
Member

Current Limitation

Currently, hybrid user role deletion does not validate user permissions before executing the deletion process. This can lead to unauthorized deletions, and violating role-based access control policies.

Suggested Improvement

  • Introduce a method getPermittedUserNamesToBeDeleted to validate and retrieve user names allowed for deletion based on their roles and organizational permissions.
  • Enhance the deletion flow to:
    • Validate user permissions for both restricted and unrestricted roles.
    • Ensure only permitted users are deleted.
  • Implement SQL queries to:
    • Fetch unrestricted user names (NOT_RESTRICTED).
    • Fetch restricted user names with permitted organizational access (RESTRICTED).
  • Handle errors robustly to avoid disruptions in the deletion process.

Version

7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

1 participant