> For the complete documentation index, see [llms.txt](https://docs.parallels.com/landing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.parallels.com/landing/ras-admin-guide/parallels-ras-22-administrators-guide/connection-and-authentication-settings/device-posture/using-device-posture-as-criteria.md). Agents can also search and read this documentation through its [MCP server](https://docs.parallels.com/landing/~gitbook/mcp).

# Using Device Posture as Criteria

When a device posture rule uses the **Non-compliant** result instead of **Access denied**, devices that fail the rule are still allowed to connect. Their compliance state is then available as a criterion that you can match in the following features:

* **Client policies**, to push a more restrictive set of Parallels Client settings to non-compliant devices. See [**Add a new client policy**](https://docs.parallels.com/landing/ras-admin-guide/parallels-ras-22-administrators-guide/user-device-management-and-client-policies/client-policies/add-a-new-client-policy.md).
* **Logon hours rules**, to restrict the hours during which non-compliant devices can connect. See [**Logon hours settings**](https://docs.parallels.com/landing/ras-admin-guide/parallels-ras-22-administrators-guide/connection-and-authentication-settings/logon-hours-settings.md).
* **MFA rules**, to require multi-factor authentication from non-compliant devices. See [**Configuring MFA rules**](https://docs.parallels.com/landing/ras-admin-guide/parallels-ras-22-administrators-guide/connection-and-authentication-settings/multi-factor-authentication/configuring-mfa-rules.md).
* **Published resource filtering rules**, to hide sensitive published resources from non-compliant devices. See [**Using filtering rules**](https://docs.parallels.com/landing/ras-admin-guide/parallels-ras-22-administrators-guide/publishing/using-filtering-rules.md). In all four features, the criteria is added in the same way. Click the **(+)** icon in the criteria section of the rule and choose **Device Posture** in the context menu. In the **Device Posture** dialog that opens, specify the following:
* **Enable criteria**: select this option to include the device posture criteria in the rule. If cleared, the criteria is present but is not evaluated.
* **Apply this rule when the device is**: select `Compliant` to match devices that satisfy all applicable device posture rules, or `Non-compliant` to match devices that fail at least one of them. Click **OK** to add the criteria to the rule. Notice the following:
* The criteria matches the overall compliance state of the device, not the result of an individual device posture rule. A device is compliant only when it satisfies every enabled rule that applies to its platform.
* A device whose compliance cannot be determined is handled according to the **If compliance cannot be determined** setting of the rule that could not be evaluated. Where that setting is `Non-compliant`, the device matches the `Non-compliant` option of this criteria. Where it is `Access denied`, the device does not connect at all and no criteria is evaluated.
* Parallels Clients earlier than version 22 cannot report their device posture and match the `Non-compliant` option.
* If no device posture rules are configured, all devices are compliant and the `Non-compliant` option never matches.

<figure><img src="https://content.gitbook.com/content/9jy41JXW7bkKZGilrfOn/blobs/Dpu18o68k4HKJa0nTThA/RAS-81142_F.png" alt=""><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.parallels.com/landing/ras-admin-guide/parallels-ras-22-administrators-guide/connection-and-authentication-settings/device-posture/using-device-posture-as-criteria.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
