Verify the following points:
Whether the user has a value for that attribute. If the value is empty, UserInfo does not return any value in JSON.
The Identity Sever has provided the requested scope. You can check this with the TokenInfo endpoint by providing an Access token.
The scope contains the attribute mapping for the missing attribute.
You can access only LDAP attributes as claims at this time.