Is there an API to get groups by product in Atlassian Admin API?

Hi,

Is there an official endpoint to get the groups associated with a specific product (e.g. Jira Core, Confluence)?

Currently I’m guessing the product from the group name/description using regex, which is fragile.