# MIM service change detection trigger

#### Summary

AutoSync contains an out of box trigger that can be used on the MIM Service management agent, which will automatically detect changes in the MIM service, and trigger a delta import.

#### Configuration

The MIM service trigger is only available on a MIM Service MA. From the triggers page, select `Add trigger...` and the MIM service change detection trigger will be available from the drop down list. Please note that only a single instance of the MIM service trigger can be added.

![](https://2216211724-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXaBwZ6mZ5WbX108JiSsn%2Fuploads%2Fgit-blob-8b4b5c7b6510514b935561fa69e528a69120d176%2Fmim-service-trigger.png?alt=media)

The trigger will pre-populate the hostname from the MA configuration, and set the default check interval to every 60 seconds.

#### Permissions

The AutoSync service account requires permission to read the following attributes on all `Request` objects

* msidmCompletedTime

You can create the set and MPR manually, or use the `Create set and MPR...` button on the trigger configuration page to do this automatically. Note that the logged on user must have administrative rights in the MIM service to create the set and MPR.


---

# 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/mim-service-change-detection-trigger.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.
