From this document, I can tell Genesys pull family_name and given_name from IDP to replace "No name" at agent side.
However, I found out for my IDP (AWS Cognito) will not include family_name, given_name in the authentication token. Here is my auth token payload, you can see profile
is in the requested scope, which will give permission for family_name, given_name attributes.
{
"sub": "4ab1c09a-7619-4680-9859-ac71f9f2e13b",
"cognito:groups": [
"us-west-2_VHmWO3njV_Google"
],
"iss": "https://cognito-idp.us-west-2.amazonaws.com/us-west-2_VHmWO3njV",
"version": 2,
"client_id": "6mppkfle835ucucrhg1orh2rp5",
"origin_jti": "995a88fd-3fb2-46c9-928b-3b387a9acafb",
"token_use": "access",
"scope": "aws.cognito.signin.user.admin openid profile email",
"auth_time": 1730930646,
"exp": 1731017046,
"iat": 1730930646,
"jti": "8136754e-b7bf-446b-b714-71fec75d8e1b",
"username": "google_103262348320838616042"
}
The actually family_name, given_name is provided in the user info endpoint, https://auth-stage.spotnana.com/oauth2/userinfo
You(Genesys authenticated messaging) has to make request to this endpoint to get it. This endpoint is available in the discovery URL(https://cognito-idp.us-west-2.amazonaws.com/us-west-2_VHmWO3njV/.well-known/openid-configuration) which is provided to Genesys setup for this deployment.
My question is will Genesys pull user name from userinfo endpoint? or it only looks for them in token. If only in token, it is a blocker for me since I have no control for token content.