Skip to content

Admin: Update User Role #386

Description

@ayshadogo

Description:
Allow admins to change a user's role.

Tasks:

  • Create PATCH /api/admin/users/:id/role
  • Require admin role
  • Accept role field: user | admin
  • Prevent an admin from downgrading their own role
  • Return updated user

Acceptance Criteria:
Admin can promote/demote users; self-demotion is blocked.


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions