> For the complete documentation index, see [llms.txt](https://help.nightfall.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.nightfall.ai/microsoft-exchange-1/exchange_online/policies/detection_rules.md).

# Configure Detection Rules in SharePoint

Learn how to configure the detection rules section in Nightfall policies created for SharePoint

In this section, you can select the Detection rules for the policy and If not already created, you can create detection rules. To learn more about how to configure detection rules, see[ ](https://help.nightfall.ai/nightfall-ai/nightfall-for-slack/installation-instructions-nightfall-for-slack-1/configuring-detection-rules)[Configuring Detection Rules](https://help.nightfall.ai/detection_platform/create_detection_rules).

To add the detection rules to the policy, you can select the detection rules from the list of rules that displayed.

<figure><img src="https://2214688951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mg3wgFIu8T7XAT1u-f_%2Fuploads%2FYERUT9Xabp4iHqWCjlh3%2Fimage.png?alt=media&amp;token=614d46dd-1982-4a4f-bc59-d0ef5f0dba76" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
You must select at least one detection rule to proceed further.&#x20;
{% endhint %}

Click **Next** once you have selected all the required detection rules.&#x20;


---

# 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://help.nightfall.ai/microsoft-exchange-1/exchange_online/policies/detection_rules.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.
