Skip to content

Backend: reassign role members to another role #582

Closed as not planned
Closed as not planned

Description

@rodmgwgu

Add an API operation to move all members of one role to another role, used by the reassign-before-delete flow (and the standalone reassign use case in #469). Builds on existing assign/unassign batch primitives in the roles API. The replacement role must be a valid target for the same members/scopes (custom roles are single-resource-type).

Acceptance

  • All assignments of the source role are recreated on the target role at the same scopes and the source assignments removed, atomically (all-or-nothing).
  • Invalid target (e.g. mismatched resource type) rejected.
  • Tests cover bulk reassignment and partial-failure rollback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    willow

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions