OPENAM: How to add information to the "User Information" OAuth2 / OpenID Connect endpoint
<p>I'm using OAuth2 with OpenAM 13. I need my client application to be able to retrieve user information by means the OpenAM "User Information" endpoint.
However, I need to add / enhance the information provided to provide custom information in the user profile.</p>

<p>I was not able to see how to do this with the "User Information" endpoint.
However, with the "Token Information" endpoint it is very easy to add information (adding scopes that match the profile name automatically adds the information in the JSON response). I tried the same for the "User Information" endpoint but this didn't work.</p>

<p>In this other POST I have read that the "User Information" endpoint information can be enhanced by using a 'script'. However I was not able to find how to do it:
<a href="https://stackoverflow.com/questions/35060659/openam-use-oauth2-access-token-to-get-user-details">OpenAM - Use OAuth2 Access Token to get User Details?</a></p>

<p>Could someone help with this? I would really appreaciate it.</p>

<p>Thanks so much</p>