Grant access
Grant a role on an account, a table or a column, and narrow broad grants where needed.
Grant access
A role granted on a resource applies to that resource and everything in it. Grant broadly, then narrow:
- Give most people a role on the account, such as Data reader or Dashboard viewer.
- Grant on a table or a column only for people who should see nothing else.
- Take away specific tables or columns from a broad grant with an exception on that grant, or with a deny in a custom role (restrict a table).
| Grant on | Reaches | Built-in roles granted there |
|---|---|---|
| Account | Every table, column, dashboard, alert and other resource of the account | Every account role, such as Data reader, Data writer, Dashboard editor (roles) |
| Table | The table and its columns. A table can be named before it exists | Data reader, Data writer |
| Column | One column | Column reader |
Logship has no level between account and table; a table is what queries call a schema. Other resources, such as a single dashboard or service account, take relationships or custom roles (share a single item).
Steps
- Open Settings → Account → Access and select Grant access. To grant on one table, open Settings → Account → Tables, select the table, and use Grant access on the Role grants tab of its Access section; set Applies to to a column to grant on that column only.
- Under Users, groups or service accounts, pick who gets the role. Agents can be picked too.
- When granting from the Access tab, choose the Resource type (Account, Table, Column, ...) and name the table or column.
- Pick a Role. Only roles that can be granted on that resource type are offered.
- Optionally set Condition to Until a date or During a time window (time-bound grants), and add exceptions under Advanced: exceptions.
- Select Grant. For a privileged role, tick I understand this grants privileged access.
You can only grant what you hold where the grant takes effect, unless you administer the account's access; the dialog lists what you are missing (who may grant what).
Example: analysts read everything except payroll
- Grant the group
analystsData reader on the account. - Edit the grant (Edit condition and exceptions), open Advanced: exceptions, select Add deny, choose
table.readunder Denied permissions, and set Condition toresource.Name == "payroll". - Select Save.
Members of analysts read every table except payroll, including tables created later. The exception narrows this grant only: a member who also holds another grant reaching payroll still reads it. Check one member with Explain access.