> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lerian.studio/llms.txt
> Use this file to discover all available pages before exploring further.

# Enabling Access Manager

> Activate Access Manager across Lerian products — set the Auth environment variables in each `.env` so your services start enforcing access.

After installing **Access Manager**, you **must** enable it for it to function properly. This means updating the Auth variables in the `.env` files of **any Lerian product or plugin** where you want to use Access Manager.

Your configuration should look like this:

<CodeGroup>
  ```text Text theme={null}
  # AUTH CONFIGS
  PLUGIN_AUTH_ENABLED=true
  PLUGIN_AUTH_HOST=http://plugin-auth:4000
  ```
</CodeGroup>

<Danger>
  Once **Access Manager** is enabled, **all API requests** must include an `Authorization` header with a valid **Bearer access token**.

  Without this header, your requests will be rejected, even for public or previously accessible endpoints.

  [**Learn how to generate and use access tokens.**](/en/platform/access-manager/using-access-manager)
</Danger>

## Where to update

***

You'll find the relevant `.env` files in these locations:

* **Midaz Ledger**
  * `/midaz/components/onboarding`
  * `/midaz/components/transaction`
  * `/midaz/components/console` (older versions of Midaz)
* **Other products and plugins**
  * The `.env` file should be in the root directory of the product or plugin (e.g., Reporter, Tracer, Flowker, CRM, Fees Engine).

<Tip>
  Can’t see the files? Try adjusting your system settings to show hidden files since`.env` files are often hidden by default.
</Tip>

## Rebuild after changes

***

After updating the environment, rebuild your Docker images to apply the changes:

<Steps>
  <Step>
    In your terminal, go to the root of your project.
  </Step>

  <Step>
    If Docker is running, stop it:

    <CodeGroup>
      ```bash Bash theme={null}
      make down
      ```
    </CodeGroup>
  </Step>

  <Step>
    Then rebuild everything:

    <CodeGroup>
      ```bash Bash theme={null}
      make rebuild-up
      ```
    </CodeGroup>
  </Step>
</Steps>
