# Active directory sync

Here you can set up syncing from Active Directory to Flow Users.

Click Add Group to add a new mapping, mapping is done from Active Directory group to Flow Role. When all groups have been added click Sync to begin syncing from Active Directory Users to Flow Users.

Everytime Sync is clicked all previous synced users are removed from Flow and new users are created to match current Active Directory status.

See [FlowScript](/development/flowscript.md) and [Active directory sync](/development/flow-studio/environment/active-directory-sync.md)

Enter the relevant information for which AD that is to be used in the configuration and set the timing as to when the syncronization is to run. For Azure ID the id can be with our without domin. For customers with multiple domains, the inclue domain box should be ticked to avoid problems with users with the same name on differnt domains.&#x20;

![](/files/-M-ozntmt9KydkMT1iGl)

![](/files/-M-ozq1Tfpw4mrOOQIVJ)

### Sync Options

Depending on if you are using LDAP or Azure, you can choose between different sync options for each AD group:

<figure><img src="/files/UpJWE0mYC6iGEC749tNb" alt=""><figcaption><p>Sync Options for LDAP</p></figcaption></figure>

* **Extended Match (Slow):** Uses the *LDAP\_MATCHING\_RULE\_IN\_CHAIN* matching rule for LDAP (note: this is known to be very slow for large directories). For Azure, a recursive member search is performed.
* **Recursive Member Search:** Searches LDAP groups and sub-groups for members in a top-down manner.
* **Only Direct Members:** Searches the group for users and will not search sub-groups.

Checking the **Exclude Disabled** checkbox will skip users that are disabled in the Active Directory (disabled users will not be added in Flow).


---

# 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.novacuraflow.com/development/flow-studio/environment/active-directory-sync.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.
