few-balloon-32118
02/02/2023, 10:05 AMgiven_name
and family_name
claims.
My mapping schema looks like this:
local claims = std.extVar('claims');
{
identity: {
traits: {
[if 'given_name' in claims.raw_claims then 'firstName' else null]: claims.raw_claims.given_name,
[if 'family_name' in claims.raw_claims then 'lastName' else null]: claims.raw_claims.family_name,
[if 'email' in claims.raw_claims then 'email' else null]: claims.raw_claims.email
},
metadata_public: {
[if 'tid' in claims.raw_claims then 'tid' else null]: claims.raw_claims.tid
}
},
}
The mapping of email
works as it should. I’ve also tried to map the name
field and that works too.
My knowledge of Azure AD is not great, but I stumbled across this page, which may suggest that given_name
and family_name
are optional in some way?shy-beach-55709
03/07/2023, 1:04 PM