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

Lists all the groups the current user belongs to.