# 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](/6.12/development/flow-studio/flowscript.md) and [Active directory sync](/6.12/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)


---

# 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/6.12/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.
