To interact with a view, roles must also have USAGE permissions on the parent schema and the parent database.
View-level privileges
Views are created at the schema level. To grant privileges to create views, refer to the schema-level privileges documentation.
Examples of granting view permissions
SELECT permission
To allow querying data from a view, the role must have SELECT privileges on the view. Additionally, the view owner must have SELECT privileges on all underlying tables or views referenced within the view. The following examples grant the roleread_role permission to query data from the viewtest view and ensure the view_owner has the necessary permission to read data from the referenced_table table, allowing the view to function correctly.
MODIFY permission
The following code example grants the roledeveloper_role permission to alter or drop the my_view view:
ALL permissions
The following code example grants the roledeveloper_role with all permissions over the my_view view: