Synapse Permissions¶
Permissions in your Synapse
The permissions on this page are granted in your own Synapse, to the account Qualytics connects with, by whoever administers Synapse at your company. They let Qualytics connect the datastore and read your data, and write to it when it is an enrichment datastore. They are not Qualytics roles or team permissions. To know which Qualytics user role (Admin, Manager, or Member) and team permission you need to connect the datastore in Qualytics, see Source Datastore Permissions.
Qualytics connects to Azure Synapse Analytics through the Microsoft JDBC Driver for SQL Server, and Synapse follows the same permission model as Microsoft SQL Server. It queries sys.schemas joined with sys.database_principals to list the schemas, rather than the driver's generic metadata call, which can omit dbo depending on the driver version and the permissions in place. Tables, columns, and primary keys come from the standard JDBC metadata APIs.
Minimum Synapse Permissions (Source Datastore)¶
| Permission | Purpose |
|---|---|
CONNECT |
Allow the user to connect to the database |
SELECT ON SCHEMA::<schema_name> |
Read data from all tables and views for profiling and scanning |
VIEW DEFINITION ON SCHEMA::<schema_name> |
Read object definitions for metadata discovery |
Schemas owned by a user or role you created
Schema discovery reads the schema list together with each schema's owner, and the permissions
above are enough for the common case: a login always sees the schemas owned by dbo, by another
built-in user, or by a built-in database role. A schema owned by a user or a role that you
created yourself is listed only when the connecting login can also see that owner.
So if a schema is missing from the Schema list, check who owns it. When a user you created
owns it, one permission on that user is enough, and it is narrower than ALTER ANY USER.
When a role you created owns it, a permission on the role is not enough: Synapse shows such a
role only to its members and to logins holding ALTER ANY ROLE. Add the login to the role
instead, keeping in mind that membership carries whatever the role itself grants.
Additional Permissions for an Enrichment Datastore¶
When Synapse is used as an enrichment datastore, the following additional permissions are required so Qualytics can write its outputs, which are named from the linked source's prefix (for example _tpch_failed_checks):
| Permission | Purpose |
|---|---|
CREATE TABLE |
Create enrichment outputs |
INSERT ON SCHEMA::<schema_name> |
Write anomaly records, scan results, and check metrics |
UPDATE ON SCHEMA::<schema_name> |
Update enrichment records during rescans |
DELETE ON SCHEMA::<schema_name> |
Replace records when a run overwrites an output |
ALTER ON SCHEMA::<schema_name> |
Modify enrichment table schemas during version migrations |
DROP TABLE |
Replace an output when a run overwrites it (Overwrite remediation, Materialize, Export) or when a schema change requires recreating it. Unlinking never removes written data |
Example: Source Datastore User (Read-Only)¶
Replace <database_name>, <schema_name>, and <password> with your actual values.
-- Create a login at the server level
CREATE LOGIN qualytics_read WITH PASSWORD = '<password>';
-- Switch to the target database
USE <database_name>;
-- Create a user mapped to the login
CREATE USER qualytics_read FOR LOGIN qualytics_read;
-- Grant connection and read-only access
GRANT CONNECT TO qualytics_read;
GRANT SELECT ON SCHEMA::<schema_name> TO qualytics_read;
GRANT VIEW DEFINITION ON SCHEMA::<schema_name> TO qualytics_read;
Serverless SQL Pool: Additional Read Permissions¶
In a serverless SQL pool, data is usually exposed as views or external tables that read files from Azure Data Lake Storage. When Qualytics queries them, the files are read with the permissions of the Qualytics user, so two permissions are required in addition to the read-only set above:
| Permission | Purpose |
|---|---|
ADMINISTER DATABASE BULK OPERATIONS |
Allow the user to read the underlying files in storage |
REFERENCES ON DATABASE SCOPED CREDENTIAL::<credential_name> |
Allow the user to read through the credential that the views and external tables use to access storage |
USE <database_name>;
GRANT ADMINISTER DATABASE BULK OPERATIONS TO qualytics_read;
GRANT REFERENCES ON DATABASE SCOPED CREDENTIAL::<credential_name> TO qualytics_read;
Repeat the REFERENCES grant for each credential used by the views the user should read. To list the credentials in a database, run SELECT name FROM sys.database_scoped_credentials.
Note
The credential itself must also be able to reach the storage account: either the workspace Managed Identity holding the Storage Blob Data Reader role on the storage account, or a SAS token with Read and List permissions. If the credential cannot reach storage, queries fail with a misleading "File cannot be opened because it does not exist or it is used by another process" error even when the file exists.
Example: Enrichment Datastore User (Read-Write)¶
-- Create a login at the server level
CREATE LOGIN qualytics_readwrite WITH PASSWORD = '<password>';
-- Switch to the target database
USE <database_name>;
-- Create a user mapped to the login
CREATE USER qualytics_readwrite FOR LOGIN qualytics_readwrite;
-- Grant connection, read-write, and table management access
GRANT CONNECT TO qualytics_readwrite;
GRANT SELECT, INSERT, UPDATE, DELETE ON SCHEMA::<schema_name> TO qualytics_readwrite;
GRANT CREATE TABLE TO qualytics_readwrite;
GRANT ALTER ON SCHEMA::<schema_name> TO qualytics_readwrite;
GRANT VIEW DEFINITION ON SCHEMA::<schema_name> TO qualytics_readwrite;
Note
Qualytics automatically filters out system schemas (INFORMATION_SCHEMA, sys, and schemas starting with db_) during schema discovery. You do not need to restrict access to these schemas manually.