Accessing User Profile fields via /userinfo endpoint

When an authenticated user calls my API I get their user info via the /userinfo endpoint, passing the access token they used in their API call.

This endpoint doesn’t return all the fields from the user profile object, namely I want to get the following:

Any ideas how I can get these extra attributes from /userinfo without having to make more than 1 API call every time a user makes a request?

Thanks

Hi @cameronw,

Welcome to the Community!

You can add custom claims to the token in a rule if you find your application needs them during every transaction and you don’t want add the extra calls.

Here is an example of how to set up the rule. Let me know if you run into anything and we can break it down:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.