Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

GRANT ROLE

GRANT group TO role;

Adds a group or role to a role. The granted identity comes first and the member comes after TO; membership is persisted and exposed through sys.catalog_group_members.

Amphi also accepts the explicit extension GRANT role TO GROUP group when the target must be identified as a group.

Default privileges

ALTER DEFAULT PRIVILEGES configures grants automatically applied to new tables, collections, queues, and memory tables created by the owning role:

ALTER DEFAULT PRIVILEGES
GRANT SELECT ON TABLES TO reporting;

The command does not accept column lists. Scopes such as SELECT (email) or SELECT EXCEPT (secret) must be used with GRANT/REVOKE on a concrete table, where the column set is already defined.