MediaWiki:Apihelp-globaluserrights-example-2

Add the global user with ID 123 to global group 'bot', and remove from global groups 'sysop' and 'bureaucrat'