1
0
mirror of https://github.com/bitwarden/server synced 2026-02-21 03:43:44 +00:00

[PM-18715] - SCIM Revoke User v2 (#7024)

* Migrated SCIM revoke user call to the v2 implementation.

* Correcting feature string
This commit is contained in:
Jared McCannon
2026-02-18 08:09:45 -06:00
committed by GitHub
parent 81120bd24e
commit 8fefae98e4
5 changed files with 85 additions and 8 deletions

View File

@@ -29,7 +29,8 @@ public class RevokeOrganizationUsersValidator(IHasConfirmedOwnersExceptQuery has
Invalid(x, new UserAlreadyRevoked()),
{ Type: OrganizationUserType.Owner } when !hasRemainingOwner =>
Invalid(x, new MustHaveConfirmedOwner()),
{ Type: OrganizationUserType.Owner } when !request.PerformedBy.IsOrganizationOwnerOrProvider =>
{ Type: OrganizationUserType.Owner } when request.PerformedBy is not SystemUser
&& !request.PerformedBy.IsOrganizationOwnerOrProvider =>
Invalid(x, new OnlyOwnersCanRevokeOwners()),
_ => Valid(x)

View File

@@ -139,6 +139,7 @@ public static class FeatureFlagKeys
public const string ScimInviteUserOptimization = "pm-16811-optimize-invite-user-flow-to-fail-fast";
public const string CreateDefaultLocation = "pm-19467-create-default-location";
public const string AutomaticConfirmUsers = "pm-19934-auto-confirm-organization-users";
public const string ScimRevokeV2 = "pm-32394-scim-revoke-put-v2";
public const string PM23845_VNextApplicationCache = "pm-24957-refactor-memory-application-cache";
public const string DefaultUserCollectionRestore = "pm-30883-my-items-restored-users";
public const string PremiumAccessQuery = "pm-29495-refactor-premium-interface";