Give a role to specific users by id

I have a specific requirement to give a few hundred user of a drupal 6 site a specific role ‘author’ before migration. These are essentially users who have contributed content. I have tried Views Bulk Operations but there are no options to add relationships to a view  of ‘nodes’ to manipulate user roles with VBO. With a view of users, the VBO options to add user roles become available but there is no option to filter by users who have created content. Through the view of nodes, I have identified the uids that need to have the ‘user role’ added (about 380 of them) – eg 862, 2979, 81829, 82494, 82983, 88724, 94774, 99339, 103500, 106869, 106872, 106875.

Is there any way of adding this ‘author’ role to the identified users? thanks

eg:

SELECT * FROM `users` WHERE `uid` IN (862, 2979, 81829, 82494, 82983, 88724, 94774, 99339, 103500, 106869, 106872, 106875)

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/22/feed