MediaWiki:Apihelp-query+allusers-paramvalue-prop-groups

Lists groups that the user is in. This uses more server resources and may return fewer results than the limit.