Openid-connect: limit groups sent to client

Hello,

is there a way to limit which groups are sent from Keycloak to a openid-connect client?

The client is a user synchronization app, it retrieves all users + their info to inject them into the main application. However, it currently retrieves ALL groups, even those not related to the main app.

Thank you.