Skip to content

Add OrganizationUserAuthorizationService and a new member access endpoint - #8214

Draft
r-tome wants to merge 2 commits into
ac/pm-12473/groups-authorization-servicefrom
ac/pm-12473/organization-user-authorization-service
Draft

Add OrganizationUserAuthorizationService and a new member access endpoint#8214
r-tome wants to merge 2 commits into
ac/pm-12473/groups-authorization-servicefrom
ac/pm-12473/organization-user-authorization-service

Conversation

@r-tome

@r-tome r-tome commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

🎟️ Tracking

📔 Objective

📸 Screenshots

var request = new V2_UpdateUserCommand.UpdateOrganizationUserRequest(
organizationUser,
organization,
model.Type.Value,
@codecov

codecov Bot commented Aug 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.69421% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.41%. Comparing base (b674bfc) to head (0ce3450).

Files with missing lines Patch % Lines
...Console/Controllers/OrganizationUsersController.cs 95.08% 2 Missing and 1 partial ⚠️
...ationUsers/OrganizationUserAuthorizationService.cs 98.11% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@                             Coverage Diff                              @@
##           ac/pm-12473/groups-authorization-service    #8214      +/-   ##
============================================================================
+ Coverage                                     63.37%   63.41%   +0.03%     
============================================================================
  Files                                          2396     2398       +2     
  Lines                                        104441   104561     +120     
  Branches                                       9472     9488      +16     
============================================================================
+ Hits                                          66193    66310     +117     
- Misses                                        36004    36005       +1     
- Partials                                       2244     2246       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@r-tome
r-tome force-pushed the ac/pm-12473/organization-user-authorization-service branch from 32a008e to 3f22ae0 Compare August 14, 2026 10:29
@r-tome
r-tome force-pushed the ac/pm-12473/groups-authorization-service branch from 52b6dd3 to 3746148 Compare August 14, 2026 10:29
r-tome added 2 commits August 14, 2026 11:53
…oint

Mirrors CollectionAuthorizationService's pattern for OrganizationUsersController:
one service that fetches its own data and calls the shared static
CollectionRules, instead of the inline ASP.NET authorization checks in Put.
Adds a new, additive PATCH organizations/{orgId}/users/{id} endpoint behind
a feature flag that preserves Put's exact current behavior (full-list model,
the self-add-to-collection and self-editing-own-groups checks,
preserve-readonly-collections merge), reusing the existing request model and
persistence commands (including the V2 email-change path).
@r-tome
r-tome force-pushed the ac/pm-12473/groups-authorization-service branch from 3746148 to b674bfc Compare August 14, 2026 10:54
@r-tome
r-tome force-pushed the ac/pm-12473/organization-user-authorization-service branch from 3f22ae0 to 0ce3450 Compare August 14, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant