Topic: Security And Access Control
A financial services company is replacing direct grants to individual users with a role hierarchy. Analysts must query curated reporting views but must not read the underlying raw tables. A separate data-engineering role owns the raw tables and creates the views. The security team wants future analysts to receive access through one role assignment, while engineers retain their existing ownership. Which design best meets these requirements?
Granting SELECT only on curated views gives analysts the intended query surface, and role inheritance lets the security team provision access by assigning the reporting role. Analysts do not need privileges on the underlying tables to query standard views when the view owner has the required underlying access. Granting raw-table access exposes data outside the curated interface. Transferring table ownership changes the engineering ownership model and gives analysts excessive authority. Granting the owning database role confers broad inherited privileges that revoking one table privilege does not safely narrow.