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

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