User Data Retrieval

In the previous tutorial, you authorized the application to retrieve user data on behalf of the user. In this step, we will retrieve the same user data from the IDP’s API using the access token. (nb. To get the user profile, you can extract the id_token, but that is beyond the scope of this tutorial.)

User data can be requested via the endpoint We will first explain how to do this using Postman, followed by an example using HTTP.

  1. Open your workspace “Techniek Nederland” in Postman and navigate to the collection “Identity Service Provider”.

  2. Click on “New”.

  3. Choose “Request”.

  4. Select the HTTP method “GET”.

  5. Enter the URL “”.

  6. Click on “Save” and save the request in the “Identity Service Provider” collection.

  7. Switch to the “Authorization” tab. You will see that the “Type” is now set to “Inherit auth from parent”, which in this case refers to the collection. This means that the access token will be applied.

  8. Click on “Send”.

  9. The data will now be sent, and you will receive a JSON response containing the user’s information.

Below you find an example of the HTTP call.


Request the user profile

Request Headers
  • Accept – Response to accept, eg. application/json

  • Authorization – Provide the access token: Bearer <INSERT TOKEN HERE>

GET /o/userinfo/ HTTP/1.1
Accept: application/json
Authorization: Bearer <INSERT ACCESS TOKEN>

Example response

HTTP/1.1 200 OK
Content-Type: application/json

    "sub": "999",
    "livits_id": "12345678",
    "name": "Wouter Klein Heerenbrink",
    "companies": [

The response contains the following information:


The id of the client the requested the access token (your app)


The member ID at Techniek Nederland


The full name of the user


A list of company names that the user is linked to (at Techniek Nederland)