Difference between "anon" and "authenticated" role #1493
create table private_schema.table_name
grant
select
on private_schema.table_name to authenticated;
create view public.view_name as
select * from private_schema.table_name;
alter view public.view_name owner to authenticated;I would expect that So what is the difference between |
Replies: 1 comment 10 replies
Can you double check that you're making the request with the I can't reproduce your error. Do this: create schema private;
create table private.entities( id int, name text);
create view public.entities as
select * from private.entities;Go to the API docs( Then do: Which should be the expected error from anon. Sidenote: grant
select
on private_schema.table_name to authenticated;
create view public.view_name as
select * from private_schema.table_name;If you create a private schema, |
Can you double check that you're making the request with the
anonrole?I can't reproduce your error. Do this:
Go to the API docs(
api/default/), select the entities table, select Bash, select theanonon the "Key" dropdown. This will give you acurlsnippet that makes the call as theanonrole.Then do: