# Clean up Global Address List from Disabled Users Crate

{% hint style="info" %}
If you’re new to Crates, read through our introductory Crate documentation [here](https://docs.rewst.help/prebuilt-automations/crates). Find this Crate in our Crate Marketplace.
{% endhint %}

## What does the Clean up Global Address List from Disabled Users Crate do?

This Crate identifies all disabled users in Microsoft 365 and removes them from the Global Address List, helping to maintain a clean and accurate directory.

* Improve directory hygiene by maintaining an accurate Global Address List
* Reduce administrative overhead related to manual directory cleanups
* Enhance organizational security by ensuring that only active users are part of the Global Address List

## Crate prerequisites

Before unpacking this Crate, you'll first need to set up the Microsoft Graph integration, via our [Microsoft Cloud Bundle](/documentation/integrations/integration-guides/microsoft-cloud-integration-bundle.md).

## Unpack the Clean up Global Address List from Disabled Users Crate

1. Navigate to **Marketplace > Crates** in the Rewst platform.
2. Search for `Clean up Global Address List from Disabled Users`.\
   \
   ![](/files/VwpZaS2OEi9DKUAdOyU7)
3. Click on the Crate tile to begin unpacking.
4. Click **Continue**.
5. Ensure that **Enabled** is toggled on under the **Cron Job** accordion men&#x75;**.**
6. Click **Unpack Crate**.

### Use the Clean up Global Address List from Disabled Users Crate

The Crate runs on a cron trigger, and will execute the workflow at the same time each day. You can adjust the chosen time for execution in the workflow itself.

1. Navigate to **Automations > Workflows** in the left side menu of your Rewst platform.
2. Search for `[ROC] Remove Disabled Users from GAL`.
3. Click on the workflow to view it in the workflow builder.
4. Click ![](/files/Ybu8ZIwxEmIQPSvK0Cm3) to open the edit trigger menu.<br>

   <figure><img src="/files/LbZ6JVsrNWEvXzSTmmID" alt=""><figcaption></figcaption></figure>
5. Update the timing of the cron trigger as desired in the fields under **Trigger Parameters**. Note that when entering the time into the **Cron Schedule** field, the correct format is minutes followed by hour. For example. 18 3, not 3 18.
6. Click **Submit**

{% hint style="warning" %}
No notification is sent when the workflow runs. If the workflow fails, you'll see the following noop in the results: `failed_to_hide_from_gal`
{% endhint %}

{% hint style="info" %}
Got an idea for a new Crate? Rewst is constantly adding new Crates to our Crate Marketplace. Submit your idea or upvote existing ideas here in our [Canny feedback collector](https://rewst.canny.io/crates).
{% endhint %}


---

# 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.rewst.help/documentation/crates/existing-crate-documentation/clean-up-global-address-list-from-disabled-users-crate.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.
