# Requirements And Setup

The application must be deployed using a role with sufficient privileges (like ACCOUNTADMIN).  Alternatively, see sample SQL below to create a role called CONSUMER\_ADMIN that can be used to install the app.

```
CREATE ROLE IF NOT EXISTS CONSUMER_ADMIN;
GRANT ROLE CONSUMER_ADMIN TO ROLE ACCOUNTADMIN;
```

See below sample SQL to grant the proper privileges to the CONSUMER\_ADMIN role created with the SQL shown above:

```
GRANT CREATE DATABASE, IMPORT SHARE ON ACCOUNT TO ROLE CONSUMER_ADMIN WITH GRANT OPTION;
GRANT CREATE APPLICATION ON ACCOUNT TO ROLE CONSUMER_ADMIN;
GRANT EXECUTE TASK, EXECUTE MANAGED TASK ON ACCOUNT TO ROLE CONSUMER_ADMIN WITH GRANT OPTION;
GRANT USAGE ON WAREHOUSE <insert warehouse name> TO ROLE CONSUMER_ADMIN WITH GRANT OPTION;
GRANT CREATE WAREHOUSE ON ACCOUNT TO ROLE CONSUMER_ADMIN WITH GRANT OPTION;
```

Note, if your account is set up to use [PrivateLink](/synthetic-data-generator/private-link-information.md), you may have some additional steps to follow.  Please see here or reach out to <support@datamynd.ai> for more information.

Upon running the app for the first time, a 'first time setup' page will launch asking the user to grant certain privileges to the app as well giving a name to a new database that will be created to store the output synthetic data.  You will also notice an optional ‘Training Warehouse’ reference can be configured.  This warehouse will be used for certain asynchronous tasks including model training, and can improve speed and performance of the app.

<figure><img src="/files/1iO1ilzY5wj47wZafdB3" alt=""><figcaption><p>First Time Setup page (as seen in dark mode) after all privileges have been granted.  Click 'Continue to APP' to continue.</p></figcaption></figure>

The application can only use and profile data that it has been granted access to.  When creating a new project in the app, the user will be instructed to grant several privileges to ensure the app can access the appropriate data.  See [Object Privileges](/other/object-privileges.md) for more details.


---

# 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.datamynd.ai/synthetic-data-generator/requirements-and-setup.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.
