> For the complete documentation index, see [llms.txt](https://docs.realmjoin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmjoin.com/automation/runbooks/runbook-references/org/general/add-or-remove-trusted-site.md).

# Add Or Remove Trusted Site

### Description

Adds or removes a URL to the Site-to-Zone Assignment List in a Windows custom configuration policy. The runbook can also list all existing Trusted Sites policies and their mappings.

### Location

Organization → General → Add Or Remove Trusted Site

**Full Runbook name**

rjgit-org\_general\_add-or-remove-trusted-site

### Details

| Property         | Value                              |
| ---------------- | ---------------------------------- |
| Version          | 1.0.1                              |
| Required modules | RealmJoin.RunbookHelper (>= 0.8.9) |
| Schedulable      | no                                 |

### Notes

This runbook uses calls as described in <https://call4cloud.nl/2021/09/the-isencrypted-with-steve-zissou/> to decrypt omaSettings. It currently needs to use the Microsoft Graph beta endpoint for this.

### Permissions

#### Application permissions

* **Type**: Microsoft Graph
  * DeviceManagementConfiguration.ReadWrite.All
    * *Reads and updates the Site-to-Zone assignment policy including secret OMA settings*

### Parameters

#### Action

Action to execute: add, remove, or list policies.

| Property      | Value |
| ------------- | ----- |
| Required      | true  |
| Default Value | 2     |
| Type          | Int32 |

**Portal options**

| Portal option                         | Value |
| ------------------------------------- | ----- |
| Add URL to Trusted Sites              |       |
| Remove URL from Trusted Sites         |       |
| List/Print all Trusted Sites Policies |       |

#### Url

URL to add or remove; it must be prefixed with "http\://" or "https\://".

| Property      | Value  |
| ------------- | ------ |
| Required      | false  |
| Default Value |        |
| Type          | String |

#### Zone

Internet Explorer zone id to assign the URL to.

| Property      | Value |
| ------------- | ----- |
| Required      | false |
| Default Value | 1     |
| Type          | Int32 |

**Portal options**

| Portal option             | Value |
| ------------------------- | ----- |
| My Computer (0)           | 0     |
| Local Intranet Zone (1)   | 1     |
| Trusted sites Zone (2)    | 2     |
| Internet Zone (3)         | 3     |
| Restricted Sites Zone (4) | 4     |

#### DefaultPolicyName

Default policy name used when multiple Trusted Sites policies exist and no specific policy name is provided.

| Property         | Value                                  |
| ---------------- | -------------------------------------- |
| Required         | false                                  |
| Default Value    | Windows 10 - Trusted Sites             |
| Type             | String                                 |
| Hidden in portal | yes (preset via runbook customization) |

#### IntunePolicyName

Optional policy name; if provided, the runbook targets this policy instead of auto-selecting one.

| Property      | Value  |
| ------------- | ------ |
| Required      | false  |
| Default Value |        |
| Type          | String |

[Back to Runbook Reference overview](/automation/runbooks/runbook-references.md)


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.realmjoin.com/automation/runbooks/runbook-references/org/general/add-or-remove-trusted-site.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
