how can admin role can change user/role's password.

Grover, Jyoti 40 Reputation points
2024-02-28T21:41:31.2433333+00:00

as a data admin, I created a role and role's password and gave it to user. user forgot his password. I am not sure where I can change password for a role. this role created a table in his own schema where I do not have access to. Now I cannot delete this role. HOw can I reset this role's password.

Azure Database for PostgreSQL
{count} votes

2 answers

Sort by: Most helpful
  1. ShaktiSingh-MSFT 15,131 Reputation points
    2024-03-01T05:06:23.61+00:00

    Hi Grover, Jyoti •,

    Welcome to Microsoft Q&A forum.

    As I understand, you are trying to reset password for Azure Database for PostgreSQL Flexible Server.

    You can change the administrator role's password using the Azure portal.

    Select your server in the Azure portal. In the Overview window select Reset password.

    Screenshot of Azure portal to reset the password in Azure Database for PostgreSQL

    Enter a new password and confirm the password. The textbox will prompt you about password complexity requirements.

    Screenshot of Azure portal to reset your password and save in Azure Database for PostgreSQL

    Through Azure CLI, you can change the administrator role's password with this command:

    az postgres server update --resource-group myresourcegroup --name mydemoserver --admin-password <new-password>

    References: https://learn.microsoft.com/en-us/azure/postgresql/single-server/how-to-manage-server-cli

    https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-manage-server-portal

    Hope this helps. Let us know if you have further queries.

    Thanks

    0 comments No comments

  2. RahulRandive 9,581 Reputation points
    2024-03-02T16:35:38.7766667+00:00

    @Grover, Jyoti

    Please follow below document and command

    https://www.postgresql.org/docs/8.0/sql-alteruser.html

    It seems you are looking for ALTER USER -- change a database user account.

    ALTER USER name RESET parameter

    User's image

    Thank you!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.