Custom connection works but name remains empty in the dashboard (Api Management)

Found the answer myself.
That’s because the key “name” was not in object body
What I did :

    const name = `${profileData.given_name} ${profileData.family_name}`;
    
    const profile = {
      ...profileData,
      name,
    };