---
title: How to Detect a Sharing Policy Violation
description: "### Set and Detect policy violations Search for Sharing violation on Users, File, Folder, or any filter option. ### Set up policy on Files owned by User Navigate to **Drive → Files → Apply custom filter** In the Search, filter…"
url: "https://gatlabs.com/knowledge/tech-tips/how-to-detect-a-sharing-policy-violation/"
updated: "2022-02-15"
category: "Drive Audit & Management"
tags:
  - GAT+
---

# How to Detect a Sharing Policy Violation

### Set and Detect policy violations

Search for Sharing violation on Users, File, Folder, or any filter option.

### Set up policy on Files owned by User

Navigate to **Drive → Files → Apply custom filter**

In the Search, filter apply the filter options

- **Name** - enter a name for the report
- **Type** - select **Simple filter**
- Definition
  - **Owner** = user you need.
  - **Updated** (relative) in the last 7 days.
  - **Sharing flag** = **Shared out**.

 

![](https://gatlabs.com/knowledge/wp-content/uploads/2021/12/2022-01-24-14_58_05-C__Users_Osaid_Downloads_2022-01-24-14_52_27-Settings.png-Greenshot-image-edit.png)

### Set up policy on Files owned by Org. Unit

Navigate to **Drive → Files → Apply custom filter**

In the Search, filter apply the filter options

- **Name** - enter a name for the report.
- **Type** - select **User/Group/OU Search**.
- **Org** - select Org. Unit needed.
- **Ownership** - Owned.
- Definition
  - **Sharing flag** = Shared out
  - **Updated** (relative) in last 7 days

 

![](https://gatlabs.com/knowledge/wp-content/uploads/2021/12/2022-01-24-14_59_37-GAT.png)

Click on "Apply" to view the result.

### Scheduled report

When the result is found, this can be set as "**Scheduled report".**

Click on **"Scheduled"** and fill in the rest

- **Occurrence** - select the time needed.
- **Enabled** - enable the report.
- **Apply & Schedule**

 

![](https://gatlabs.com/knowledge/wp-content/uploads/2021/12/2022-01-24-17_27_36-GAT.png)

### Result of the violated Policy

The Policy report will be generated and run every week (based on how it is set up).

**The report will show the Users who violated the policy and Shared Out files **

#### Set action on the Scheduled report

Navigated to **GAT+ → Configuration → Scheduled report**

![](https://gatlabs.com/knowledge/wp-content/uploads/2021/12/2022-01-24-17_32_09-GAT.png)

Multiple actions can be taken automatically once the report runs. Choose these actions according to your use case.

The report filter can be:

- edited from the "pen" icon.

 
