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:
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)
Last updated