Get Direct Groups for a User Rest API


Can we apply search condition in API - get direct groups for a user.
Currently, the API returns all groups for a user, but if we need limited groups - let’s say all groups starting with jira (“jira*”) for a particular user, is that possibe?