Hey @GeethaThatipatri-MSFT , we are having the exact same problem.
We had a bunch of accounts that were created in postgres 14 and we then upgraded to 16.
Our admins only have INHERIT and SET over those roles and thus we can't, for example, drop them.
I've tried what you suggested above but I couldn't do much with it.
Can you explain it more thoroughly or provide any other solution?
Perimissions example:
psql_my_admin | service_account_staging | INHERIT, SET | azuresu
and I can't do anything on the role:
GRANT service_account_staging TO azureuser; ERROR: permission denied to grant role "service_account_staging" DETAIL: Only roles with the ADMIN option on role "service_account_staging" may grant this role.
Thanks