# Triggers

Triggers provide a mechanism to tell AutoSync that a run profile must be scheduled for execution. Most commonly, triggers are used to tell AutoSync that a connected system has pending changes, and that it must perform a delta import.

AutoSync knows when a management agent requires a synchronization or has a pending export, as this information is available from the MIM sync service itself. However, the MIM sync engine doesn't know if a connected system has any pending changes in it. AutoSync triggers can be used to detect these changes and schedule a delta import in the sync service.

Triggers can also be used to tell AutoSync to execute any run profile outside of the standard *import, sync, export, confirming import* cycle. For example, triggers can be setup to perform maintenance operations such as a weekly full synchronization or daily full import.

AutoSync has out-of-box support for the following trigger types

| Type                                                                                                                                                   | Description                                                                                                                                                                                                                         |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Active Directory change detection trigger](https://docs.lithnet.io/autosync-for-mim/configuration/triggers/active-directory-change-detection-trigger) | Automatically detects changes in AD DS or AD LDS and triggers a delta import                                                                                                                                                        |
| [MIM service change detection trigger](https://docs.lithnet.io/autosync-for-mim/configuration/triggers/mim-service-change-detection-trigger)           | Automatically detects changes in the MIM service and triggers a delta import                                                                                                                                                        |
| [Repeating interval trigger](https://docs.lithnet.io/autosync-for-mim/configuration/triggers/repeating-interval-trigger)                               | Executes a run profile at a repeating interval                                                                                                                                                                                      |
| [Scheduled interval trigger](https://docs.lithnet.io/autosync-for-mim/configuration/triggers/scheduled-interval-trigger)                               | Executes a run profile at a specific time                                                                                                                                                                                           |
| [Powershell script trigger](https://docs.lithnet.io/autosync-for-mim/configuration/triggers/powershell-script-trigger-gallery)                         | Uses a custom PowerShell script to determine a run profile to execute. See the [Powershell script trigger gallery](https://docs.lithnet.io/autosync-for-mim/configuration/triggers/powershell-script-trigger-gallery) for examples. |


---

# 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.lithnet.io/autosync-for-mim/configuration/triggers.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.
