I'm running PostgreSQL 11.11 in Azure (Azure Database for PostgreSQL). I have two users, A and B, who are both members of the default azure_pg_admin role. My problem is that role B can drop tables created (and owned) by user A, which shouldn't happen.
According to Postgres documentation, "only the table owner, the schema owner, and superuser can drop a table." A owns the table, as well as the schema in question. None of the roles involved are superusers (which are not available in Azure-PostgreSQL anyway).
The root cause seems to be the shared membership in the azure_pg_admin role. Revoking the membership prevents B from dropping the table. However, I cannot figure out what is happening. From the documentation, I gather that A and B should inherit the privileges of azure_pg_admin, but not the other way around. Why, then, is ownership of the tables passed laterally on to B?