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.
Nobody has claimed this yet.
- 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:
Basically they can't do right-click on the server to change any of the server's properties:
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.
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):
- Fixed: user name is always the same for all users, this is the current behavior (the shared user name)
- 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
- Ask: request the user to introduce the username and optionally save it.
Thanks!
JL.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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