Re: user permission denied for schema - Mailing list pgsql-admin

From Teja Jakkidi
Subject Re: user permission denied for schema
Date
Msg-id 931FA0FE-62CE-43F4-828F-C13F6BA4D664@gmail.com
Whole thread Raw
In response to user permission denied for schema  (Ankur Kaushik <ankurkaushik@gmail.com>)
Responses Re: user permission denied for schema
List pgsql-admin
Hello Kaushik,

Did you grant usage on schema to the user??

Grant usage on schema schemaname to username;

Thanks,
Teja. J.

On Jan 30, 2023, at 6:08 PM, Ankur Kaushik <ankurkaushik@gmail.com> wrote:



Hi,

I am trying to select records from table for other schema but unable to fetch due to permission denied error

GRANT SELECT ON ALL TABLES IN SCHEMA condenastvms_uat TO edw;


sdp_edw=> select count(*) from condenastvms_uat.activity_logs;

ERROR:  permission denied for schema condenastvms_uat

LINE 1: select count(*) from condenastvms_uat.activity_logs;


Regards

Ankur



pgsql-admin by date:

Previous
From: Ankur Kaushik
Date:
Subject: user permission denied for schema
Next
From: Ankur Kaushik
Date:
Subject: Re: user permission denied for schema