Re: How to remove user specific grant and revoke

From: Erik Wienhold <ewie(at)ewie(dot)name>
To: Andrus <kobruleht2(at)hot(dot)ee>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to remove user specific grant and revoke
Date: 2023-06-03 20:57:56
Message-ID: 666755787.808219.1685825876788@office.mailbox.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On 03/06/2023 22:33 CEST Andrus <kobruleht2(at)hot(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrus 2023-06-03 21:34:32 Re: How to remove user specific grant and revoke
Previous Message Andrus 2023-06-03 20:33:22 Re: How to remove user specific grant and revoke