Skip to content

feat: add admin user profile editing with password reset support#333

Closed
nap-liu wants to merge 1 commit intodataelement:mainfrom
nap-liu:pr/admin-user-profile-editing
Closed

feat: add admin user profile editing with password reset support#333
nap-liu wants to merge 1 commit intodataelement:mainfrom
nap-liu:pr/admin-user-profile-editing

Conversation

@nap-liu
Copy link
Copy Markdown

@nap-liu nap-liu commented Apr 8, 2026

Summary

  • PATCH /users/{id}/profile: edit display_name, email, mobile, password
  • Permission: platform_admin can edit anyone; org_admin restricted to same tenant
  • Org members list enriched with user display_name and phone

Test plan

  • PATCH profile → name updated → restored

Add PATCH /api/users/{user_id}/profile endpoint that accepts display_name,
email, primary_mobile, is_active, and new_password fields. Only accessible
by platform_admin (any user) or org_admin (same-tenant, non-platform-admin
users). Enrich org members listing with user_display_name and phone from
the User table via LEFT JOIN.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nap-liu
Copy link
Copy Markdown
Author

nap-liu commented Apr 15, 2026

Closing as the paired frontend (#347) was rejected on product grounds in #367 — admin-side editing of user personal information is not the intended direction. Without #347, this backend endpoint serves no upstream consumer.

Will keep as vendor-only.

@nap-liu nap-liu closed this Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant