I am trying to remove a user from a role from a Velocity Script using
$core_v2_roleUsers.RemoveUserFromRole($roleId, "%{ UserId = $user.Id }"),
but the code is not working. I came across this thread. Would I need to write a custom plugin or widget extension to achieve this?