# Configure report generation

Configure the report service before users generate reports.

### Prerequisites

Make sure you have:

* administrator access to **Webconsole**
* a working OpenIAM deployment
* a content provider for the target domain

{% stepper %}
{% step %}

### Create a content provider

Create a [content provider](/getting-started/concepts.md). You can name it **Call report API** or use another clear name.

This screenshot below shows a content provider for a Docker deployment. For OpenIAM in an RPM environment, use `localhost` instead of `ui`.

<figure><img src="/files/f5cffc637122973d5912a79711df4fc251341f1c" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Add the report viewer URI pattern

Save the content provider. Then add the URI pattern `/reportviewer/*`.

Click **Create** in **URI Patterns**.

<figure><img src="/files/15417e6eeba1fec6dc7b7c445e0ae46f8be73f2a" alt=""><figcaption></figcaption></figure>

For OpenIAM in an RPM environment, use `localhost`.

<figure><img src="/files/9ae3549e36fd475cf6b94b18457badf5f0fcca10" alt=""><figcaption></figcaption></figure>

OpenIAM calls this URL in the background to generate scope and result reports.
{% endstep %}

{% step %}

### Update system configuration

Go to **System configuration → Authentication**.

Set these fields:

* **API call base domain** — use `http://localhost:8080` for RPM
* **Default base domain** — use the public base URL that should appear in generated links

Example:

* `https://demo.openiam.com`

Save the changes.
{% endstep %}
{% endstepper %}

After these steps, the report service is ready to use.


---

# 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://docs-beta.openiam.com/openiam-report-services/configure-report-generation.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.
