# Setting up the adapter

{% embed url="<https://github.com/openMF/openbanking-adapter/blob/master/sources/openbanking-adapter/src/main/resources/db/changelog/sql/01-ob_tn01_init.sql>" %}

The above script provides information on the linking of the banking API user with the Fineract user inside the OpenBanking Adapter database.

Example:

```
INSERT INTO `user` (`api_user_id`, `psp_user_id`, `active`) VALUES ("lionuser1", "1", 1);
INSERT INTO `trusted_client` (`client_id`, `created_on`) VALUES ("Jg7O55zbOOlJiSJOaG9Qm5nq7qsa", current_date);
```

api\_user\_id - the user id provided via the API calls

psp\_user\_id - the primary key of the client in the Fineract Database

trusted\_client - required for first party client. The registered client ID assigned on the API gateway. Trusted clients could invoke the API services on behalf of the customer without the additional consent flow.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mifos.gitbook.io/docs/openbanking-adapter/setting-up-the-adapter.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
