Unable To Retrieve Given Name From User During Rule Flow
Last Updated:
Overview
The customer is not able to retrieve the family_name attribute from their google enterprise connection. In google side they see the following:
{
[...]
"id": "<ID>",
"primaryEmail": "<PrimaryEmail>",
"name": {
"givenName": "<GivenName>",
"familyName": "<familyName>",
"fullName": "<fullName>"
},
But when trying to manipulate one of the passed values from their IdP (family_name) they get the following error (in the tenant logs):
{
[...]
"type": "f",
"description": "Family name not set in IDP response.",
[...]
}
Symptoms
The Application flow fails in the rules flow as the family_name field does not exist
Applies To
- Rules
Cause
Based on the engineers response, this seems to due to a wrong mapping in the google-apps strategy on our end.
Troubleshooting
Logs found:
{
[...]
"type": "f",
"description": "Family name not set in IDP response.",
[...]
}
They are receiving the previously mentioned error because of a validation they have in their rules, which is done to proof that the family_name is not being handled:
if ( typeof( user.family_name ) === "undefined" ) {
return callback( new Error( 'Family name not set in IDP response.' ));
}
Solution
A Backlog Item has been created for this: FDR-323