Assigns one or more roles to a user by creating UserRole associations. This action accepts either a single role name or an array of role names. It gracefully handles both cases and assigns all specified roles to the user.

Hierarchy (view full)

Constructors

Methods

Constructors

Methods

  • Executes the action with the provided parameters.

    Parameters

    • params: RunActionParams<any>

      The action execution parameters including context

    Returns Promise<ActionResultSimple>

    Promise resolving to the action result