Re: How to remove user specific grant and revoke - Mailing list pgsql-general

From Erik Wienhold
Subject Re: How to remove user specific grant and revoke
Date
Msg-id 666755787.808219.1685825876788@office.mailbox.org
Whole thread Raw
In response to Re: How to remove user specific grant and revoke  (Andrus <kobruleht2@hot.ee>)
Responses Re: How to remove user specific grant and revoke  (Andrus <kobruleht2@hot.ee>)
List pgsql-general
> On 03/06/2023 22:33 CEST Andrus <kobruleht2@hot.ee> wrote:
>
> I tried
> alter role alekspoluh reset all

This only resets role-specific settings, not privileges.

> After this command pgAdmin still shows revoke and grant commands for
> alekspoluh role.
> How to remove all grant and revoke assignments for role ?

Please confirm that \dp public.kaspriv no longer shows an ACL for alekspoluh
after running:

    REVOKE ALL ON public.kaspriv FROM alekspoluh;

There must be something wrong with pgAdmin if it still shows REVOKE ALL for
that role after its ACL is gone.  Looking at the code, pgAdmin emits REVOKE ALL
for any grantee it find in the ACL.


https://github.com/pgadmin-org/pgadmin4/blob/REL-7_2/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/utils.py#L712

--
Erik



pgsql-general by date:

Previous
From: Andrus
Date:
Subject: Re: How to remove user specific grant and revoke
Next
From: Andrus
Date:
Subject: Re: How to remove user specific grant and revoke