Hi Subbu,
Welcome to Microsoft Q&A forum.
As I understand, you have enabled Entra auth on Postgresql flexible server 16.x .
Added AD group "NonProd_PostgreSQL_Admins" as admin however the role that gets created automatically is missing the Bypass RLS privileges.
PostgreSQL has BYPASSRLS and NOBYPASSRLS permissions, which can be assigned to a role; NOBYPASSRLS is assigned by default. With newly provisioned servers in Azure Database for PostgreSQL - Flexible Server bypassing row level security privilege (BYPASSRLS) is implemented as follows:
- For Postgres 16 and above versioned servers we follow standard PostgreSQL 16 behavior. Nonadministrative users created by azure_pg_admin administrator role allows you to create roles with BYPASSRLS attribute\privilege as necessary.
- For Postgres 15 and below versioned servers. , you can use azure_pg_admin user to do administrative tasks that require BYPASSRLS privilege, but can't create nonadmin users with BypassRLS privilege, since administrator role has no superuser privileges, as common in cloud based PaaS PostgreSQL services.
Let us know if this helps or you have a different ask.
Thanks