FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Accessing Custom User Data in FusionAuth's /oauth2/userinfo Endpoint

    Scheduled Pinned Locked Moved Solved
    Q&A
    api
    1
    2
    437
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      wesley
      last edited by

      In the /api/user endpoint, we had access to the data.salutation value. However, this information is no longer available in the /oauth/userinfo endpoint. Since we are required to transition to the new API due to the old one being sunset at the end of the year, how can we retrieve this value?

      W 1 Reply Last reply Reply Quote 0
      • W
        wesley @wesley
        last edited by

        There seems to be a misunderstanding regarding the deprecation timeline. The /api/user endpoint itself is not being deprecated at the end of the year; only JWT authentication for that API is being deprecated. You can continue to use the /api/user endpoint by switching to API key-based authentication.

        Steps to Continue Using /api/user:

        1. Update your integration to authenticate API calls with an API key instead of JWT.
        2. Access data.salutation as usual through the /api/user endpoint. This data is part of the user.data object, which is populated by your integration and not automatically generated by FusionAuth.

        Steps to Use /oauth2/userinfo:

        1. Write and install a UserInfo lambda which can read the user.data object and augment the userinfo response to include the data.salutation value. Docs on this lambda.
        1 Reply Last reply Reply Quote 0
        • W wesley has marked this topic as solved on
        • First post
          Last post