Update sync-gw users role

Hi team,
I have to update all the sync-gw users role through a process. we can write a batch to do this but is there a better way to do this.
Requirement is, update the user role for A to B for X users, and from C to D for Y users. If we can do first scenario for all users also fine but we know Y is very small group and we can update it manually.

Thanks.

Today most customers use a script file that calls the Rest API with tools like curl. I’ll ping the Sync Gateway team, but as far as I know, this is how most people handle this kind of operation today.

Thanks
Aaron