> For the complete documentation index, see [llms.txt](https://docs.geoprismregistry.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.geoprismregistry.com/readme/current/geoprism-registry-tutorial/6.3-user-management/6.3-user-management-4.md).

# 6.3.5. Enabling OAuth integration

Enabling a user to access GeoPrism Registry with DHIS2 credentials makes it easier to access the system by only requiring that user to manage a username and password from one system (DHIS2). This section describes how to enable OAuth integration with a specific DHIS2 instance for a specific user.

You must create the user in GeoPrism Registry before you can log in with it using OAuth. This is required because GeoPrism Registry needs to know what roles from GeoPrism Registry to associate with this user. GeoPrism Registry does the user mapping based on the username, so the username of the user in GeoPrism Registry **must exactly match** the username of the user in DHIS2.

1. Navigate to an existing user in GeoPrism Registry and click the **Edit** button to open the User Management form. If an external system is configured correctly to enable OAuth with DHIS2, a button to Enable OAuth will appear.\\

   <figure><img src="https://lh4.googleusercontent.com/M0fuoNzwR91X-kU3iIhInt79j2ZwJJRUdoZjIwqJYUn_OM1SEUnFthq5bi-2S74dUX1B4k7JPZoqu6m-tmzcTddhUmQXo5B6S94Kd3ArKtnhEeZhaCZNX0PPyOd99R4M9Dxx2aJkqTDvSDZgBcOMraH53xS-gwxZ6QdhMc9MG1yE2a5ETaj5hL3L" alt=""><figcaption></figcaption></figure>
2. Click the **Enable OAuth** button to show the options of properly configured DHIS2 instances.\\

   <figure><img src="https://lh4.googleusercontent.com/oEybTxYrbOoicDKx55hdl3xJI0-Ne-BqXUqVsbE6K5nPV7zyyC764DJnoRUzVsraL_28vZp3190IfPG8cA4INOunldX228gx3iPHHPBNI7Z3me5Svfy3AtIr3BNvTIjTXSfaHmVUUboYYAyakn1PnxBzu_EHwUOlXai4JnfVL_YJpedbe5m7jc8I" alt=""><figcaption></figcaption></figure>
3. Select the DHIS2 instance the user will authenticate with.
4. Click **Submit**.


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.geoprismregistry.com/readme/current/geoprism-registry-tutorial/6.3-user-management/6.3-user-management-4.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
