> For the complete documentation index, see [llms.txt](https://docs.docontrol.io/docontrol-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docontrol.io/docontrol-user-guide/risk-management/threat-model-coverage/encryption-key-sharing/sharepoint-playbooks-for-encryption-key-sharing.md).

# SharePoint playbooks for encryption key sharing

To prevent exposure of encryption keys in SharePoint, you can customize automated workflows to notify your security team whenever files with encryption keys are uploaded to SharePoint.

1. In Workflows, select **Playbooks**.
2. Filter the playbooks according to OneDrive app, and select the **Notify on encryption key upload** playbook.
3. Give an action name.
4. Under the **File** **Uploaded** event, customize the condition if necessary:\
   `Get file extension` condition is from the **Default encryption key file** list.<br>

   <div align="left"><figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2F9fjDwKVduOQGO5MLPTUL%2FSP%20encryption%20keys.png?alt=media&amp;token=ed0737d6-7fd4-4fea-a7ca-85a793b684dd" alt=""><figcaption></figcaption></figure></div>
5. Add any relevant conditions.
6. Customize the **Notify in Slack** action to notify your security team.

When someone uploads an encryption key file to SharePoint, the security team is automatically notified by Slack or email.

{% hint style="info" %}
To learn how to customize a playbook to mitigate the DLP risk from encryption key uploads in SharePoint, see DoControl [videos](/docontrol-user-guide/help/videos.md#notify-on-encryption-key-uploads-in-sharepoint).
{% endhint %}


---

# 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.docontrol.io/docontrol-user-guide/risk-management/threat-model-coverage/encryption-key-sharing/sharepoint-playbooks-for-encryption-key-sharing.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.
