pgadmin-org / pgadmin-org/pgadmin4

Allow users without "Manage Server" permission to change username for the server and/or automatically populate it base on the email/username.

Open
#9,262 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Feature
Dominant language
Python
Stars
3.8k
Forks
891
Avg merge
4d 7h
Merged PRs (30d)
8

Description

When and administrator removes the permission "Manage Server" for a group, the users in that group are now allowed to create/edit servers:

Image

Basically they can't do right-click on the server to change any of the server's properties:

Image Image

The problem with that is that the administrator, who is sharing pre-configured servers to the users, can only provide a "shared username" which is common for all users. If the users don't have the "Manage Server" permission then they can't change to their own username.

Image

My proposal is to provide a drop-down list in the server's properties general tab, so the administrator can choose between these options (maybe could be more):

  1. Fixed: user name is always the same for all users, this is the current behavior (the shared user name)
  2. Email: pgAdmin will use the user's email to connect to the database so it will change for every user automatically. This binds with another feature request I made to make pgAdmin allow Entra ID authentication using the tokens: https://github.com/pgadmin-org/pgadmin4/issues/9261
  3. Ask: request the user to introduce the username and optionally save it.

Thanks!

JL.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by tracing the server-properties permission checks and username handling in pgAdmin, then compare the proposed Fixed, Email, and Ask behaviors with issue #9261; done means users without Manage Server can use the intended per-user username behavior without changing shared server settings.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, python
Domain
authentication, authorization, database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.