The issue you’re experiencing—receiving the Postgres error ERROR: permission denied to grant role 'role_x'
after upgrading from V12 to V16—is related to changes in role and permission handling in the newer version.
The issue was resolved by the backend team by ensuring the user performing the role/user modifications has the necessary privileges, specifically the ADMIN OPTION
on the roles being modified.
I hope this has been helpful!
Your feedback is important so please take a moment to accept answers. If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!
If this answers your query, do click Accept Answer and Upvote for was this answer helpful.