Hi Vora, Ishi •,
Welcome to Microsoft Q&A forum.
As I understand, you want to change change ownership in Azure postgres server user to Entra ID group.
You can do this for your server by execution of following commands:
CREATE USER <db_user> PASSWORD '<StrongPassword!>';
GRANT CONNECT ON DATABASE <newdb> TO <db_user>;
Using an admin account, you may need to grant other privileges to secure the objects in the database. Refer to the PostgreSQL documentation for further details on database roles and privileges. For example:
GRANT ALL PRIVILEGES ON DATABASE <newdb> TO <db_user>;
If a user creates a table "role", the table belongs to that user. If another user needs access to the table, you must grant privileges to the other user on the table level.
GRANT SELECT ON ALL TABLES IN SCHEMA <schema_name> TO <db_user>;
Sign in to your server, specifying the designated database, using the new username and password. This example shows the psql command line. With this command, you're prompted for the password for the user name. Replace your own server name, database name, and user name.
psql --host=mydemoserver.postgres.database.azure.com --port=5432 --username=db_user --dbname=newdb
Let us know if above helped.
Awaiting your reply.
Thanks