> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/rdm/knowledge-base/troubleshooting-articles/unable-to-use-the-usdpasswordusd-variable.md).

# Unable to use the $PASSWORD$ variable

When used as part of a ***Typing macro***, the `$PASSWORD$` variable might not retrieve the password and instead send the variable as is. This is a security feature that is enabled by default, but can be disabled.

### Solution

Follow the steps below to use passwords in variables:

1. In Remote Desktop Manager, right-click on your entry and select ***Properties***.
2. In the left menu, navigate to ***Security – Security settings***.
3. Under the ***Password*** section, check the ***Allow password in variable*** option box.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>If the option is greyed out, you need to activate <em><strong>Allow password variables for all entries</strong></em> and <em><strong>Allow password variable in macros</strong></em> in <em><strong>Administration – System settings – Password settings</strong></em>. Also, if you are using the <em><strong>Linked (vault)</strong></em> or <em><strong>Linked (external vault)</strong></em> credential modes for your entry, you will need to enable the <em><strong>Allow password in variable</strong></em> option in the linked credential entry as well.</p></div>

   <figure><img src="https://cdnweb.devolutions.net/docs/docs_en_kb_KB2130.png" alt=""><figcaption></figcaption></figure>
4. Click ***OK*** to save your changes.

You can now use the `$PASSWORD$` variable in your macros.

{% hint style="info" %}
As far as permissions are concerned, to use the `$PASSWORD$` variable, the ***View***, ***Connect (execute)***, and ***View password*** permissions must be granted. If using a privileged account (PAM in Devolutions Server), the ***Operator*** permission set (or higher) must also be granted in the PAM vault.
{% endhint %}


---

# 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.devolutions.net/rdm/knowledge-base/troubleshooting-articles/unable-to-use-the-usdpasswordusd-variable.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.
