MediaWiki:Apihelp-query+userinfo-paramvalue-prop-groupmemberships

Lists groups that the current user has been explicitly assigned to, including the expiry date of each group membership.