# Automated Actions

This section describes the various actions that Nightfall takes automatically when a violation is detected. You must turn on the toggle switch to enable an action. All the automated actions are permanent and cannot be reversed once applied. You can also use the delayed remediation feature to set the timeline as to when an action must be taken. You can either choose to apply the automated action immediately after detecting a violation or after some time.&#x20;

The various automated actions are described as follows.

Remove all external users and groups: This action revokes the file access in which sensitive data was found. All external users and groups will no longer have access to the file. You must also configure the delayed remediation feature by selecting an option in the Trigger action field. You can either choose to apply the action You can either select the Immediately option to apply the automated action immediately after detecting a violation or select the After option to implement the automated action after a certain time delay. If you select the After option, you must also set the delay time. The automated action is implemented once the delay time is elapsed.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdSslxrAEtIvi7JjU5GiZBMCg6q1SkM6aJPmUanU57TVOSADj1bpezRoir-xhbCKs_ai9Kc7IaoRDN8uiq_y24ymObpNF9qFUn_1haEBUG8Bvuy32Sgb3JCeDrk-kDY1vJBP9Ei?key=a1VqWql22MbqASCgci-TzaO-" alt=""><figcaption></figcaption></figure>

* **Remove all internal users and groups**: This action revokes the file access in which sensitive data was found. All internal users and groups will no longer have access to the file.
* **Restricted**: This action restricts the file access only to those users who have the link to access it
* **Disable Download, Print, and Copy**: This action disables downloading, printing, or copying the file in which sensitive data was found. This action is only applicable to users with the View and Comment permission. File owners can always download and copy the file.

The automated actions are not applicable in a few scenarios. To learn more about these scenarios, you can refer to [this document](https://help.nightfall.ai/google-drive/policies/advanced_settings#automated-action-scenarios).


---

# 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://help.nightfall.ai/audit/google-drive-audit/automated-actions.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.
