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.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
|
||||||
|
|||||||
@@ -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),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user