> For the complete documentation index, see [llms.txt](https://docs.openg2p.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openg2p.org/products/registry/registry/_archive/social-registry/developer-zone/odoo-modules/odk-app-user-mapping.md).

# ODK App User Mapping

### **Module name**

`g2p_odk_user_mapping`

### **Module title**

ODK App User Mapping

### **Technology base**

Odoo

### **Functionality**

#### **Add drop-downs for ODK Config and App User**

* **Select ODK Config**
  * In the ***Registration Portal***, implement a drop-down menu to allow the users select from the available ODK Configurations.
  * Dynamically fetches and displays ODK Configuration options based on the user's selection.
* **Select App User**
  * Implement a drop-down menu to list ODK App users.
  * Use the ODK API to fetch the list of App users based on the selected ODK Configuration.
  * Display the fetched App users in the drop-down menu.
* **Fetch ODK App Users via ODK API**
  * Integrate with the ODK API to retrieve the list of available App users for the selected ODK Configuration.
  * Use the fetched data to dynamically populate the ***Select App User*** drop-down menu.

### **Design notes**

N/A

### **Relationships with other entities**

* **Dependencies**
  * `base`
  * `account`
  * `g2p_odk_importer`

### **User interface**

N/A

### **Configuration**

1. **ODK Config**
   * Navigate to the ODK menu in the ***Social Registry*** module.
   * Add your ODK user credentials and project details.
2. **Map the ODK User in the Registration Portal**
   * Navigate to the Registration Portal user menu.
   * Add user details such as email, name, etc.
   * Select the ODK Configuration and then choose a dynamic user based on the selected ODK Configuration.

### **Source code**

[GitHub Repository for `g2p_odk_user_mapping`](https://github.com/OpenG2P/openg2p-registration-portal/blob/17.0-develop/g2p_odk_user_mapping)

### **Installation**

1. Ensure that the module dependencies such as `base`, `account`, `g2p_odk_importer`are installed.
2. Install the ***ODK App User Mapping*** module from the Odoo Apps interface.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://docs.openg2p.org/products/registry/registry/_archive/social-registry/developer-zone/odoo-modules/odk-app-user-mapping.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.
