Gmail Authorization issue

Hi Folks,

I successfully tested the connection in the Gmail plugin, but when running a workflow, the plugin throws the following error:

Using OAuth scope ([‘https://mail.google.com/’]) for connections
rapid7/Gmail:6.1.2. Step name: find_messages
Impersonating user
(‘unauthorized_client: Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested.’, '{

  • “error”: “unauthorized_client”,*
  • “error_description”: “Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested.”*
    }')

Any idea on how to resolve this?
Screenshot 2024-07-03 at 10.40.05 AM

Did you try to use the Python plugin to replicate what you are doing? I have never been truly successful with using the gmail plugin.