# Projects

Subsalt allows you to set a project ID for a session as a data consumer. Queries for that session will be tagged with the project ID and auditable by organization administrators.

### Setting project IDs

To set your project ID via SQL, set the `subsalt.project_id` property in your SQL session prior to running your queries. For example:

```sql
SET subsalt.project_id TO "my_project";
```

#### Requiring projects

As an organization administrator, you can require that project IDs be set before any queries are issued. To do this, navigate to **Organizations > Projects** and enable the "Require projects" setting.

#### Auditing projects

As an organization administrator, you can audit projects in two ways:

#### **Summary**

To view a summary of queries issued for projects, navigate to **Organizations > Projects**.

These project summaries are grouped by:

* **Project:** The project ID
* **Organization:** The organization that the user belongs to
* **User:** The user that issued the query
* **Database:** The synthetic database that was queried

**Query-by-query**

To view a breakdown of queries issued for projects, navigate to Organization > Projects and click the "Download project query report" link.

This will download a CSV report of all queries issued that have been tagged with a project ID.

It will include the following information per row:

* **ProjectId:** The project ID
* **Organization:** The organization that the user belongs to
* **QueryId:** The internal ID of the query issued
* **UserId:** The internal ID of the user that issued the query
* **UserEmail:** The email of the user that issued the query
* **Database:** The synthetic database that was queried
* **QueryOutcome:** Whether or not the query was successful
* **QueryRequestedAt:** When the user issued the query (UTC date time)
* **QueryExecutionStartedAt:** When the query started to execute (UTC date time)
* **QueryExecutionCompletedAt:** When the query completed execution (UTC date time)


---

# 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.subsalt.io/retrieving-data/projects.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.
