Overview of this lab
We will use CustomerID REST API interface to query organisation and user information.
Refer to the API reference documentation at APIs - CustomerID .
There are several versions of CustomerID REST API. Note that each version adds functionality and does not replace the older ones. So you can use operations of all REST API versions when appropriate.
For this lab, we first temporarily set a simple REST API password. Add following to eidm2.properties and then restart Wildfly:
In this lab we specify the API credential in query parameters. In production environments we recommend using HTTP Basic Auth to avoid credentials written in log files.
This operation shows all users IDs of CustomerID, for example:
Query user info
Pick one user ID from the output of previous step, such as 6225612a-02c4-4f5c-b875-bbb23379a6f2, and use it in the query user command below:
The individual user information will be shown:
Query user by email address
Query users by role membership
Use Postman and POST calls to create a new user to "Users" organisation
Use email address as both uid and email parameters.
In Postman settings, set SSL certificate verification OFF.