
User16148822500136406721 (Customer) asked a question.
Hi,
We are trying to utilize Okta OIDC App using 3rd party (AWS Cognito) to leverage authentication for our application. We configured Cognito attribute mapping to retrieve id_token, access_token, given_name, email, family_name from OKTA. But we also need other attributes like title, samAccountName / employeeNumber and the groups that user has been assigned in OKTA. Using attribute mapping we are unable to get those three attribute details. So tried userinfo endpoint to fetch the details. Still I am not seeing title, samAccountName / employeeNumber or the groups in userinfo response. Below is the response of userinfo.
Please let know how to fetch these 3 values.
{
"sub": "XXXXXXXXXXXXXXXXXXX",
"name": "Sriram Ravi",
"locale": "en-US",
"email": "XXXXX@XXXXXXXX.com",
"preferred_username": "XXXXX@XXXXXXXX.com",
"given_name": "Sriram",
"family_name": "Ravi",
"zoneinfo": "America/Los_Angeles",
"updated_at": 123456789,
"email_verified": true
}
Thanks,
Sriram

Hi Sriram,
This is Marius with Okta support. I would strongly suggest opening up a support ticket with us as this requires thorough investigation from our API Access Managemet team.
Thank you,
Marius Dinu
Okta T2 TSE