If you're doing a one-time run I'd suggest updating the table directly in SQL. If you need to so it on a scheduled basis, I'd still use a SQL query but I'd call it from the API.
Be sure to clear the system cache after you do this so the change is found immediately for a given user.