Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions use-timescale/security/read-only-role.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ You can create a read-only user to provide limited access to your database.
CREATE ROLE readaccess;
```

1. Grant usage on the schema to allow access to objects within it:

```sql
GRANT USAGE ON SCHEMA <SCHEMA_NAME> TO readaccess;
```

1. Grant the appropriate permissions for the role, as required. For example, to
grant `SELECT` permissions to a specific table, use:

Expand Down