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:
@@ -507,7 +507,7 @@ SELECT
|
||||
p.id,
|
||||
p.identity_id,
|
||||
p.organization_id,
|
||||
i.email_address,
|
||||
'' AS email_address,
|
||||
p.source,
|
||||
p.state,
|
||||
p.full_name,
|
||||
@@ -540,8 +540,6 @@ SELECT
|
||||
p.updated_at
|
||||
FROM
|
||||
iam_membership_profiles p
|
||||
INNER JOIN identities i
|
||||
ON i.id = p.identity_id
|
||||
WHERE
|
||||
p.%s
|
||||
AND p.organization_id = @organization_id
|
||||
|
||||
@@ -331,7 +331,7 @@ func loadSCIMProfileExportInfo(
|
||||
|
||||
key := strings.ToLower(*profile.UserName)
|
||||
result[key] = scimProfileExportInfo{
|
||||
email: profile.EmailAddress.String(),
|
||||
email: scimEmailFromUserName(*profile.UserName),
|
||||
fullName: profileFullName(profile),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user