Is there a code sample or documentation around how I can customize the userinfo endpoint response using an action? Our use case is we have an oauth based SSO integration that we want to allow admin users to log in as other users. Customizing the userinfo endpoint would make this pretty easy.
I have checked and tested this on my end. I need to make a correction to my initial reply. You can add custom claims to your ID Token. For more information, check out our knowledge article at Adding custom claims to tokens.