-
Notifications
You must be signed in to change notification settings - Fork 615
[BUG]: Unable to Update User via Admin UI & API Requires Mandatory Fields Causing Full Name Loss #2693
Copy link
Copy link
Labels
MUSTP1: Non-negotiable, critical requirements without which the product is non-functional or unsafeP1: Non-negotiable, critical requirements without which the product is non-functional or unsafebugSomething isn't workingSomething isn't workinguiUser InterfaceUser Interface
Milestone
Description
Description
Users created without admin privileges cannot be updated through the Edit User UI form. The issue is not limited to admin privilege — no user details (admin privilege, password, or full name) are updated from the UI.
Additionally, updating admin privileges through the API requires mandatory fields, which results in unintended overwriting of existing user details.
Steps to Reproduce
UI Issue
-
Create a user without admin privileges.
-
Navigate to the Edit User page.
-
Modify any of the following:
- Administrator checkbox
- Password
- Full Name
-
Click Update User.
API Issue
- Call the admin user update API without providing all required fields.
- The API returns a "required field missing" error.
- Provide all mandatory fields and update the user.
Example API Call:
curl -X 'PUT' \
'http://localhost:4444/auth/email/admin/users/user_admin%40example.com' \
-H "Authorization: Bearer $TOKEN" \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"email": "user_admin@example.com",
"password": "abcd1235",
"is_admin": true
}'Actual Behavior
UI
- Clicking Update User does not update any user details, including admin privilege, password, or full name.
API
email,password, andis_adminare treated as mandatory fields.- If
full_nameis not included in the request payload, the existing full name is overwritten and becomesnull/NA.
Expected Behavior
UI
- Users should be able to update admin privilege, password, or full name independently.
API
- The update endpoint should support partial updates.
- Existing user attributes should remain unchanged if they are not provided in the payload.
- Password and email should not be mandatory when updating admin privileges only.
Impact
- Prevents updating user details via UI.
- Causes unintended data loss when updating users through the API.
- Introduces usability and data integrity issues.
Environment
- Database: PostgreSQL
- API Endpoint:
/auth/email/admin/users/{email} - Commit: 4bbb15e
Screenshot
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
MUSTP1: Non-negotiable, critical requirements without which the product is non-functional or unsafeP1: Non-negotiable, critical requirements without which the product is non-functional or unsafebugSomething isn't workingSomething isn't workinguiUser InterfaceUser Interface