# 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

### Permissions

#### Application permissions

* **Type**: Microsoft Graph
  * DeviceManagementConfiguration.ReadWrite.All

### Parameters

#### Action

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

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

#### 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 |

#### 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                     |

#### 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: 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.realmjoin.com/automation/runbooks/runbook-references/org/general/add-or-remove-trusted-site.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.
