Clear external_id and user_name when resetting SCIM sources

When a SCIM configuration is deleted, ResetSCIMSources now clears
external_id and user_name so stale values don't cause unique constraint
violations when SCIM is reconfigured.

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-03-14 12:04:17 +01:00
parent a3af41e6a1
commit 2f76eaf4ae

View File

@@ -1372,6 +1372,8 @@ func (p *MembershipProfiles) ResetSCIMSources(
UPDATE iam_membership_profiles
SET
source = 'MANUAL',
external_id = NULL,
user_name = NULL,
updated_at = @updated_at
WHERE
%s