Load SCIM export profiles without identity join

Membership profile rows already carry SCIM userName and
name fields; export email comes from userName, not login
identity email.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
This commit is contained in:
Cursor Agent
2026-07-29 21:13:39 +00:00
parent b715107e6c
commit ced25bad32
2 changed files with 2 additions and 4 deletions

View File

@@ -507,7 +507,7 @@ SELECT
p.id, p.id,
p.identity_id, p.identity_id,
p.organization_id, p.organization_id,
i.email_address, '' AS email_address,
p.source, p.source,
p.state, p.state,
p.full_name, p.full_name,
@@ -540,8 +540,6 @@ SELECT
p.updated_at p.updated_at
FROM FROM
iam_membership_profiles p iam_membership_profiles p
INNER JOIN identities i
ON i.id = p.identity_id
WHERE WHERE
p.%s p.%s
AND p.organization_id = @organization_id AND p.organization_id = @organization_id

View File

@@ -331,7 +331,7 @@ func loadSCIMProfileExportInfo(
key := strings.ToLower(*profile.UserName) key := strings.ToLower(*profile.UserName)
result[key] = scimProfileExportInfo{ result[key] = scimProfileExportInfo{
email: profile.EmailAddress.String(), email: scimEmailFromUserName(*profile.UserName),
fullName: profileFullName(profile), fullName: profileFullName(profile),
} }
} }