> For the complete documentation index, see [llms.txt](https://docs.cipp.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cipp.app/user-documentation/tools/tenant-tools/compare-ca-policies.md).

# Compare CA Policies

Compare CA Policies puts two Conditional Access policies side by side and lists every setting where they differ. Each side can be a CIPP Conditional Access template or a policy as it is currently deployed in one of your tenants, so you can check a tenant's policy against the template it was deployed from, compare the same policy across two tenants, or compare two templates before choosing one for a baseline.

The comparison is the same one the Conditional Access drift standard runs. Users, groups, roles and named locations are compared by display name rather than object ID, so a policy that targets the "Admins" group in one tenant matches a template that targets a group of the same name. Identifiers, timestamps and other properties Entra manages itself are left out of the comparison.

Viewing this page needs the `Tenant.ConditionalAccess` read permission.

## Choosing What to Compare

The page presents two identical selectors, **Source A** and **Source B**. Each has a **Source Type** option that determines where its policy is read from, and the fields below it change to match. The two sources are independent, so a template can be compared with a tenant policy, two tenant policies with each other, or two templates.

### CIPP Template

Compares against a Conditional Access template stored in CIPP.

| Field           | Description                                            |
| --------------- | ------------------------------------------------------ |
| Select Template | The CIPP Conditional Access template to use. Required. |

When the other side is a tenant policy, the template is resolved for that tenant first: CIPP variables such as `%tenantname%` and custom variables take the values they would have on deployment, so they are not reported as differences. When both sides are templates, variables are shown as written. Named locations in a template are matched to the names recorded when the template was captured.

### Tenant Policy

Compares against a policy as it is currently deployed in one of your tenants.

| Field           | Description                                                                    |
| --------------- | ------------------------------------------------------------------------------ |
| Select a tenant | The tenant to read the policy from. Defaults to the tenant currently selected. |
| Select Policy   | The Conditional Access policy in that tenant, listed by name. Required.        |

The policy is read live from the tenant, so the comparison always reflects its current configuration rather than what CIPP last deployed.

## Running the Comparison

Click **Compare** once both sources are filled in. The button is unavailable until each side has a valid selection, and while a comparison is running.

The result opens with a summary: a green banner when the two policies are identical, or an amber one giving the number of differences found. Both banners repeat the names of the two sources, with a tenant policy labelled by its tenant and a template marked as such.

## Reading the Differences

Where the policies differ, a table lists one row per setting:

| Column   | Description                                                                                                                                   |
| -------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Setting  | The setting that differs, written as its path in the policy, for example `conditions.users.includeGroups` or `grantControls.builtInControls`. |
| Source A | The value on the first side.                                                                                                                  |
| Source B | The value on the second side.                                                                                                                 |
| Status   | **Different** when both sides set the value, or **Only in Source A** / **Only in Source B** when one side does not set it at all.             |

Below the table, the full configuration of each side is shown as expandable JSON, so a difference can be read in context. Each side carries the label from the summary banner.

{% hint style="info" %}
Authentication strengths are compared by name only. A template stores just the strength's ID, while a live policy returns the strength fully expanded, so the extra detail on the live side is not reported as a difference.
{% endhint %}

***

## Feature Requests / Ideas

We value your feedback and ideas. Please raise any [feature requests](https://github.com/CyberDrain/CIPP/issues/new?template=feature.yml) on GitHub.


---

# 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.cipp.app/user-documentation/tools/tenant-tools/compare-ca-policies.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.
