How to solve “Unable to get groups: unauthorized” in a 'Google Workspace' Enterprise connection?

Hello, everyone!

I’m trying to get information about groups when users log in using a ‘Google Workspace’ Enterprise connection. I’ve checked “Extended Attributes > Groups” in the connection settings, but I’m getting the error “Unable to get groups: unauthorized” in the logs.

How to solve it?

Thank you for helping!