Skip to content

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

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

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>
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