/userinfo to return custom attributes

Hi Team,
/userinfo API does not seem to give any info. It gives out name,email and few other parameters. How do I fetch other information like manager name , cost center etc?

Right now you are likely seeing the profile related claims for a given user if you have included the ‘profile’ scope to the authorize request. Information about what claims are associated with which base scope available here: https://developer.okta.com/docs/reference/api/oidc/#scope-dependent-claims-not-always-returned

If you have API Access Management feature in your org, you can create custom claims to include this information and set it so that they will also be returned in the ID Token/Userinfo output: https://developer.okta.com/docs/guides/customize-tokens-returned-from-okta/add-custom-claim/