Laurenz Albe <laurenz.albe@xxxxxxxxxxx> writes: > On Sun, 2023-10-29 at 20:40 +0530, Gambhir Singh wrote: >> Error: Exception: must have admin option role "application_role" > This is not a PostgreSQL error message. It could be a sloppily transcribed version of our pre-v16 message: if (!have_createrole_privilege() && !is_admin_of_role(grantorId, roleid)) ereport(ERROR, (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), errmsg("must have admin option on role \"%s\"", rolename))); If that's what it is though, any effort at reading the documentation would have turned up the relevant point: the would-be grantor needs to have been granted the role WITH ADMIN OPTION in order to be able to grant it to (or revoke it from) someone else. Or else be superuser or someone with CREATEROLE. regards, tom lane